Quantcast
Channel: .net Brainwork » WPF
Viewing all articles
Browse latest Browse all 10

WPF Input Validation Part 3: Markup Extensions

$
0
0
In the [link2post id=”175″]previous article[/link2post] we took a step further on input validation over WPF controls by means of an attached property. The attached property’s owner would then have the required programming to add validation logic to the control’s target dependency property binding. Keeping optimization in mind we can go, once again, a step further on this and reduce the code required by implementing our own Binding object, with it’s own validation mechanism, that could be configured by the developer in design time. An example of this methodology would be going from this: [crayon-56253e43a59ce520685529/] To this: [crayon-56253e43a59ce760327879/] So what’s the trick […]

Viewing all articles
Browse latest Browse all 10

Trending Articles