Keyboard.AddPreviewKeyUpHandler(DependencyObject, KeyEventHandler) Keyboard.AddPreviewKeyUpHandler(DependencyObject, KeyEventHandler) Keyboard.AddPreviewKeyUpHandler(DependencyObject, KeyEventHandler) Keyboard.AddPreviewKeyUpHandler(DependencyObject, KeyEventHandler) Method

Definición

Agrega un controlador para el evento adjunto PreviewKeyUp.Adds a handler for the PreviewKeyUp attached event.

public:
 static void AddPreviewKeyUpHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::KeyEventHandler ^ handler);
public static void AddPreviewKeyUpHandler (System.Windows.DependencyObject element, System.Windows.Input.KeyEventHandler handler);
static member AddPreviewKeyUpHandler : System.Windows.DependencyObject * System.Windows.Input.KeyEventHandler -> unit
Public Shared Sub AddPreviewKeyUpHandler (element As DependencyObject, handler As KeyEventHandler)

Parámetros

element
DependencyObject DependencyObject DependencyObject DependencyObject

Objeto UIElement o ContentElement que escucha este evento.The UIElement or ContentElement that listens to this event.

handler
KeyEventHandler KeyEventHandler KeyEventHandler KeyEventHandler

Controlador de eventos que se va a agregar.The event handler to be added.

Comentarios

Este método proporciona descriptores de acceso de propiedad adjuntos para el Keyboard.PreviewKeyUp acceso al código y XAMLXAML el procesamiento de atributos del evento adjunto.This method provides attached property accessors for code access and XAMLXAML attribute processing of the Keyboard.PreviewKeyUp attached event.

Se aplica a