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

Provides methods for converting from one Boolean type value to the opposite Boolean type value.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class BooleanToInversedBooleanConverter : IValueConverter

Inheritance: objectBooleanToInversedBooleanConverter

Implements: IValueConverter

Constructors

C#
public BooleanToInversedBooleanConverter()

Methods

Modifies the source data before passing it to the target for display in the UI.

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

The source data being passed to the target.

targetTypeType

The Type of data expected by the target dependency property.

parameterobject

An optional parameter to be used in the converter logic.

cultureCultureInfo

The culture of the conversion.

Returns:

object

The value to be passed to the target dependency property.

Modifies the target data before passing it to the source object. This method is called only in bindings.

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

The target data being passed to the source.

targetTypeType

The Type of data expected by the source object.

parameterobject

An optional parameter to be used in the converter logic.

cultureCultureInfo

The culture of the conversion.

Returns:

object

The value to be passed to the source object.