Edit

Share via


TreeViewItem.OnGotFocus(RoutedEventArgs) Method

Definition

Provides class handling for the GotFocus event.

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)

Parameters

e
RoutedEventArgs

The event data.

Remarks

This implementation sets the TreeView selection to the TreeViewItem that is in focus.

The GotFocus event occurs when the value of the IsFocused property changes from false to true.

Applies to