Keyboard.AddPreviewKeyboardInputProviderAcquireFocusHandler Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.
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.