KeyboardEventHandler Delegado

Definición

Representa el método que controlará los eventos enrutados relacionados con el teclado.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)

Parámetros

sender
Object

Objeto en que está asociado el controlador de eventos.The object where the event handler is attached.

e
KeyboardEventArgs

Datos del evento.The event data.

Herencia
KeyboardEventHandler

Comentarios

Ningún evento de teclado existente WPFWPF en usa KeyboardEventHandler el delegado.No existing keyboard event in WPFWPF uses the KeyboardEventHandler delegate. KeyboardEventHandlerutiliza la KeyboardEventArgs clase base como su clase de datos de evento.KeyboardEventHandler uses the KeyboardEventArgs base class as its event data class. KeyboardEventArgsactúa como la clase base para las clases de KeyEventArgs datos KeyboardFocusChangedEventArgs de evento más específicas y.KeyboardEventArgs serves as the base class for the more specific KeyEventArgs and KeyboardFocusChangedEventArgs event data classes. Los KeyEventHandler delegados y KeyboardFocusChangedEventHandler usan estas clases de datos de eventos, y los eventos UIElement.KeyDown existentes WPFWPF , como y UIElement.LostKeyboardFocus, usan esos delegados.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.

Métodos de extensión

GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Se aplica a

Consulte también: