Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.81 KB

focusmanager_gotfocus.md

File metadata and controls

37 lines (23 loc) · 1.81 KB
-api-id -api-type ms.custom
E:Windows.UI.Xaml.Input.FocusManager.GotFocus
winrt event
RS5

Windows.UI.Xaml.Input.FocusManager.GotFocus

-description

Occurs when an element within a container element (a focus scope) receives focus. This event is raised asynchronously, so focus might move before bubbling is complete.

-remarks

We recommend using the UIElement focus routed events instead of FocusManager events whenever possible.

UIElement focus events bubble up to the FocusManager in the following order:

  1. UIElement.LosingFocus/FocusManager.LosingFocus
  2. UIElement.GettingFocus/FocusManager.GettingFocus
  3. UIElement.LostFocus routed event is raised by the element that lost focus and the event bubbles up
  4. FocusManager.LostFocus is raised (even if the routed event is marked handled)
  5. UIElement.GotFocus routed event is raised by the element that received focus and the event bubbles up
  6. FocusManager.GotFocus is raised (even if the routed event is marked handled)

-see-also

UIElement.GotFocus, Keyboard interactions, Focus navigation for keyboard, gamepad, remote control, and accessibility tools, Programmatic focus navigation

-examples