GetErrorTemplate Method

Validation.GetErrorTemplate Method (DependencyObject)

 

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

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

[AttachedPropertyBrowsableForTypeAttribute(typeof(DependencyObject))]
public static ControlTemplate GetErrorTemplate(
	DependencyObject element
)

Parameters

element
Type: System.Windows.DependencyObject

The UIElement or ContentElement object to read the value from.

Return Value

Type: System.Windows.Controls.ControlTemplate

The ControlTemplate used to generate validation error feedback on the adorner layer.

Exception Condition
ArgumentNullException

If element is null.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft