Windows.UI.Xaml.Input.FocusManager.LostFocus
June 22, 2022 ยท View on GitHub
-description
Occurs when an element within a container element (a focus scope) loses focus. This event is raised asynchronously, so focus might move again 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:
- UIElement.LosingFocus/FocusManager.LosingFocus
- UIElement.GettingFocus/FocusManager.GettingFocus
- UIElement.LostFocus routed event is raised by the element that lost focus and the event bubbles up
- FocusManager.LostFocus is raised (even if the routed event is marked handled)
- UIElement.GotFocus routed event is raised by the element that received focus and the event bubbles up
- FocusManager.GotFocus is raised (even if the routed event is marked handled)
-see-also
LostFocus, Keyboard interactions, Focus navigation for keyboard, gamepad, remote control, and accessibility tools, Programmatic focus navigation