ClassInvertedBooleanConverter
Converts Boolean values to an inverted format, where true becomes false and false becomes true.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class InvertedBooleanConverter : IValueConverter
Inheritance: objectInvertedBooleanConverter
Implements:
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
value
The Boolean value to be converted.
targetType
The type to which the value is being converted.
parameter
An optional parameter used for conversion.
culture
The culture information that can be used in the conversion.
Returns
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
value
The value to be converted back to a boolean.
targetType
The type to which the value is being converted.
parameter
An optional parameter to customize the conversion process.
culture
The culture information to be considered during the conversion.
Returns
Returns the converted boolean value.