Bagikan melalui


Keyboard.AddPreviewKeyboardInputProviderAcquireFocusHandler Metode

Definisi

Menambahkan handler untuk kejadian terlampir 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)

Parameter

element
DependencyObject

UIElement atau ContentElement yang mendengarkan peristiwa ini.

handler
KeyboardInputProviderAcquireFocusEventHandler

Penanganan aktivitas yang akan ditambahkan.

Keterangan

Metode ini menyediakan aksesor properti terlampir untuk akses kode dan pemrosesan atribut XAML dari peristiwa yang Keyboard.PreviewKeyboardInputProviderAcquireFocus dilampirkan.

Berlaku untuk