Show / Hide Table of Contents

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().

Inheritance
System.Object
DependencyObject
ConditionalExpression
Implements
ICondition
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 ConditionalExpression : DependencyObject, IDependencyObject, ICondition

Constructors

| Improve this Doc View Source

ConditionalExpression()

Initializes a new instance of the ConditionalExpression class.

Declaration
public ConditionalExpression()

Fields

| Improve this Doc View Source

ConditionsProperty

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

ForwardChainingProperty

Declaration
public static readonly DependencyProperty ForwardChainingProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Conditions

Return the Condition collections.

Declaration
public ConditionCollection Conditions { get; }
Property Value
Type Description
ConditionCollection
| Improve this Doc View Source

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 Source

Evaluate()

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.

Implements

ICondition

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