Validation.AddErrorHandler Metodo

Definizione

Aggiunge un gestore eventi per l'evento associato Error all'oggetto specificato.

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))

Parametri

element
DependencyObject

Oggetto UIElement o ContentElement a cui aggiungere handler.

handler
EventHandler<ValidationErrorEventArgs>

Gestore da aggiungere.

Si applica a