Validation Methods

Validation Methods

 

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>)

Adds an event handler for the Error attached event to the specified object.

System_CAPS_pubmethodSystem_CAPS_staticClearInvalid(BindingExpressionBase)

Removes all ValidationError objects from the specified BindingExpressionBase object.

System_CAPS_pubmethodSystem_CAPS_staticGetErrors(DependencyObject)

Gets the value of the Errors attached property of the specified element.

System_CAPS_pubmethodSystem_CAPS_staticGetErrorTemplate(DependencyObject)

Gets the value of the ErrorTemplate attached property of the specified element.

System_CAPS_pubmethodSystem_CAPS_staticGetHasError(DependencyObject)

Gets the value of the HasError attached property of the specified element.

System_CAPS_pubmethodSystem_CAPS_staticGetValidationAdornerSite(DependencyObject)

Gets the value of the ValidationAdornerSite attached property for the specified element.

System_CAPS_pubmethodSystem_CAPS_staticGetValidationAdornerSiteFor(DependencyObject)

Gets the value of the ValidationAdornerSiteFor attached property for the specified element.

System_CAPS_pubmethodSystem_CAPS_staticMarkInvalid(BindingExpressionBase, ValidationError)

Marks the specified BindingExpression object as invalid with the specified ValidationError object.

System_CAPS_pubmethodSystem_CAPS_staticRemoveErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>)

Adds an event handler for the Error attached event from the specified object.

System_CAPS_pubmethodSystem_CAPS_staticSetErrorTemplate(DependencyObject, ControlTemplate)

Sets the value of the ErrorTemplate attached property to the specified element.

System_CAPS_pubmethodSystem_CAPS_staticSetValidationAdornerSite(DependencyObject, DependencyObject)

Sets the ValidationAdornerSite attached property to the specified value on the specified element.

System_CAPS_pubmethodSystem_CAPS_staticSetValidationAdornerSiteFor(DependencyObject, DependencyObject)

Sets the ValidationAdornerSiteFor attached property to the specified value on the specified element.

Return to top
Show:
© 2016 Microsoft