Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Validation Methods

The Validation type exposes the following members.

  NameDescription
Public method Static member AddErrorHandler Adds an event handler for the Error attached event to the specified object.
Public method Static member ClearInvalid Removes all ValidationError objects from the specified BindingExpressionBase object.
Public method Static member GetErrors Gets the value of the Errors attached property of the specified element.
Public method Static member GetErrorTemplate Gets the value of the ErrorTemplate attached property of the specified element.
Public method Static member GetHasError Gets the value of the HasError attached property of the specified element.
Public method Static member GetValidationAdornerSite Gets the value of the ValidationAdornerSite attached property for the specified element.
Public method Static member GetValidationAdornerSiteFor Gets the value of the ValidationAdornerSiteFor attached property for the specified element.
Public method Static member MarkInvalid Marks the specified BindingExpression object as invalid with the specified ValidationError object.
Public method Static member RemoveErrorHandler Adds an event handler for the Error attached event from the specified object.
Public method Static member SetErrorTemplate Sets the value of the ErrorTemplate attached property to the specified element.
Public method Static member SetValidationAdornerSite Sets the ValidationAdornerSite attached property to the specified value on the specified element.
Public method Static member SetValidationAdornerSiteFor Sets the ValidationAdornerSiteFor attached property to the specified value on the specified element.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.