{"id":21129484,"url":"https://github.com/guorg/gu.wpf.validation","last_synced_at":"2025-07-24T23:17:09.263Z","repository":{"id":32932987,"uuid":"36528899","full_name":"GuOrg/Gu.Wpf.Validation","owner":"GuOrg","description":"Attached properties for WPF TextBox","archived":false,"fork":false,"pushed_at":"2015-11-08T19:50:38.000Z","size":372,"stargazers_count":8,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-13T04:55:35.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/GuOrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-29T21:03:07.000Z","updated_at":"2022-07-30T10:45:42.000Z","dependencies_parsed_at":"2022-07-12T20:40:38.582Z","dependency_job_id":null,"html_url":"https://github.com/GuOrg/Gu.Wpf.Validation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.Validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.Validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.Validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuOrg%2FGu.Wpf.Validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuOrg","download_url":"https://codeload.github.com/GuOrg/Gu.Wpf.Validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225473098,"owners_count":17479729,"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-11-20T05:23:17.118Z","updated_at":"2024-11-20T05:23:17.735Z","avatar_url":"https://github.com/GuOrg.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gu.Wpf.Validation\n\nA set of attached properties for TextBox.\n\nSample:\n\n```\n\u003cTextBox validation:Input.Value=\"{Binding DoubleValue}\"\n         validation:Input.NumberStyles=\"AllowDecimalPoint,AllowLeadingSign,AllowLeadingWhite\"\n         validation:Input.Min=\"-10\"\n         validation:Input.Max=\"10\"\n         validation:Input.DecimalDigits=\"2\"\n         validation:Input.ValidationTrigger=\"PropertyChanged\" /\u003e\n\n\u003cTextBox validation:Input.Value=\"{Binding StringValue}\"\n         validation:Input.Pattern=\"a\\d+\"\n         validation:Input.IsRequired=\"True\"\n         validation:Input.ValidationTrigger=\"PropertyChanged\" /\u003e\n```\nFor more samples see demo project.\n\n- Creates a binding Text \u003e validation:Input.Value internally. The binding has validationrules so it uses standard WPF validation. It picks up the type from the binding and selects default parsing/validation/formatting based on that. \n- No custom controls.\n- Higly configurable.\n  - IValidator, plug in a validator of your own.\n  - ITypeNumberStyles, plug in default numberstyles of choice.\n  - ITypeRules, plug in default validationrules of choice.\n  - ITypeStringConverters, plug in custom handling of to/from string.\n  - All ^ can of course be bound per instance.\n- Validates as you type or on lost focus.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguorg%2Fgu.wpf.validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguorg%2Fgu.wpf.validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguorg%2Fgu.wpf.validation/lists"}