Validation.AddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>) Validation.AddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>) Validation.AddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>) Validation.AddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>) Method

Definición

Agrega un controlador de eventos para el evento adjunto Error al objeto especificado.Adds an event handler for the Error attached event to the specified object.

public:
 static void AddErrorHandler(System::Windows::DependencyObject ^ element, EventHandler<System::Windows::Controls::ValidationErrorEventArgs ^> ^ handler);
public static void AddErrorHandler (System.Windows.DependencyObject element, EventHandler<System.Windows.Controls.ValidationErrorEventArgs> handler);
static member AddErrorHandler : System.Windows.DependencyObject * EventHandler<System.Windows.Controls.ValidationErrorEventArgs> -> unit
Public Shared Sub AddErrorHandler (element As DependencyObject, handler As EventHandler(Of ValidationErrorEventArgs))

Parámetros

element
DependencyObject DependencyObject DependencyObject DependencyObject

Objeto UIElement o ContentElement al que se va a agregar handler.The UIElement or ContentElement object to add handler to.

handler
EventHandler<ValidationErrorEventArgs>

Controlador que se va a agregar.The handler to add.

Se aplica a