Validation.ErrorTemplate Attached Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Item | Value |
---|---|
Identifier field | ErrorTemplateProperty |
Metadata properties set to true |
IsNotDataBindable |
Applies to
See also
.NET