WindowsStateTriggers 1.1.0

dotnet add package WindowsStateTriggers --version 1.1.0                
NuGet\Install-Package WindowsStateTriggers -Version 1.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WindowsStateTriggers" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WindowsStateTriggers --version 1.1.0                
#r "nuget: WindowsStateTriggers, 1.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WindowsStateTriggers as a Cake Addin
#addin nuget:?package=WindowsStateTriggers&version=1.1.0

// Install WindowsStateTriggers as a Cake Tool
#tool nuget:?package=WindowsStateTriggers&version=1.1.0                


A collection of custom visual state triggers

Get it on nuget:

   PM> Install-Package WindowsStateTriggers 

See more information on my blog:

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.


Product Compatible and additional computed target framework versions.
Universal Windows Platform uap was computed.  uap10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on WindowsStateTriggers:

Package Downloads

UWP host for Globeport Elements

GitHub repositories (6)

Showing the top 5 popular GitHub repositories that depend on WindowsStateTriggers:

Repository Stars
A free, open source Discord Client for Windows 10 and Windows Phone 10
A collection of code samples for the Uno Platform
Combine any music sources into a single library. It's your music. Play it your way.
A pretty cool™️ MPD client in .NET. Based on MpcNET.
Version Downloads Last updated
1.1.0 74,148 2/2/2016
1.0.2 4,086 7/30/2015