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.
<PackageVersion Include="WindowsStateTriggers" Version="1.1.0" />
<PackageReference Include="WindowsStateTriggers" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WindowsStateTriggers --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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.
#:package WindowsStateTriggers@1.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WindowsStateTriggers&version=1.1.0
#tool nuget:?package=WindowsStateTriggers&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 ! useStateTriggerand bind toIsActiveIsFalseStateTrigger: 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 ifValueis equal toEqualToNotEqualStateTrigger: Trigger ifValueis not equal toNotEqualToCompareStateTrigger: Trigger ifValueis equal, less than or greater thanCompareToInputTypeTrigger: Trigger based on thePointerTypeyou're using on theTargetElementRegexStateTrigger: 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 | Versions 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 |
|---|---|
|
Globeport.Client.Uwp.Host
UWP host for Globeport Elements |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on WindowsStateTriggers:
| Repository | Stars |
|---|---|
|
unoplatform/Uno.Samples
A collection of code samples for the Uno Platform
|
|
|
Difegue/Stylophone
A pretty cool™️ MPD client in .NET. Based on MpcNET.
|
|
|
Arlodotexe/strix-music
Combine any music sources into a single library. It's your music. Play it your way.
|
|
|
Aftnet/RetriX
|
|
|
Aftnet/LibretroRT
Port of Libretro and cores to WinRT component
|