Condividi tramite


Keyboard.AddPreviewKeyboardInputProviderAcquireFocusHandler Metodo

Definizione

Aggiunge un gestore per l'evento associato 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)

Parametri

element
DependencyObject

Oggetto UIElement o ContentElement in ascolto su questo evento.

handler
KeyboardInputProviderAcquireFocusEventHandler

Gestore eventi da aggiungere.

Commenti

Questo metodo fornisce funzioni di accesso alle proprietà associate per l'accesso al codice e l'elaborazione degli attributi XAML dell'evento Keyboard.PreviewKeyboardInputProviderAcquireFocus associato.

Si applica a