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.

Comentarios

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