Validation.GetHasError Method
Silverlight
Gets the value of the HasError attached property for the specified element.
Namespace: System.Windows.Controls
Assembly: System.Windows (in System.Windows.dll)
Parameters
- element
- Type: System.Windows.DependencyObject
The element to check for errors.
Return Value
Type: System.Booleantrue if any binding on the specified element has a validation error; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | element is null. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.