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

當 屬性的值 IsFocusedfalse 變更為 true 時,就會發生此 GotFocus 事件。

適用於