EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

Binding.NotifyOnValidationError Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates whether the BindingValidationError event is raised on validation errors.

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public bool NotifyOnValidationError { get; set; }
<Binding NotifyOnValidationError="bool"/>

Property Value

Type: System.Boolean
true if the BindingValidationError event is raised; otherwise, false. The default is false.

ExceptionCondition
InvalidOperationException

The Binding has already been attached to a target element, and cannot be modified.

NotifyOnValidationError controls whether or not the BindingValidationError event is raised. Windows Phone supports exception validation only. For more information, see ValidatesOnExceptions.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Anzeigen: