Class ConditionalExpression
Represents a conditional expression that is set on a ConditionBehavior.Condition property. Contains a list of conditions that gets evaluated in order to return true or false for ICondition.Evaluate().
Implements
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 ConditionalExpression : DependencyObject, ICondition
Constructors
| Improve this Doc View SourceConditionalExpression()
Initializes a new instance of the ConditionalExpression class.
Declaration
public ConditionalExpression()
Fields
| Improve this Doc View SourceConditionsProperty
Declaration
public static readonly DependencyProperty ConditionsProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ForwardChainingProperty
Declaration
public static readonly DependencyProperty ForwardChainingProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceConditions
Return the Condition collections.
Declaration
public ConditionCollection Conditions { get; }
Property Value
Type | Description |
---|---|
ConditionCollection |
ForwardChaining
Gets or sets forward chaining for the conditions. If forward chaining is set to ForwardChaining.And, all conditions must be met. If forward chaining is set to ForwardChaining.Or, only one condition must be met.
Declaration
public ForwardChaining ForwardChaining { get; set; }
Property Value
Type | Description |
---|---|
ForwardChaining |
Methods
| Improve this Doc View SourceEvaluate()
Goes through the Conditions collection and evalutes each condition based on ForwardChaining property.
Declaration
public bool Evaluate()
Returns
Type | Description |
---|---|
System.Boolean | Returns true if conditions are met; otherwise, returns false. |