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); }