UIElement.GettingFocusEvent 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 GettingFocus routed event.
public:
static property RoutedEvent ^ GettingFocusEvent { RoutedEvent ^ get(); };
static RoutedEvent GettingFocusEvent();
public static RoutedEvent GettingFocusEvent { get; }
var routedEvent = UIElement.gettingFocusEvent;
Public Shared ReadOnly Property GettingFocusEvent As RoutedEvent
The identifier for the GettingFocus routed event.
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.
Product | Versions |
---|---|
Windows App SDK | 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 |
- GettingFocusEventArgs
- GettingFocus
- GotFocus
- LostFocus
- LosingFocusEvent
- LosingFocus
- 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