Most of these triggers has been moved to the Windows Community Toolkit and is where you'll see future enhancements happen. See:
A collection of custom visual state triggers
If you like this library and use it a lot, consider sponsoring me. Anything helps and encourages me to keep going.
See here for details: sponsors/dotMorten
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 notOrientationStateTrigger
: Trigger based on portrait/landscape modeIsTrueStateTrigger
: Trigger if a value is true - REMOVED ! use StateTrigger
and bind to IsActive
IsFalseStateTrigger
: Trigger if a value is falseIsNullOrEmptyStateTrigger
: Trigger if an object is null, or if a String or IEnumerable is emptyIsTypePresentStateTrigger
: Trigger if a type is present (ie hardware backbutton etc)EqualsStateTrigger
: Trigger if Value
is equal to EqualTo
NotEqualStateTrigger
: Trigger if Value
is not equal to NotEqualTo
CompareStateTrigger
: Trigger if Value
is equal, less than or greater than CompareTo
InputTypeTrigger
: Trigger based on the PointerType
you're using on the TargetElement
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.