Share via


Validation.GetErrorTemplate(DependencyObject) Metodo

Definizione

Ottiene il valore della proprietà associata ErrorTemplate dell'elemento specificato.

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

Parametri

element
DependencyObject

Oggetto UIElement o ContentElement da cui leggere il valore.

Restituisce

ControlTemplate

Oggetto ControlTemplate usato per generare il feedback sull'errore di convalida al livello dell'Adorner.

Attributi

Eccezioni

Se element è null.

Si applica a