System.Windows.Controls.MultiSelectTreeViewItem.OnGotFocus C# (CSharp) Method

OnGotFocus() protected method

protected OnGotFocus ( RoutedEventArgs e ) : void
e RoutedEventArgs
return void
        protected override void OnGotFocus(RoutedEventArgs e)
        {
            // Do not call the base method because it would bring all of its children into view on
            // selecting which is not the desired behaviour.
            //base.OnGotFocus(e);
            ParentTreeView.LastFocusedItem = this;
            //System.Diagnostics.Debug.WriteLine("MultiSelectTreeViewItem.OnGotFocus(), DisplayName = " + DisplayName);
            //System.Diagnostics.Debug.WriteLine(Environment.StackTrace);
        }