FocusManager.AddGotFocusHandler(DependencyObject, RoutedEventHandler) Метод

Определение

Добавляет обработчик для вложенного события GotFocus.Adds a handler for the GotFocus attached event.

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)

Параметры

element
DependencyObject

Объект UIElement или ContentElement, прослушивающий данное событие.The UIElement or ContentElement that listens to this event.

handler
RoutedEventHandler

Добавляемый обработчик событий.The event handler to be added.

Применяется к