UIElement.PreviewGotKeyboardFocus Evento

Definição

Ocorre quando o teclado está focalizado neste elemento.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 

Tipo de evento

KeyboardFocusChangedEventHandler

Implementações

Comentários

Como esse evento usa o roteamento de túnel, o elemento que tem o foco pode ser um elemento filho em vez do elemento em que o manipulador de eventos está realmente anexado.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. Verifique o Source nos dados do evento para determinar o elemento real que tem o foco.Check the Source in the event data to determine the actual element that has focus.

Esse evento cria um alias para o Keyboard.PreviewGotKeyboardFocus evento anexado para essa classe, de modo que PreviewGotKeyboardFocus faz parte da lista de membros da classe quando UIElement é herdado como um 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 UIElement is inherited as a base element. Os manipuladores de eventos anexados ao PreviewGotKeyboardFocus evento são anexados ao Keyboard.PreviewGotKeyboardFocus evento anexado subjacente e recebem a mesma instância de dados 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.

Informações de evento encaminhadoRouted Event Information

Campo de identificadorIdentifier field PreviewGotKeyboardFocusEvent
Estratégia de roteamentoRouting strategy TúnelTunneling
DelegarDelegate KeyboardFocusChangedEventHandler

Aplica-se a

Confira também