Class ComparisonCondition
Represents one ternary condition.
public class ComparisonCondition : Freezable
- Inheritance
-
ComparisonCondition
- Inherited Members
- Extension Methods
Fields
LeftOperandProperty
public static readonly DependencyProperty LeftOperandProperty
Field Value
OperatorProperty
public static readonly DependencyProperty OperatorProperty
Field Value
RightOperandProperty
public static readonly DependencyProperty RightOperandProperty
Field Value
Properties
LeftOperand
Gets or sets the left operand.
public object LeftOperand { get; set; }
Property Value
Operator
Gets or sets the comparison operator.
public ComparisonConditionType Operator { get; set; }
Property Value
RightOperand
Gets or sets the right operand.
public object RightOperand { get; set; }
Property Value
Methods
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the Freezable derived class.
protected override Freezable CreateInstanceCore()
Returns
- Freezable
The new instance.
Evaluate()
Method that evaluates the condition. Note that this method can throw ArgumentException if the operator is incompatible with the type. For instance, operators LessThan, LessThanOrEqual, GreaterThan, and GreaterThanOrEqual require both operators to implement IComparable.
public bool Evaluate()
Returns
- bool
Returns true if the condition has been met; otherwise, returns false.