I implemented several classes that extend ValidationR开发者_StackOverflowule 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.
精彩评论