Leer en inglés Editar

Compartir a través de


UIElement.PreviewLostKeyboardFocus Event

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Occurs when the keyboard is no longer focused on this element.

C#
public event System.Windows.Input.KeyboardFocusChangedEventHandler PreviewLostKeyboardFocus;

Event Type

Implements

Remarks

Because this event uses tunneling routing, the element that lost focus might be a child element instead of the element where the event handler is actually attached. Check the Source in the event data to determine the actual element that lost focus.

This event creates an alias for the Keyboard.PreviewLostKeyboardFocus attached event for this class, so that PreviewLostKeyboardFocus is part of the class members list when UIElement is inherited as a base element. Event handlers that are attached to the PreviewLostKeyboardFocus event are attached to the underlying Keyboard.PreviewLostKeyboardFocus attached event and receive the same event data instance.

Routed Event Information

Item Value
Identifier field PreviewLostKeyboardFocusEvent
Routing strategy Tunneling
Delegate KeyboardFocusChangedEventHandler

Applies to

Producto Versiones
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also