Class
AreEqualToBoolConverter

A converter that checks if the value and the ConverterParameter from the Binding are equal.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class AreEqualToBoolConverter : IValueConverter

Inheritance: objectAreEqualToBoolConverter

Implements: IValueConverter

Constructors

AreEqualToBoolConverter()

Declaration

cs-api-definition
public AreEqualToBoolConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts a value by comparing it with the converter parameter for equality.

Declaration

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

Parameters

value

object

The value to convert.

targetType

Type

The type of the binding target property.

parameter

object

The converter parameter to compare with the value.

culture

CultureInfo

The culture to use in the converter.

Returns

object

True if the value equals the parameter, otherwise false.

ConvertBack(object, Type, object, CultureInfo)

Converts a boolean value back by returning the parameter if the value is true.

Declaration

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

Parameters

value

object

The boolean value to convert back.

targetType

Type

The type of the binding target property.

parameter

object

The converter parameter to return if value is true.

culture

CultureInfo

The culture to use in the converter.

Returns

object

The parameter if value is true, otherwise null.