ValidationErrorEventAction Enumeration
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Describes the reason a BindingValidationError event has occurred.
Assembly: System.Windows (in System.Windows.dll)
| Member name | Description | |
|---|---|---|
| Added | A new ValidationError has occurred. | |
| Removed | An existing ValidationError has been removed. |
If a validation error occurs, the binding engine raises the BindingValidationError event. A ValidationError passes to the event handler containing a new Exception and the Action value is Added. If the validation error is resolved, most likely by the user updating the entry with valid information, then the same ValidationError passes to the event handler with the original exception and the Action value is Removed.