Gets or sets a value that indicates whether to include the DataErrorValidationRule.
Assembly: PresentationFramework (in PresentationFramework.dll)
Setting this property provides an alternative to using the DataErrorValidationRule element explicitly. The DataErrorValidationRule is a built-in validation rule that checks for errors that are raised by the IDataErrorInfo implementation of the source object. If an error is raised, the binding engine creates a ValidationError with the error and adds it to the Validation.Errors collection of the bound element. The lack of an error clears this validation feedback, unless another rule raises a validation issue.
The following example binds the Age property to the TextBox and sets to true on the Binding. When the user enters an invalid value, a red border appears in the TextBox and the ToolTip reports the error message.
Available since 3.0
Available since 4.0
Windows Phone Silverlight
Available since 7.1