CompareStateTrigger Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.StateTriggerBaseCompareStateTrigger
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. |