Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

Identifier field

HasErrorProperty

Metadata properties set to true

IsNotDataBindable

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft