WPF validation order between IDataErrorInfo and exception?

The ValidatesOnDataError and ValidatesOnExceptions are simply helper properties that add instances of DataErrorValidationRule and ExceptionValidationRule to the ValidationRules collection, respectively.

The ValidatesOnDataError and ValidatesOnExceptions are simply helper properties that add instances of DataErrorValidationRule and ExceptionValidationRule to the ValidationRules collection, respectively. So you may be able to make the ExceptionValidationRule take precedence by explicitly defining the order like so.

I haven't tried this specifically yet, but even if this works it would still result in only one of the two "winning", since it seems to clear the errors collection between each rule (for some inexplicable reason). (And I suspect that the order you have them above is actually the order they're currently executing in. I would have to list the Exception rule last if I wanted it to "win".) – Miral Mar 14 '11 at 1:40 I believe the validation process stops on the first rule that fails (i.e.

Declares the data invalid). So if you want the ExceptionValidationRule to win, it would need to go first. You can verify this by looking in BindingExpressionBase.

Validate(Object, ValidationStep) in Reflector. – CodeNaked Mar 14 '11 at 1:51.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions