Επεξεργασία

Κοινή χρήση μέσω


Keyboard.AddPreviewKeyboardInputProviderAcquireFocusHandler Method

Definition

Adds a handler for the PreviewKeyboardInputProviderAcquireFocus attached event.

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)

Parameters

element
DependencyObject

The UIElement or ContentElement that listens to this event.

handler
KeyboardInputProviderAcquireFocusEventHandler

The event handler to be added.

Remarks

This method provides attached property accessors for code access and XAML attribute processing of the Keyboard.PreviewKeyboardInputProviderAcquireFocus attached event.

Applies to