KeyboardEventHandler Delegat

Definition

Stellt die Methode dar, die geroutete Tastaturereignisse behandelt.Represents the method that will handle keyboard-related routed events.

public delegate void KeyboardEventHandler(System::Object ^ sender, KeyboardEventArgs ^ e);
public delegate void KeyboardEventHandler(object sender, KeyboardEventArgs e);
type KeyboardEventHandler = delegate of obj * KeyboardEventArgs -> unit
Public Delegate Sub KeyboardEventHandler(sender As Object, e As KeyboardEventArgs)

Parameter

sender
Object

Das Objekt, an das der Ereignishandler angefügt ist.The object where the event handler is attached.

e
KeyboardEventArgs

Die Ereignisdaten.The event data.

Vererbung
KeyboardEventHandler

Hinweise

Kein vorhandenes Tastaturereignis WPFWPF in verwendet KeyboardEventHandler den Delegaten.No existing keyboard event in WPFWPF uses the KeyboardEventHandler delegate. KeyboardEventHandlerverwendet die KeyboardEventArgs -Basisklasse als Ereignisdaten Klasse.KeyboardEventHandler uses the KeyboardEventArgs base class as its event data class. KeyboardEventArgsdient als Basisklasse für spezifischere KeyEventArgs und KeyboardFocusChangedEventArgs Ereignisdaten Klassen.KeyboardEventArgs serves as the base class for the more specific KeyEventArgs and KeyboardFocusChangedEventArgs event data classes. Diese Ereignisdaten Klassen werden von KeyEventHandler den Delegaten und KeyboardFocusChangedEventHandler verwendet, und diese Delegaten werden UIElement.KeyDown von WPFWPF vorhandenen Ereignissen wie und UIElement.LostKeyboardFocusverwendet.These event data classes are used by the KeyEventHandler and KeyboardFocusChangedEventHandler delegates, and those delegates are used by existing WPFWPF events such as UIElement.KeyDown and UIElement.LostKeyboardFocus.

Erweiterungsmethoden

GetMethodInfo(Delegate)

Ruft ein Objekt ab, das die Methode darstellt, die vom angegebenen Delegaten dargestellt wird.Gets an object that represents the method represented by the specified delegate.

Gilt für:

Siehe auch