Validation.Errors Attached Property
December 03, 2013
Gets a collection of ValidationError objects associated with the binding target element.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
The attached property is not used directly in XAML for attribute setting. You do not ever populate a <Validation.Errors> property element on an object with ValidationError instances in XAML. The property is populated with a ReadOnlyObservableCollection<T> of ValidationError instances as part of the behavior of the binding validation system.
Validation.Errors might be referenced in XAML as part of a binding property path for another property. For example, if a template defines the visual state of error handling, the template might expose properties of the ValidationError.Exception as part of the UI presented in another property and would specify (Validation.Errors) as the start of the property path.