/// <summary> /// Invoked whenever an unhandled <see cref="UIElement.GotFocus"/> event reaches this /// element in its route. /// </summary> /// <param name="e"> /// The <see cref="RoutedEventArgs"/> that contains the event data. /// </param> protected override void OnGotFocus(RoutedEventArgs e) { ParentTreeView?.HandleGotFocus(this); base.OnGotFocus(e); }