Class BooleanConverter
Represents a converter, which converts System.Boolean values.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class BooleanConverter : Object, IValueConverter
Constructors
BooleanConverter()
Declaration
public BooleanConverter()
Properties
FalseValue
Gets or sets the value that is returned by the Convert(Object, Type, Object, CultureInfo) method when the value parameter is false
.
Declaration
public object FalseValue { get; set; }
Property Value
System.Object
|
NullValue
Gets or sets the value that is returned by the Convert(Object, Type, Object, CultureInfo) method when the value parameter is null
.
Declaration
public object NullValue { get; set; }
Property Value
System.Object
|
TrueValue
Gets or sets the value that is returned by the Convert(Object, Type, Object, CultureInfo) method when the value parameter is true
.
Declaration
public object TrueValue { get; set; }
Property Value
System.Object
|
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a System.Boolean value.
Returns TrueValue if the value
is true
.
Returns FalseValue if the value
is false
.
Returns NullValue if the value
is null
.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|
ConvertBack(Object, Type, Object, CultureInfo)
Converts a System.Boolean value.
Returns true
if the value
equals TrueValue.
Returns false
if the value
equals FalseValue.
Returns null
in any other case.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|