TXTextControl.WPF.BooleanConverter.Convert Method

Converts a value to a boolean. True is returned, if the specified parameter is the string representation of value.


public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
[Visual Basic]
Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object
Member Description

The value produced by the binding source. Supported types are: System.Enum, int, int?, bool?, char and char?.


The type of the binding target property. It must be a boolean.


The converter parameter to use. It must be a string. The converter returns true, if this value is the string representation of value. To convert a bool? to a bool, this parameter is not used and can be set to null.


The culture to use in the converter.

Return Value

The converted value, true or false. The method returns DependencyProperty.UnsetValue, if the conversion is not possible.

See Also