Export (0) Print
Expand All

Keyboard.PreviewGotKeyboardFocus Attached Event

Occurs when an element is in the process of acquiring keyboard focus.

Namespace: System.Windows.Input
Assembly: PresentationCore (in PresentationCore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

See Keyboard.AddPreviewGotKeyboardFocusHandler, Keyboard.RemovePreviewGotKeyboardFocusHandler
See Keyboard.AddPreviewGotKeyboardFocusHandler, Keyboard.RemovePreviewGotKeyboardFocusHandler
See Keyboard.AddPreviewGotKeyboardFocusHandler, Keyboard.RemovePreviewGotKeyboardFocusHandler
<object Keyboard.PreviewGotKeyboardFocus="KeyboardFocusChangedEventHandler" .../>

Identifier field

PreviewGotKeyboardFocusEvent

Routing strategy

Tunneling

Delegate

KeyboardFocusChangedEventHandler

The corresponding bubbling event is GotKeyboardFocus.

Keyboard.PreviewGotKeyboardFocus is an attached event. For more information, see Routed Events Overview.

If the PreviewGotKeyboardFocus event or the PreviewLostKeyboardFocus event is handled, keyboard focus will not change.

Keyboard focus refers to the object that is receiving keyboard input. The element with keyboard focus will have IsKeyboardFocused set to true. There can be only one element with keyboard focus on the entire desktop. Logical focus refers to the object within a focus scope that has focus. For more information on focus, keyboard focus, and logical focus, see the Input Overview and the Focus Overview.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Community Additions

ADD
Show:
© 2014 Microsoft