Class
BooleanConverter

Represents a converter, which converts bool values.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class BooleanConverter : IValueConverter

Inheritance: objectBooleanConverter

Implements: IValueConverter

Constructors

BooleanConverter()

Declaration

cs-api-definition
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

cs-api-definition
public object FalseValue { get; set; }

Property Value

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

cs-api-definition
public object NullValue { get; set; }

Property Value

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

cs-api-definition
public object TrueValue { get; set; }

Property Value

object

Methods

Convert(object, Type, object, CultureInfo)

Converts a bool value. Returns TrueValue if the value is true. Returns FalseValue if the value is false. Returns NullValue if the value is null.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object

ConvertBack(object, Type, object, CultureInfo)

Converts a bool value. Returns true if the value equals TrueValue. Returns false if the value equals FalseValue. Returns null in any other case.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object