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
public AreEqualToBoolConverter()
Methods
Converts a value by comparing it with the converter parameter for equality.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value to convert.
targetTypeTypeThe type of the binding target property.
parameterobjectThe converter parameter to compare with the value.
cultureCultureInfoThe culture to use in the converter.
Returns:True if the value equals the parameter, otherwise false.
Converts a boolean value back by returning the parameter if the value is true.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The boolean value to convert back.
targetTypeTypeThe type of the binding target property.
parameterobjectThe converter parameter to return if value is true.
cultureCultureInfoThe culture to use in the converter.
Returns:The parameter if value is true, otherwise null.