Export (0) Print
Expand All

Binding.NotifyOnValidationError Property

Gets or sets a value that indicates whether to raise the Error attached event on the bound object.

Namespace: System.Windows.Data
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public bool NotifyOnValidationError { get; set; }
/** @property */
public boolean get_NotifyOnValidationError ()

/** @property */
public void set_NotifyOnValidationError (boolean value)

public function get NotifyOnValidationError () : boolean

public function set NotifyOnValidationError (value : boolean)

<object NotifyOnValidationError="bool" .../>

Property Value

true if the Error attached event should be raised on the bound object when there is a validation error during source updates; otherwise, false. The default value is false.

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft