KeyboardFocusChangedEventArgs KeyboardFocusChangedEventArgs KeyboardFocusChangedEventArgs KeyboardFocusChangedEventArgs Class

Definición

Proporciona datos para los eventos enrutados LostKeyboardFocus y GotKeyboardFocus, así como los eventos adjuntos y de vista previa relacionados.Provides data for LostKeyboardFocus and GotKeyboardFocus routed events, as well as related attached and Preview events.

public ref class KeyboardFocusChangedEventArgs : System::Windows::Input::KeyboardEventArgs
public class KeyboardFocusChangedEventArgs : System.Windows.Input.KeyboardEventArgs
type KeyboardFocusChangedEventArgs = class
    inherit KeyboardEventArgs
Public Class KeyboardFocusChangedEventArgs
Inherits KeyboardEventArgs
Herencia

Comentarios

Esta clase de datos de eventos se utiliza con los eventos adjuntos siguientes:This event data class is used with the following attached events:

Esta clase de datos de eventos también se utiliza con los siguientes eventos enrutados de elementos base.This event data class 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.

Si el PreviewGotKeyboardFocus eventos o PreviewLostKeyboardFocus controla el evento, no cambia el foco de teclado.If the PreviewGotKeyboardFocus event or the PreviewLostKeyboardFocus event is handled, keyboard focus will not change.

Constructores

KeyboardFocusChangedEventArgs(KeyboardDevice, Int32, IInputElement, IInputElement) KeyboardFocusChangedEventArgs(KeyboardDevice, Int32, IInputElement, IInputElement) KeyboardFocusChangedEventArgs(KeyboardDevice, Int32, IInputElement, IInputElement) KeyboardFocusChangedEventArgs(KeyboardDevice, Int32, IInputElement, IInputElement)

Inicializa una nueva instancia de la clase KeyboardFocusChangedEventArgs.Initializes a new instance of the KeyboardFocusChangedEventArgs class.

Propiedades

Device Device Device Device

Obtiene el dispositivo de entrada que inició este evento.Gets the input device that initiated this event.

(Inherited from InputEventArgs)
Handled Handled Handled Handled

Obtiene o establece un valor que indica el estado actual del control de eventos para un evento enrutado cuando recorre la ruta.Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.

(Inherited from RoutedEventArgs)
KeyboardDevice KeyboardDevice KeyboardDevice KeyboardDevice

Obtiene el dispositivo de teclado asociado al evento de entrada.Gets the keyboard device associated with the input event.

(Inherited from KeyboardEventArgs)
NewFocus NewFocus NewFocus NewFocus

Obtiene el elemento al que se ha desplazado el foco.Gets the element that focus has moved to.

OldFocus OldFocus OldFocus OldFocus

Obtiene el elemento que previamente tenía el foco.Gets the element that previously had focus.

OriginalSource OriginalSource OriginalSource OriginalSource

Obtiene el origen inicial de los informes determinado por pruebas de acceso puro, antes de que una clase primaria realice posibles ajustes de Source.Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.

(Inherited from RoutedEventArgs)
RoutedEvent RoutedEvent RoutedEvent RoutedEvent

Obtiene o establece el RoutedEvent asociado a esta instancia RoutedEventArgs.Gets or sets the RoutedEvent associated with this RoutedEventArgs instance.

(Inherited from RoutedEventArgs)
Source Source Source Source

Obtiene o establece una referencia al objeto que generó el evento.Gets or sets a reference to the object that raised the event.

(Inherited from RoutedEventArgs)
Timestamp Timestamp Timestamp Timestamp

Obtiene la hora a la que se produjo este evento.Gets the time when this event occurred.

(Inherited from InputEventArgs)

Métodos

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
InvokeEventHandler(Delegate, Object) InvokeEventHandler(Delegate, Object) InvokeEventHandler(Delegate, Object) InvokeEventHandler(Delegate, Object)

Invoca los controladores de eventos de una manera específica del tipo, lo que puede aumentar la eficacia del sistema de eventos.Invokes event handlers in a type-specific way, which can increase event system efficiency.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
OnSetSource(Object) OnSetSource(Object) OnSetSource(Object) OnSetSource(Object)

Cuando se invalida en una clase derivada, proporciona un punto de entrada de devolución de llamada de notificación cada vez que cambia el valor de propiedad Source de una instancia.When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.

(Inherited from RoutedEventArgs)
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a

Consulte también: