Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guorg/gu.wpf.validation

Attached properties for WPF TextBox
https://github.com/guorg/gu.wpf.validation

Last synced: about 4 hours ago
JSON representation

Attached properties for WPF TextBox

Awesome Lists containing this project

README

        

# Gu.Wpf.Validation

A set of attached properties for TextBox.

Sample:

```

```
For more samples see demo project.

- Creates a binding Text > 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.
- No custom controls.
- Higly configurable.
- IValidator, plug in a validator of your own.
- ITypeNumberStyles, plug in default numberstyles of choice.
- ITypeRules, plug in default validationrules of choice.
- ITypeStringConverters, plug in custom handling of to/from string.
- All ^ can of course be bound per instance.
- Validates as you type or on lost focus.