A collection of custom visual state triggers
Get it on nuget:
PM> Install-Package WindowsStateTriggers
See more information on my blog: http://www.sharpgis.net/post/2015/03/24/Using-Custom-Visual-State-Triggers
DeviceFamilyStateTrigger: Trigger based on the device family (Desktop, Mobile, IoT or Team)
NetworkConnectionStateTrigger: Trigger if internet connection is available or not
OrientationStateTrigger: Trigger based on portrait/landscape mode
IsTrueStateTrigger: Trigger if a value is true - REMOVED ! use
StateTriggerand bind to
IsFalseStateTrigger: Trigger if a value is false
IsNullOrEmptyStateTrigger: Trigger if an object is null, or if a String or IEnumerable is empty
IsTypePresentStateTrigger: Trigger if a type is present (ie hardware backbutton etc)
EqualsStateTrigger: Trigger if
Valueis equal to
NotEqualStateTrigger: Trigger if
Valueis not equal to
CompareStateTrigger: Trigger if
Valueis equal, less than or greater than
InputTypeTrigger: Trigger based on the
PointerTypeyou're using on the
RegexStateTrigger: This trigger evaluates a regular expression against a string and triggers if a match is found.
CompositeStateTrigger: This trigger combines other triggers using, And, Or or Xor to create even more powerful triggers.
Run the test app to see a set of examples of these in use.