private void RefreshActiveWindow()
{
this.SuspendFocusTracking();
this.m_inRefreshActiveWindow = true;
DockPane oldActivePane = this.ActivePane;
IDockContent oldActiveContent = this.ActiveContent;
IDockContent oldActiveDocument = this.ActiveDocument;
this.SetActivePane();
this.SetActiveContent();
this.SetActiveDocumentPane();
this.SetActiveDocument();
this.DockPanel.AutoHideWindow.RefreshActivePane();
this.ResumeFocusTracking();
this.m_inRefreshActiveWindow = false;
if (oldActiveContent != this.ActiveContent)
this.DockPanel.OnActiveContentChanged(EventArgs.Empty);
if (oldActiveDocument != this.ActiveDocument)
this.DockPanel.OnActiveDocumentChanged(EventArgs.Empty);
if (oldActivePane != this.ActivePane)
this.DockPanel.OnActivePaneChanged(EventArgs.Empty);
}