Class ComparisonCondition
Represents one ternary condition.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Expression.Interactivity.Core
Assembly: OpenSilver.Expression.Interactions.dll
Syntax
public class ComparisonCondition : DependencyObject
Fields
| Improve this Doc View SourceLeftOperandProperty
Declaration
public static readonly DependencyProperty LeftOperandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OperatorProperty
Declaration
public static readonly DependencyProperty OperatorProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RightOperandProperty
Declaration
public static readonly DependencyProperty RightOperandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceLeftOperand
Gets or sets the left operand.
Declaration
public object LeftOperand { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Operator
Gets or sets the comparison operator.
Declaration
public ComparisonConditionType Operator { get; set; }
Property Value
Type | Description |
---|---|
ComparisonConditionType |
RightOperand
Gets or sets the right operand.
Declaration
public object RightOperand { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceEvaluate()
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.
Declaration
public bool Evaluate()
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the condition has been met; otherwise, returns false. |