Validation.GetErrorTemplate(DependencyObject) Metod

Definition

Hämtar värdet för den ErrorTemplate anslutna egenskapen för det angivna elementet.

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

Parametrar

element
DependencyObject

ContentElement Eller-objektet UIElement som värdet ska läsas från.

Returer

Används ControlTemplate för att generera feedback om valideringsfel på utsmyckningsskiktet.

Attribut

Undantag

Om element är null.

Gäller för