public void RestoreToPanel()
{
this.DockPanel.SuspendLayout(true);
IDockContent activeContent = this.DockPanel.ActiveContent;
for (int i = this.DisplayingContents.Count - 1; i >= 0; i--)
{
IDockContent content = this.DisplayingContents[i];
if (content.DockHandler.CheckDockState(false) != DockState.Unknown)
content.DockHandler.IsFloat = false;
}
this.DockPanel.ResumeLayout(true, true);
}