Rediger

Del via


Validation.GetErrorTemplate(DependencyObject) Method

Definition

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

public:
 static System::Windows::Controls::ControlTemplate ^ GetErrorTemplate(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.Controls.ControlTemplate GetErrorTemplate (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetErrorTemplate : System.Windows.DependencyObject -> System.Windows.Controls.ControlTemplate
Public Shared Function GetErrorTemplate (element As DependencyObject) As ControlTemplate

Parameters

element
DependencyObject

The UIElement or ContentElement object to read the value from.

Returns

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

Attributes

Exceptions

If element is null.

Applies to