UIElement.LosingFocusEvent 屬性

定義

取得 LosingFocus 路由事件的識別碼。

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

屬性值

LosingFocus路由事件的識別碼。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

建議您盡可能使用 UIElement 焦點路由事件,而不是 FocusManager 事件。

一次只能有單一 UI 元素的焦點。

當另一個控制項取得焦點、應用程式檢視變更、使用者切換應用程式,或使用者與系統互動,讓應用程式不再在前景時,控制項可能會失去焦點。

適用於

另請參閱