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

Convert(Object, Type, Object, System.Globalization.CultureInfo)

public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object


Parameter Description
value The value produced by the binding source. Supported types are: System.Enum, int, int?, bool?, char and char?.
targetType The type of the binding target property. It must be a boolean.
parameter 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.
culture 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.