ARCed.UI.DockPane.Float C# (CSharp) Method

Float() public method

public Float ( ) : DockPane
return DockPane
        public DockPane Float()
        {
            this.DockPanel.SuspendLayout(true);

            IDockContent activeContent = this.ActiveContent;

            DockPane floatPane = this.GetFloatPaneFromContents();
            if (floatPane == null)
            {
                IDockContent firstContent = this.GetFirstContent(DockState.Float);
                if (firstContent == null)
                {
                    this.DockPanel.ResumeLayout(true, true);
                    return null;
                }
                floatPane = this.DockPanel.DockPaneFactory.CreateDockPane(firstContent, DockState.Float, true);
            }
            this.SetVisibleContentsToPane(floatPane, activeContent);

            this.DockPanel.ResumeLayout(true, true);
            return floatPane;
        }