Class InvertedBooleanConverter
Converts Boolean values to an inverted format, where true becomes false and false becomes true.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class InvertedBooleanConverter : Object, IValueConverter
Constructors
InvertedBooleanConverter()
Declaration
public InvertedBooleanConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a Boolean value to its inverted equivalent.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
The Boolean value to be converted. |
System.Type
targetType
The type to which the value is being converted. |
System.Object
parameter
An optional parameter used for conversion. |
System.Globalization.CultureInfo
culture
The culture information that can be used in the conversion. |
Returns
System.Object
Returns the inverted Boolean value as an object. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts a value from a specific type to a boolean value based on an inverted logic.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
The value to be converted back to a boolean. |
System.Type
targetType
The type to which the value is being converted. |
System.Object
parameter
An optional parameter to customize the conversion process. |
System.Globalization.CultureInfo
culture
The culture information to be considered during the conversion. |
Returns
System.Object
Returns the converted boolean value. |