public void Show(DockPanel dockPanel, Rectangle floatWindowBounds)
{
if (dockPanel == null)
throw (new ArgumentNullException(Strings.DockContentHandler_Show_NullDockPanel));
dockPanel.SuspendLayout(true);
this.DockPanel = dockPanel;
if (this.FloatPane == null)
{
this.IsHidden = true; // to reduce the screen flicker
this.FloatPane = this.DockPanel.DockPaneFactory.CreateDockPane(this.Content, DockState.Float, false);
this.FloatPane.FloatWindow.StartPosition = FormStartPosition.Manual;
}
this.FloatPane.FloatWindow.Bounds = floatWindowBounds;
this.Show(dockPanel, DockState.Float);
this.Activate();
dockPanel.ResumeLayout(true, true);
}