KeyboardFocusChangedEventHandler KeyboardFocusChangedEventHandler KeyboardFocusChangedEventHandler KeyboardFocusChangedEventHandler Delegate

Definición

Representa el método que controlará los eventos enrutados LostKeyboardFocus y GotKeyboardFocus, así como los eventos adjuntos y los eventos de vista previa 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)

Parámetros

sender
Object Object Object Object

Objeto en que está asociado el controlador de eventos.The object where the event handler is attached.

Herencia
KeyboardFocusChangedEventHandlerKeyboardFocusChangedEventHandlerKeyboardFocusChangedEventHandlerKeyboardFocusChangedEventHandler

Comentarios

Este delegado se usa con los eventos adjuntos siguientes:This delegate is used with the following attached events:

Este delegado también se utiliza con los siguientes eventos enrutados de elementos base.This delegate is also used with the following routed events on base elements. Estos eventos enrutados reenvían los eventos adjuntos enumerados anteriormente para que sean más accesibles para el modelo general de elemento en WPFWPF.These routed events forward the previously listed attached events to make them more accessible to the general element model in WPFWPF.

Los eventos adjuntos y los eventos enrutados de elementos base comparten sus datos de evento y la propagación y tunelización de versiones de los eventos enrutados también compartan datos del 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. Esto puede afectar a las características controladas del evento cuando recorre la ruta del evento.This can affect the handled characteristics of the event as it travels the event route. Para obtener más información, consulte Input Overview.For details, see Input Overview.

Si el PreviewGotKeyboardFocus eventos o la PreviewLostKeyboardFocus controla el evento (Handled está establecido en true en los datos del evento), no cambia el foco de teclado.If the PreviewGotKeyboardFocus event or the PreviewLostKeyboardFocus event is handled (Handled is set to true in the event data), keyboard focus will not change.

Métodos de extensión

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) 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: