I'm trying to write a VisualState
for my new Universal app under Windows 10.
According to the documentation about VisualState.StateTriggers
, you can add multiple triggers to a visual state, as the property is of type IList<StateTriggerBase>
.
The VisualState
class documentation also points out to the StateTriggers
documentation:
oneOrMoreTriggers
One or more triggers that can be an AdaptiveTrigger or a custom trigger derived from StateTriggerBase. These can be used to indicate when the corresponding VisualState needs to be applied automatically without an explicit GoToState call. See Remarks on the StateTriggers property for more info.
However, the documentation doesn't point out how multiple triggers work here.
Neither is there a way to modify the behavior by any C# code.
My desired behavior would require some AND/OR
conditions for those trigger specified in the StateTriggers
section.
Is there any other way, than writing my own "MultiTrigger"
, deriving from StateTriggerBase
?