共用方式為


Keyboard.AddKeyboardInputProviderAcquireFocusHandler 方法

定義

加入 KeyboardInputProviderAcquireFocus 附加事件的處理常式。

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
KeyboardInputProviderAcquireFocusEventHandler

要加入的事件處理常式。

備註

這個方法提供附加屬性存取子,以便存取附加事件的程式代碼和 XAML 屬性處理 Keyboard.KeyboardInputProviderAcquireFocus

適用於