Validation.Errors Attached Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.
See Remarks
Property Value
Type: System.Collections.ObjectModel.ReadOnlyObservableCollection(Of ValidationError)A collection of ValidationError objects associated with the binding target element.
The Validation.Errors 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 Validation.Errors property is populated with a ReadOnlyObservableCollection(Of 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.