Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.7 KB

uielement_gettingfocusevent.md

File metadata and controls

34 lines (19 loc) · 1.7 KB
-api-id -api-type
P:Windows.UI.Xaml.UIElement.GettingFocusEvent
winrt property

Windows.UI.Xaml.UIElement.GettingFocusEvent

-description

Gets the identifier for the GettingFocus routed event.

-property-value

The identifier for the GettingFocus routed event.

-remarks

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

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

A control can get focus when another control loses 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.

-examples

-see-also

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