Partage via


FocusManager.AddGotFocusHandler(DependencyObject, RoutedEventHandler) Méthode

Définition

Ajoute un gestionnaire pour l'événement attaché 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)

Paramètres

element
DependencyObject

UIElement ou ContentElement qui écoute cet événement.

handler
RoutedEventHandler

Gestionnaire d’événements à ajouter.

S’applique à