Språk

Keyboard.AddPreviewKeyboardInputProviderAcquireFocusHandler Metod

Definition

Lägger till en hanterare för den anslutna PreviewKeyboardInputProviderAcquireFocus händelsen.

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)

Parametrar

element
DependencyObject

Eller UIElementContentElement som lyssnar på den här händelsen.

handler
KeyboardInputProviderAcquireFocusEventHandler

Händelsehanteraren som ska läggas till.

Kommentarer

Den här metoden tillhandahåller anslutna egenskapsåtkomster för kodåtkomst och XAML-attributbearbetning av den anslutna Keyboard.PreviewKeyboardInputProviderAcquireFocus händelsen.

Gäller för