Class
InvertedBooleanConverter

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:

cs-api-definition
public class InvertedBooleanConverter : IValueConverter

Inheritance: objectInvertedBooleanConverter

Implements: IValueConverter

Constructors

InvertedBooleanConverter()

Declaration

cs-api-definition
public InvertedBooleanConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts a Boolean value to its inverted equivalent.

Declaration

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

Parameters

value

object

The Boolean value to be converted.

targetType

Type

The type to which the value is being converted.

parameter

object

An optional parameter used for conversion.

culture

CultureInfo

The culture information that can be used in the conversion.

Returns

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

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

Parameters

value

object

The value to be converted back to a boolean.

targetType

Type

The type to which the value is being converted.

parameter

object

An optional parameter to customize the conversion process.

culture

CultureInfo

The culture information to be considered during the conversion.

Returns

object

Returns the converted boolean value.