次の方法で共有


TreeViewItem.OnGotFocus(RoutedEventArgs) メソッド

定義

GotFocus イベントのクラス処理を提供します。

protected:
 override void OnGotFocus(System::Windows::RoutedEventArgs ^ e);
protected override void OnGotFocus(System.Windows.RoutedEventArgs e);
override this.OnGotFocus : System.Windows.RoutedEventArgs -> unit
Protected Overrides Sub OnGotFocus (e As RoutedEventArgs)

パラメーター

e
RoutedEventArgs

イベントのデータ。

注釈

この実装では、 TreeView の選択がフォーカスされている TreeViewItem に設定されます。

GotFocus イベントは、IsFocused プロパティの値が false から true に変更されたときに発生します。

適用対象