Validation.SetErrorTemplate(DependencyObject, ControlTemplate) Validation.SetErrorTemplate(DependencyObject, ControlTemplate) Validation.SetErrorTemplate(DependencyObject, ControlTemplate) Validation.SetErrorTemplate(DependencyObject, ControlTemplate) Method

Definición

Establece el valor de la propiedad adjunta ErrorTemplate en el elemento especificado.Sets the value of the ErrorTemplate attached property to the specified element.

public:
 static void SetErrorTemplate(System::Windows::DependencyObject ^ element, System::Windows::Controls::ControlTemplate ^ value);
public static void SetErrorTemplate (System.Windows.DependencyObject element, System.Windows.Controls.ControlTemplate value);
static member SetErrorTemplate : System.Windows.DependencyObject * System.Windows.Controls.ControlTemplate -> unit
Public Shared Sub SetErrorTemplate (element As DependencyObject, value As ControlTemplate)

Parámetros

element
DependencyObject DependencyObject DependencyObject DependencyObject

Objeto UIElement o ContentElement en el que se va a establecer el parámetro value.The UIElement or ContentElement object to set value on.

value
ControlTemplate ControlTemplate ControlTemplate ControlTemplate

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

Excepciones

Se aplica a