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(); }
public void MoveInto(Pane source, Pane destination) { IPane resultPane = Remove(_rootPane, source); if (resultPane != null) { _rootPane = resultPane; } List <ManagedContent> ar = new List <ManagedContent>(); foreach (ManagedContent content in source.Contents) { ar.Add(content); destination.Add(content); } foreach (ManagedContent content in ar) { source.Remove(content); } }
public void MoveInto(Pane source, Pane destination) { IPane resultPane = Remove(_rootPane, source); if (resultPane != null) _rootPane = resultPane; List<ManagedContent> ar = new List<ManagedContent>(); foreach (ManagedContent content in source.Contents) { ar.Add(content); destination.Add(content); } foreach (ManagedContent content in ar) source.Remove(content); }