• Stars
    star
    243
  • Rank 165,638 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of custom visual state triggers

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

More Repositories

1

WinUIEx

WinUI Extensions
C#
472
star
2

NmeaParser

Library for handling NMEA message in Windows Desktop, Store, Phone, Universal, and Xamarin (Android + iOS), coming from files, bluetooth, serial port or any stream
C#
246
star
3

UniversalWPF

A set of WPF Controls ported from Windows Universal
C#
238
star
4

MauiEx

A set of .NET MAUI controls
C#
181
star
5

DotNetOMDGenerator

A Roslyn-based cross-platform tool that generates an object model diagram from a set of C# source files or assemblies
C#
180
star
6

Microsoft.SqlServer.Types

a .NET Standard implementation of the spatial types in `Microsoft.SqlServer.Types`
C#
73
star
7

LifxNet

A .NET library for controlling LIFX light bulbs
C#
72
star
8

Microsoft.Azure.Kinect.BodyTracking

A .NET Standard wrapper around the Azure Kinect BodyTracking SDK
C#
26
star
9

AllJoynClientLib

An Universal Windows apps (UWP) Device Client Library for various common AllJoyn devices
C#
21
star
10

SharpGIS.GZipWebClient

GZip WebClient for Windows Phone
C#
19
star
11

ProjNET

A .NET library that performs coordinate conversions between various geodetic coordinate systems for use in fx. Geographic Information Systems (GIS) or GPS applications.
C#
19
star
12

AllJoynDotNet

A .NET wrapper for the AllJoyn C Library (.NET, UWP, Xamarin)
C#
15
star
13

IoTivityDotNet

A .NET Wrapper around the IoTivity C SDK
C#
14
star
14

MSTestX

An MSTest-based TestRunner for cross-plat use (Xamarin Android and iOS)
C#
14
star
15

AllPlayMediaPlayer

An AllPlay Media Player Server service implementation for the Windows Universal Platform. Make your Raspberry PI your new remote controlled music player!
C++
14
star
16

UnifiClient

A .NET Library for the Ubiquity Unifi REST and Websocket APIs
C#
13
star
17

System.Device

Port of .NET Framework's System.Device APIs to .NET Core
C#
12
star
18

AllJoynPhilipsHueDSB

AllJoyn Device Service Bridge for Philips Hue
C++
11
star
19

ARCore.Xamarin

ARCore Xamarin samples
10
star
20

MatterNet

.NET Client library for controller Matter devices (formerly known as Project Chip)
C#
10
star
21

NetStandardProjectTests

C#
9
star
22

GpsStatusDisplay

GPS Status Display for Arduino NMEA reader
C++
9
star
23

LocationHelper

A .NET Standard multi-targeted Location Services API for handling location updates across multiple platforms
C#
9
star
24

ArcGISRuntimeDesktop

An ArcGIS Runtime WinUI 3 Desktop sample app
C#
8
star
25

GeometryConversions

Provides conversion between ArcGIS Runtime Geometry and other Geometry data objects
C#
7
star
26

XamlResourceViewer

A simple application that allows you to browse default XAML Resources, Styles and Templates
C#
7
star
27

Windows.Devices.Sensors

Sensor API for .NET Windows Desktop apps that matches the Windows Store and WIndows Phone APIs
C#
7
star
28

AllJoynDeviceSimulator

A Windows 10 app that mocks AllJoyn devices for testing your AllJoyn apps
C++
6
star
29

AlljoynDSB

An AllJoyn Device System Bridge based on Microsofts but improved for greater control over interfaces and easier development
C++
5
star
30

XmlDocStripTask

Optimizes your xml documentation for intellisense by stripping out internal documentation and remarks.
C#
5
star
31

ZigbeeNet

Portable Class Library for Zigbee. Supports .NET, Windows Store and Windows Phone.
C#
4
star
32

SharpGIS.HttpClient.WP

HttpClient for Windows Phone
C#
4
star
33

WPFBenchmarkTests

Comparing WPF performance on .NET Core vs .NET Framework
C#
4
star
34

RTXBoxController

A WinRT component for using the XBox Controller in Windows Store Apps - Supports C++, C#, VB.NET and JavaScript
C#
4
star
35

Xamarin.AzureSpatialAnchors

Xamarin bindings for Azure Spatial Anchors API
C#
4
star
36

NtlmAndroid

Example of adding NTLM support to Xamarin Android
C#
3
star
37

ArcGIS-DotNet-Routing-Sample

Sample app that shows how to write a turn-by-turn routing application using the ArcGIS Runtime SDK for Windows Store apps.
C#
3
star
38

AllJoynLightingController

A WIndows Universal App implementation of the AllJoyn Lighting Service Framework Controller
C++
3
star
39

RoslynApiRenamer

A solution for doing mass-renames of types and members in a C# project
C#
3
star
40

OpenSprinklerNet

.NET Library for querying and controlling your 'OpenSprinkler'
C#
3
star
41

MauiPlayground

C#
2
star
42

AntiGrainRT

Anti-Grain Geometry for Windows Store and Windows Phone (WinRT)
C
2
star
43

XamlTypeInfoBuildTask

Build task that fixes the autogenerated 'XamlTypeInfo' build warnings
C#
2
star
44

StreamDeckCalendar

Shows the next calendar item from Windows Mail & Calendar app in your stream deck
CSS
1
star
45

NullabilityStats

Commandline tool that gives an estimate per-folder how many lines of code hasn't been nullability annotated
C#
1
star
46

AllJoynEcobeeDSB

An AllJoyn DSB for the Ecobee Thermostats
C#
1
star
47

ExtensionSDKSample

Sample project showing how to create an Extension SDK from a WIndows Universal Control Llibrary
C#
1
star
48

dotMorten.github.io

CSS
1
star
49

Esri.ArcGISRuntime.Xamarin.Forms.WPF

An example of how the Esri ArcGIS Runtime for WPF can be wrapped in a Xamarin.Forms renderer
C#
1
star
50

devhomenugetextension

1
star