FocusManager.AddGotFocusHandler(DependencyObject, RoutedEventHandler) Metodo

Definizione

Aggiunge un gestore per l'evento associato GotFocus.

public:
 static void AddGotFocusHandler(System::Windows::DependencyObject ^ element, System::Windows::RoutedEventHandler ^ handler);
public static void AddGotFocusHandler (System.Windows.DependencyObject element, System.Windows.RoutedEventHandler handler);
static member AddGotFocusHandler : System.Windows.DependencyObject * System.Windows.RoutedEventHandler -> unit
Public Shared Sub AddGotFocusHandler (element As DependencyObject, handler As RoutedEventHandler)

Parametri

element
DependencyObject

Oggetto UIElement o ContentElement in ascolto su questo evento.

handler
RoutedEventHandler

Gestore eventi da aggiungere.

Si applica a