New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class InvertedBooleanConverter : IValueConverter

Inheritance: objectInvertedBooleanConverter

Implements: IValueConverter

Constructors

C#
public InvertedBooleanConverter()

Methods

Converts a Boolean value to its inverted equivalent.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The Boolean value to be converted.

targetTypeType

The type to which the value is being converted.

parameterobject

An optional parameter used for conversion.

cultureCultureInfo

The culture information that can be used in the conversion.

Returns:

object

Returns the inverted Boolean value as an object.

Converts a value from a specific type to a boolean value based on an inverted logic.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The value to be converted back to a boolean.

targetTypeType

The type to which the value is being converted.

parameterobject

An optional parameter to customize the conversion process.

cultureCultureInfo

The culture information to be considered during the conversion.

Returns:

object

Returns the converted boolean value.