Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Validation.HasError Attached Property


Gets a value that indicates whether any binding on the binding target element has a ValidationError.

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

See GetHasError

Property Value

Type: System.Boolean

Set to true if any binding on the bound element has a non-empty Errors collection; otherwise, false. The default is false.

For information about the behavior of this property in MultiBinding scenarios, see HasError.

For a detailed discussion of validation, see the Data Validation section of the Data Binding Overview.

Identifier field


Metadata properties set to true


Return to top
© 2017 Microsoft