GitHub - unoplatform/Uno.WindowsStateTriggers: A collection of custom visual state triggers (original) (raw)
Uno Platform port of WindowsStateTriggers
This port makes the WindowsStateTriggers app iOS, Android and WebAssembly, using the Uno Platform.
Try the WebAssembly build live at http://winstatetriggers-wasm.platform.uno
The nuget package is available here: https://www.nuget.org/packages/Uno.WindowsStateTriggers
WindowsStateTriggers
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
Triggers available:
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 ! useStateTrigger
and bind toIsActive
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 ifValue
is equal toEqualTo
NotEqualStateTrigger
: Trigger ifValue
is not equal toNotEqualTo
CompareStateTrigger
: Trigger ifValue
is equal, less than or greater thanCompareTo
InputTypeTrigger
: Trigger based on thePointerType
you're using on theTargetElement
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.