편집

다음을 통해 공유


Validation.ErrorTemplate Attached Property

Definition

Gets or sets the ControlTemplate used to generate validation error feedback on the adorner layer.

see GetErrorTemplate, and SetErrorTemplate
see GetErrorTemplate, and SetErrorTemplate
see GetErrorTemplate, and SetErrorTemplate

Remarks

The WPF data binding model allows you to associate ValidationRules with your Binding object. If the user enters an invalid value, you may want to provide some feedback about the error on the application user interface (UI). One way to provide such feedback is to set the Validation.ErrorTemplate attached property to a custom ControlTemplate.

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

Dependency Property Information

Identifier field ErrorTemplateProperty
Metadata properties set to true IsNotDataBindable

Applies to

See also