A collection of custom visual state triggers
Перейти к файлу
Carl de Billy 85c12b45c7
Merge pull request #4 from unoplatform/cdb/uno-update
chore(dependency): Updated to latest Uno.UI
2020-07-22 10:35:50 -04:00
src chore(dependency): Updated to latest Uno.UI 2020-07-22 09:30:51 -04:00
.gitattributes Add support for Uno 2018-07-13 16:30:00 -04:00
.gitignore chore: Update gitignore file 2020-07-14 00:42:46 -04:00
.vsts-ci.yml Generate nuget package 2018-07-24 11:48:34 -04:00
GitVersion.yml Publish nuget package, adjust versioning. 2018-07-24 09:35:32 -04:00
LICENSE Updated to MIT license 2015-03-25 15:10:45 -07:00
README.md Added google analytics, uno fork header. 2018-07-23 23:13:06 -04:00

README.md

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 not
  • OrientationStateTrigger: Trigger based on portrait/landscape mode
  • IsTrueStateTrigger: Trigger if a value is true - REMOVED ! use StateTrigger and bind to IsActive
  • 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 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.

windowsstatetriggers