KeyboardFocusChangedEventHandler Delegate

Definition

Representa o método que manipulará os eventos roteados LostKeyboardFocus e GotKeyboardFocus, bem como eventos de visualização e anexados relacionados.Represents the method that will handle the LostKeyboardFocus and GotKeyboardFocus routed events, as well as related attached and Preview events.

public delegate void KeyboardFocusChangedEventHandler(System::Object ^ sender, KeyboardFocusChangedEventArgs ^ e);
public delegate void KeyboardFocusChangedEventHandler(object sender, KeyboardFocusChangedEventArgs e);
type KeyboardFocusChangedEventHandler = delegate of obj * KeyboardFocusChangedEventArgs -> unit
Public Delegate Sub KeyboardFocusChangedEventHandler(sender As Object, e As KeyboardFocusChangedEventArgs)

Parameters

sender
Object

O objeto em que o manipulador de eventos está anexado.The object where the event handler is attached.

e
KeyboardFocusChangedEventArgs

Os dados do evento.The event data.

Inheritance
KeyboardFocusChangedEventHandler

Remarks

Esse delegado é usado com os seguintes eventos anexados:This delegate is used with the following attached events:

Esse delegado também é usado com os seguintes eventos roteados em elementos base.This delegate is also used with the following routed events on base elements. Esses eventos roteados encaminham os eventos anexados anteriormente listados para torná-los mais acessíveis para o modelo de elemento geral no WPFWPF.These routed events forward the previously listed attached events to make them more accessible to the general element model in WPFWPF.

Os eventos anexados e os eventos roteados do elemento base compartilham seus dados de evento e as versões de bolha e de encapsulamento dos eventos roteados também compartilham dados de evento.The attached events and the base element routed events share their event data, and the bubbling and tunneling versions of the routed events also share event data. Isso pode afetar as características manipuladas do evento à medida que ele viaja para a rota de eventos.This can affect the handled characteristics of the event as it travels the event route. Para obter detalhes, consulte visão geral de entrada.For details, see Input Overview.

Se o evento PreviewGotKeyboardFocus ou o evento PreviewLostKeyboardFocus for tratado (Handled estiver definido como true nos dados do evento), o foco do teclado não será alterado.If the PreviewGotKeyboardFocus event or the PreviewLostKeyboardFocus event is handled (Handled is set to true in the event data), keyboard focus will not change.

Extension Methods

GetMethodInfo(Delegate)

Obtém um objeto que representa o método representado pelo delegado especificado.Gets an object that represents the method represented by the specified delegate.

Applies to

See also