Share via


UIElement.GettingFocusEvent 屬性

定義

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

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

屬性值

GettingFocus路由事件的識別碼。

備註

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

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

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

適用於

另請參閱