ClassAreEqualToBoolConverter
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:
public class AreEqualToBoolConverter : IValueConverter
Inheritance: objectAreEqualToBoolConverter
Implements:
Constructors
AreEqualToBoolConverter()
Declaration
public AreEqualToBoolConverter()
Methods
Convert(object, Type, object, CultureInfo)
Converts a value by comparing it with the converter parameter for equality.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The value to convert.
targetType
The type of the binding target property.
parameter
The converter parameter to compare with the value.
culture
The culture to use in the converter.
Returns
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
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The boolean value to convert back.
targetType
The type of the binding target property.
parameter
The converter parameter to return if value is true.
culture
The culture to use in the converter.
Returns
The parameter if value is true, otherwise null.