HasError Attached Property

Validation::HasError Attached Property


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

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


Legacy Code Example

Code snippet is not found. Confirm that the code snippet name 'HOWDOI' is correct.
Return to top
© 2015 Microsoft