Git Product home page Git Product logo

windowsstatetriggers's Introduction

UPDATE: Moved to Windows Community Toolkit

Most of these triggers has been moved to the Windows Community Toolkit and is where you'll see future enhancements happen. See:

WindowsStateTriggers

A collection of custom visual state triggers

Sponsoring

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: https://github.com/sponsors/dotMorten

NuGet

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.