Windows Presentation Foundation provides a simple way to validate user input on your data-bound controls, and it's completely customizable, too. By writing a custom class deriving from ValidationRule, and adding an error template to our control, we can have consistent UI notification of invalid input according to our specific needs.