Validation.GetErrorTemplate(DependencyObject) Validation.GetErrorTemplate(DependencyObject) Validation.GetErrorTemplate(DependencyObject) Validation.GetErrorTemplate(DependencyObject) Method

Definición

Obtiene el valor de la propiedad adjunta ErrorTemplate del elemento especificado.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);
static member GetErrorTemplate : System.Windows.DependencyObject -> System.Windows.Controls.ControlTemplate
Public Shared Function GetErrorTemplate (element As DependencyObject) As ControlTemplate

Parámetros

element
DependencyObject DependencyObject DependencyObject DependencyObject

Objeto UIElement o ContentElement del que se va a leer el valor.The UIElement or ContentElement object to read the value from.

Devoluciones

ControlTemplate que se utiliza para generar los comentarios de los errores de validación en la capa de adorno.The ControlTemplate used to generate validation error feedback on the adorner layer.

Excepciones

Se aplica a