Compartir vía


FocusManager.AddGotFocusHandler(DependencyObject, RoutedEventHandler) Método

Definición

Agrega un controlador para el evento adjunto 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)

Parámetros

element
DependencyObject

Objeto UIElement o ContentElement que escucha este evento.

handler
RoutedEventHandler

Controlador de eventos que se va a agregar.

Se aplica a