UIElement.LosingFocusEvent Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the identifier for the LosingFocus routed event.
public:
static property RoutedEvent ^ LosingFocusEvent { RoutedEvent ^ get(); };
static RoutedEvent LosingFocusEvent();
public static RoutedEvent LosingFocusEvent { get; }
var routedEvent = UIElement.losingFocusEvent;
Public Shared ReadOnly Property LosingFocusEvent As RoutedEvent
The identifier for the LosingFocus routed event.
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
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 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.
Product | Versions |
---|---|
WinRT | Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |
- LosingFocusEventArgs
- LosingFocus
- LostFocus
- GotFocus
- GettingFocusEvent
- GettingFocus
- Focus(FocusState)
- AddHandler(RoutedEvent, Object, Boolean)
- Events and routed events overview
- Keyboard interactions
- Focus navigation for keyboard, gamepad, remote control, and accessibility tools
- Programmatic focus navigation