public void MoveInto(DockablePane sourcePane, Pane destinationPane) { Remove(sourcePane); while (sourcePane.Contents.Count > 0) { DockableContent content = sourcePane.Contents[0]; sourcePane.Remove(content); destinationPane.Add(content); destinationPane.Show(content); } sourcePane.Close(); }
protected override void OnDockingMenu(object sender, EventArgs e) { if (sender == menuFloatingWindow) { ReferencedPane.ChangeState(PaneState.FloatingWindow); ChangeState(ReferencedPane.State); } if (sender == menuDockedWindow) { ReferencedPane.ChangeState(PaneState.DockableWindow); ChangeState(ReferencedPane.State); } if (sender == menuTabbedDocument || sender == menuClose || sender == menuAutoHide) { foreach (DockableContent content in Contents) { content.SetContainerPane(ReferencedPane); } Close(); _floatingWindow.Close(); } if (sender == menuTabbedDocument) { ReferencedPane.TabbedDocument(); } if (sender == menuClose) { ReferencedPane.Close(); } if (sender == menuAutoHide) { ReferencedPane.Show(); ReferencedPane.AutoHide(); } }