言語

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 ルーティング イベントの識別子。

注釈

可能な限り、FocusManager イベントではなく UIElement フォーカス ルーティング イベントを使用することをお勧めします。

一度に 1 つの UI 要素にのみフォーカスを設定できます。

コントロールは、別のコントロールがフォーカスを失ったとき、アプリケーション ビューが変更されたとき、ユーザーがアプリケーションを切り替えた場合、またはユーザーがシステムと対話して、アプリケーションがフォアグラウンドでなくなったときにフォーカスを取得できます。

適用対象

こちらもご覧ください