1

I implemented several classes that extend ValidationRule and wrote ControlTemplates and Styles to be used in a form. They are working ok, but now I need to know in runtime if there are TextBoxes that don't pass the corresponding validation, so - for instance - a given button is disabled unless they do.

I'd like to avoid the iteration on the entire form looking for TextBoxes that don't comply with the corresponding rule (unless I could check it's rule in runtime).

Thanks in advance.

Stephan Muller
  • 27,018
  • 16
  • 85
  • 126
xain
  • 13,159
  • 17
  • 75
  • 119
  • possible duplicate of [Detecting WPF Validation Errors](http://stackoverflow.com/questions/127477/detecting-wpf-validation-errors) – ChrisF Jun 10 '11 at 20:56

0 Answers0