Windows.UI.Xaml.Input.LosingFocusEventArgs

June 22, 2022 ยท View on GitHub

-description

Provides data for the FocusManager.LosingFocus and UIElement.LosingFocus events.

-remarks

Only a single UI element at a time can have focus.

A control can lose focus when another control gets focus, the application view changes, the user switches applications, or the user interacts with the system such that the application is no longer in the foreground.

Version history

Windows versionSDK versionValue added
180317134TryCancel
180317134TrySetNewFocusedElement
180917763CorrelationId

-see-also

LosingFocusEvent, LosingFocus, LostFocus, Control.Focus, AddHandler, Events and routed events overview, Keyboard interactions, Focus navigation for keyboard, gamepad, remote control, and accessibility tools, Programmatic focus navigation

-examples