ContentElement.PreviewGotKeyboardFocus Evento

Definición

Se produce cuando este elemento recibe el foco del teclado.Occurs when the keyboard is focused on this element.

public:
 virtual event System::Windows::Input::KeyboardFocusChangedEventHandler ^ PreviewGotKeyboardFocus;
public event System.Windows.Input.KeyboardFocusChangedEventHandler PreviewGotKeyboardFocus;
member this.PreviewGotKeyboardFocus : System.Windows.Input.KeyboardFocusChangedEventHandler 
Public Custom Event PreviewGotKeyboardFocus As KeyboardFocusChangedEventHandler 

Implementaciones

Comentarios

Dado que este evento utiliza el enrutamiento de tunelización, el elemento que tiene el foco podría ser un elemento secundario en lugar del elemento en el que está asociado el controlador de eventos.Because this event uses tunneling routing, the element that has focus might be a child element instead of the element where the event handler is actually attached. Compruebe la Source en los datos del evento para determinar el elemento real que tiene el foco.Check the Source in the event data to determine the actual element that has focus.

Este evento crea un alias para el evento adjunto de Keyboard.PreviewGotKeyboardFocus para esta clase, de modo que PreviewGotKeyboardFocus forme parte de la lista de miembros de clase cuando ContentElement se herede como un elemento base.This event creates an alias for the Keyboard.PreviewGotKeyboardFocus attached event for this class, so that PreviewGotKeyboardFocus is part of the class members list when ContentElement is inherited as a base element. Los controladores de eventos adjuntos al evento PreviewGotKeyboardFocus se adjuntan al evento adjunto Keyboard.PreviewGotKeyboardFocus subyacente y reciben la misma instancia de datos de evento.Event handlers that are attached to the PreviewGotKeyboardFocus event are attached to the underlying Keyboard.PreviewGotKeyboardFocus attached event and receive the same event data instance.

Información sobre eventos enrutadosRouted Event Information

Campo de identificadorIdentifier field PreviewGotKeyboardFocusEvent
Estrategia de enrutamientoRouting strategy TúnelesTunneling
delegadoDelegate KeyboardFocusChangedEventHandler

Se aplica a

Consulte también: