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