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