ClassArithmeticComparisonConverter
A converter that executes an arithmetic comparison operation with the value and an operand.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class ArithmeticComparisonConverter : IValueConverter
Inheritance: objectArithmeticComparisonConverter
Implements:
Constructors
ArithmeticComparisonConverter()
Declaration
public ArithmeticComparisonConverter()
Properties
Operator
Gets or sets the comparison operator. For example '==', '!=', '>', '>=', '<', '<='.
SecondOperand
Gets or sets the second (right) operand of the comparison.
Methods
Convert(object, Type, object, CultureInfo)
Checks whether the configured arithmetic comparison operation is true.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The first operand of the comparison, a number. If the value is not a number, false is returned.
targetType
The type of the target property.
parameter
The converter parameter is not used.
culture
The culture to use in the converter.
Returns
The result from the comparison. If the value is not a number, false is returned.
ConvertBack(object, Type, object, CultureInfo)
Backwards conversion is not supported.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
targetType
parameter
culture
Returns