FocusManager.AddGotFocusHandler(DependencyObject, RoutedEventHandler) 方法

定义

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)

参数

element
DependencyObject

侦听此事件的 UIElementContentElement

handler
RoutedEventHandler

要添加的事件处理程序。

适用于