Show / Hide Table of Contents

Class ComparisonCondition

Represents one ternary condition.

Inheritance
System.Object
DependencyObject
ComparisonCondition
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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, IDependencyObject

Fields

| Improve this Doc View Source

LeftOperandProperty

Declaration
public static readonly DependencyProperty LeftOperandProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

OperatorProperty

Declaration
public static readonly DependencyProperty OperatorProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

RightOperandProperty

Declaration
public static readonly DependencyProperty RightOperandProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

LeftOperand

Gets or sets the left operand.

Declaration
public object LeftOperand { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

Operator

Gets or sets the comparison operator.

Declaration
public ComparisonConditionType Operator { get; set; }
Property Value
Type Description
ComparisonConditionType
| Improve this Doc View Source

RightOperand

Gets or sets the right operand.

Declaration
public object RightOperand { get; set; }
Property Value
Type Description
System.Object

Methods

| Improve this Doc View Source

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.

Declaration
public bool Evaluate()
Returns
Type Description
System.Boolean

Returns true if the condition has been met; otherwise, returns false.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source