Validation.AddErrorHandler Método

Definición

Agrega un controlador de eventos para el evento adjunto Error al objeto especificado.

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

Objeto UIElement o ContentElement que se va a agregar a handler.

handler
EventHandler<ValidationErrorEventArgs>

Controlador que se va a agregar.

Se aplica a