Table of Contents

Class BoolInputViewModel

Namespace
Loehnert.Controls.Dialogs.ViewModels
Assembly
Loehnert.Controls.dll

Represents a view model for a boolean input dialog element.

public class BoolInputViewModel : ItemViewModelBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IDataErrorInfo, IHasInputValue
Inheritance
PropertyChangedBase
BoolInputViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

BoolInputViewModel()

Initializes a new instance of the BoolInputViewModel class.

public BoolInputViewModel()

Properties

Error

Gets an error message indicating what is wrong with this object.

public string Error { get; }

Property Value

string

An error message indicating what is wrong with this object. The default is an empty string ("").

this[string]

Gets the error message for the property with the given name.

public string this[string columnName] { get; }

Parameters

columnName string

The name of the property whose error message to get.

Property Value

string

The error message for the property. The default is an empty string ("").

Text

Gets or sets the text.

public string Text { get; set; }

Property Value

string

Value

Gets the input value.

public object Value { get; }

Property Value

object

ValueAsBool

Gets or sets the value as boolean.

public bool? ValueAsBool { get; set; }

Property Value

bool?