{"id":17652191,"url":"https://github.com/impworks/utils.wpf","last_synced_at":"2025-03-30T09:13:01.798Z","repository":{"id":65580499,"uuid":"283832823","full_name":"impworks/utils.wpf","owner":"impworks","description":"WPF-related helper utilities","archived":false,"fork":false,"pushed_at":"2022-07-26T13:04:12.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T11:17:20.385Z","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/impworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-30T17:09:04.000Z","updated_at":"2022-07-26T13:04:15.000Z","dependencies_parsed_at":"2023-01-30T12:35:10.251Z","dependency_job_id":null,"html_url":"https://github.com/impworks/utils.wpf","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/impworks%2Futils.wpf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impworks%2Futils.wpf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impworks%2Futils.wpf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impworks%2Futils.wpf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/impworks","download_url":"https://codeload.github.com/impworks/utils.wpf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246296615,"owners_count":20754635,"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-10-23T11:46:08.405Z","updated_at":"2025-03-30T09:13:01.778Z","avatar_url":"https://github.com/impworks.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Impworks.Utils.Wpf\n\n![AppVeyor](https://img.shields.io/appveyor/ci/impworks/Utils.Wpf.svg) ![AppVeyor Tests](https://img.shields.io/appveyor/tests/impworks/Utils.Wpf.svg) [![NuGet](https://img.shields.io/nuget/v/Impworks.Utils.Wpf.svg)](https://www.nuget.org/packages/Impworks.Utils.Wpf/) ![NuGet Downloads](https://img.shields.io/nuget/dt/Impworks.Utils.Wpf.svg)\n\nA collection of useful helpers for WPF projects.\n\n## Installation\n\nTo install, use the following Package Manager command:\n\n```\nPM\u003e Install-Package Impworks.Utils.Wpf\n```\n\n## Usage\n\nEdit your `App.xaml` to add the following:\n\n```xaml\n\u003cApplication\n    ...\n    xmlns:converters=\"clr-namespace:Impworks.Utils.Wpf.Converters;assembly=Impworks.Utils.Wpf\"\n    xmlns:sys=\"clr-namespace:System;assembly=mscorlib\"\n    ...\n\u003e\n    \u003cApplication.Resources\u003e\n        \u003csys:Int32 x:Key=\"Zero\"\u003e0\u003c/sys:Int32\u003e\n        \u003csys:Boolean x:Key=\"True\"\u003eTrue\u003c/sys:Boolean\u003e\n        \u003csys:Boolean x:Key=\"False\"\u003eFalse\u003c/sys:Boolean\u003e\n\n        \u003cconverters:BooleanInverter x:Key=\"InvertBool\" /\u003e\n        \u003cconverters:BoolToVisibilityConverter x:Key=\"ShowIfTrue\" /\u003e\n        \u003cconverters:BoolToVisibilityConverter x:Key=\"ShowIfFalse\" IsInverted=\"True\" /\u003e\n        \u003cconverters:CompareToArgumentConverter x:Key=\"IsNull\" Argument=\"{x:Null}\" /\u003e\n        \u003cconverters:CompareToArgumentConverter x:Key=\"IsNotNull\" Argument=\"{x:Null}\" IsInverted=\"True\" /\u003e\n        \u003cconverters:CompareToArgumentConverter x:Key=\"IsZero\" Argument=\"{StaticResource Zero}\" /\u003e\n        \u003cconverters:CompareToArgumentConverter x:Key=\"IsNotZero\" Argument=\"{StaticResource Zero}\" IsInverted=\"True\" /\u003e\n        \u003cconverters:CompositeConverter x:Key=\"ShowIfNull\"\u003e\n            \u003cconverters:CompareToArgumentConverter Argument=\"{x:Null}\" /\u003e\n            \u003cconverters:BoolToVisibilityConverter /\u003e\n        \u003c/converters:CompositeConverter\u003e\n        \u003cconverters:CompositeConverter x:Key=\"ShowIfNotNull\"\u003e\n            \u003cconverters:CompareToArgumentConverter Argument=\"{x:Null}\" IsInverted=\"True\" /\u003e\n            \u003cconverters:BoolToVisibilityConverter /\u003e\n        \u003c/converters:CompositeConverter\u003e\n        \u003cconverters:CompositeConverter x:Key=\"ShowIfZero\"\u003e\n            \u003cconverters:CompareToArgumentConverter Argument=\"{StaticResource Zero}\" /\u003e\n            \u003cconverters:BoolToVisibilityConverter /\u003e\n        \u003c/converters:CompositeConverter\u003e\n        \u003cconverters:CompositeConverter x:Key=\"ShowIfNotZero\"\u003e\n            \u003cconverters:CompareToArgumentConverter Argument=\"{StaticResource Zero}\" IsInverted=\"True\" /\u003e\n            \u003cconverters:BoolToVisibilityConverter /\u003e\n        \u003c/converters:CompositeConverter\u003e\n        \u003cconverters:EqualityConverter x:Key=\"AllEqual\" /\u003e\n        \u003cconverters:EqualityConverter x:Key=\"AllNotEqual\" IsInverted=\"True\" /\u003e\n\n        ...\n    \u003c/Application.Resources\u003e\n\u003c/Application\u003e\n```\n\nNow you can use the converters in bindings:\n\n```xaml\n\u003cTextBlock Text=\"Hello!\" Visibility=\"{Binding ShowHello, Converter={StaticResource ShowIfTrue}}\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpworks%2Futils.wpf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimpworks%2Futils.wpf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpworks%2Futils.wpf/lists"}