CompareStateTrigger Class

Definition

Enables a state if the value is equal to, greater than, or less than another value

public class CompareStateTrigger : Windows.UI.Xaml.StateTriggerBase
type CompareStateTrigger = class
    inherit StateTriggerBase
Public Class CompareStateTrigger
Inherits StateTriggerBase
Inheritance
Windows.UI.Xaml.StateTriggerBase
CompareStateTrigger

Remarks

Example: Trigger if a value is greater than 0

<triggers:CompareStateTrigger Value="{Binding MyValue}" CompareTo="0" Comparison="GreaterThan" />

Constructors

CompareStateTrigger()

Fields

ComparisonProperty

Identifies the Comparison DependencyProperty

ToProperty

Identifies the To DependencyProperty

ValueProperty

Identifies the Value DependencyProperty

Properties

Comparison

Gets or sets the comparison type

To

Gets or sets the value to compare to.

Value

Gets or sets the value for comparison.

Applies to