{"id":13698076,"url":"https://github.com/dotMorten/WindowsStateTriggers","last_synced_at":"2025-05-04T00:31:04.696Z","repository":{"id":29282986,"uuid":"32815727","full_name":"dotMorten/WindowsStateTriggers","owner":"dotMorten","description":"A collection of custom visual state triggers","archived":false,"fork":false,"pushed_at":"2020-07-22T01:33:28.000Z","size":145,"stargazers_count":244,"open_issues_count":18,"forks_count":59,"subscribers_count":36,"default_branch":"main","last_synced_at":"2025-04-04T06:09:29.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotMorten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"dotMorten","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2015-03-24T18:02:03.000Z","updated_at":"2024-09-04T18:27:25.000Z","dependencies_parsed_at":"2022-09-06T14:51:18.186Z","dependency_job_id":null,"html_url":"https://github.com/dotMorten/WindowsStateTriggers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotMorten%2FWindowsStateTriggers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotMorten%2FWindowsStateTriggers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotMorten%2FWindowsStateTriggers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotMorten%2FWindowsStateTriggers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotMorten","download_url":"https://codeload.github.com/dotMorten/WindowsStateTriggers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252272944,"owners_count":21721831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T19:00:39.361Z","updated_at":"2025-05-04T00:31:03.949Z","avatar_url":"https://github.com/dotMorten.png","language":"C#","funding_links":["https://github.com/sponsors/dotMorten"],"categories":["UI Library"],"sub_categories":[],"readme":"# UPDATE: Moved to Windows Community Toolkit\nMost of these triggers has been moved to the Windows Community Toolkit and is where you'll see future enhancements happen.\nSee:\n- Repo: https://github.com/windows-toolkit/WindowsCommunityToolkit\n- Docs: https://docs.microsoft.com/en-us/windows/communitytoolkit/helpers/triggers\n- Announcement: https://blogs.windows.com/windowsdeveloper/2020/06/15/announcing-windows-community-toolkit-v6-1/\n\n# WindowsStateTriggers\nA collection of custom visual state triggers\n\n## Sponsoring\n\nIf you like this library and use it a lot, consider sponsoring me. Anything helps and encourages me to keep going.\n\nSee here for details: https://github.com/sponsors/dotMorten\n\n### NuGet\n\nGet it on nuget:\n```\n   PM\u003e Install-Package WindowsStateTriggers \n```\n\nSee more information on my blog:\nhttp://www.sharpgis.net/post/2015/03/24/Using-Custom-Visual-State-Triggers\n\n##### Triggers available:\n- `DeviceFamilyStateTrigger`: Trigger based on the device family (Desktop, Mobile, IoT or Team)\n- `NetworkConnectionStateTrigger`: Trigger if internet connection is available or not\n- `OrientationStateTrigger`: Trigger based on portrait/landscape mode\n- `IsTrueStateTrigger`: Trigger if a value is true - REMOVED ! use `StateTrigger` and bind to `IsActive`\n- `IsFalseStateTrigger`: Trigger if a value is false\n- `IsNullOrEmptyStateTrigger`: Trigger if an object is null, or if a String or IEnumerable is empty\n- `IsTypePresentStateTrigger`: Trigger if a type is present (ie hardware backbutton etc)\n- `EqualsStateTrigger`: Trigger if `Value` is equal to `EqualTo`\n- `NotEqualStateTrigger`: Trigger if `Value` is not equal to `NotEqualTo`\n- `CompareStateTrigger`: Trigger if `Value` is equal, less than or greater than `CompareTo`\n- `InputTypeTrigger`: Trigger based on the `PointerType` you're using on the `TargetElement`\n- `RegexStateTrigger`: This trigger evaluates a regular expression against a string and triggers if a match is found.\n- `CompositeStateTrigger`: This trigger combines other triggers using, And, Or or Xor to create even more powerful triggers.\n\nRun the test app to see a set of examples of these in use.\n\n![windowsstatetriggers](https://cloud.githubusercontent.com/assets/1378165/7996451/483cb19e-0ad5-11e5-9be8-a41aa2127fef.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FdotMorten%2FWindowsStateTriggers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FdotMorten%2FWindowsStateTriggers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FdotMorten%2FWindowsStateTriggers/lists"}