Share via


Keyboard.AddPreviewKeyboardInputProviderAcquireFocusHandler 方法

定義

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

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
KeyboardInputProviderAcquireFocusEventHandler

要加入的事件處理常式。

備註

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

適用於