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 元素的焦點。

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

適用於

另請參閱