Gets or sets a value that indicates whether to raise the Error attached event on the bound object.
Public Property NotifyOnValidationError As Boolean
Dim instance As Binding Dim value As Boolean value = instance.NotifyOnValidationError instance.NotifyOnValidationError = value
public bool NotifyOnValidationError { get; set; }
public: property bool NotifyOnValidationError { bool get (); void set (bool value); }
public function get NotifyOnValidationError () : boolean public function set NotifyOnValidationError (value : boolean)
<object NotifyOnValidationError="bool" .../>
If the binding has ValidationRules associated with it, the binding engine checks each rule each time it transfers the target property value to the source property. If a rule invalidates a value, the binding engine creates a ValidationError object and adds it to the Validation.Errors collection of the bound object. When the Validation..::.Errors property is not empty, the Validation..::.HasError attached property of the object is set to true. If the NotifyOnValidationError property of the Binding is set to true, then the binding engine raises the Validation..::.Error attached event on the object.
For a detailed discussion of the validation process, see the Data Validation section in the Data Binding Overview.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003