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
public ArithmeticComparisonConverter()
Properties
Gets or sets the comparison operator. For example '==', '!=', '>', '>=', '<', '<='.
public string Operator { get; set; }
Gets or sets the second (right) operand of the comparison.
public double SecondOperand { get; set; }
Methods
Checks whether the configured arithmetic comparison operation is true.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The first operand of the comparison, a number. If the value is not a number, false is returned.
targetTypeTypeThe type of the target property.
parameterobjectThe converter parameter is not used.
cultureCultureInfoThe culture to use in the converter.
Returns:The result from the comparison. If the value is not a number, false is returned.
Backwards conversion is not supported.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)