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

WPF Input Validation Part 2: Attached property approach

$
0
0
 In the [link2post id="174"]previous article[/link2post] I’ve shown how to apply Validation Rules to controls in order to prevent/access user input. In the process, user was warned through a visual change in the target control. It’s the simplistic and direct way of doing validation and works perfectly from the UX point of view. However, from the developer point of view, a better implementation is required to ease the quantity of code needed and to isolate concerns. The idea is to apply validation rules by means of an attached property, in which the owner would have the reference to the control and [...]

Viewing all articles
Browse latest Browse all 10

Trending Articles