語言

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 路由事件的識別碼。

備註

我們建議盡可能使用 UIElement 的焦點路由事件,而非 FocusManager 事件。

一次只能對一個 UI 元素進行聚焦。

當另一個控制項被聚焦、應用程式視圖改變、使用者切換應用程式,或使用者與系統互動導致該應用程式不再處於前景時,控制項可能會失去焦點。

適用於

另請參閱