Udostępnij za pośrednictwem


ValidationErrorEventAction Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Describes the reason a BindingValidationError event has occurred.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Enumeration ValidationErrorEventAction
public enum ValidationErrorEventAction

Members

Member name Description
Supported by Silverlight for Windows Phone Added A new ValidationError has occurred.
Supported by Silverlight for Windows Phone Removed An existing ValidationError has been removed.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.