Delen via


UIElement.LosingFocusEvent Property

Definition

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

Property Value

The identifier for the LosingFocus routed event.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

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 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.

Applies to

See also