不积跬步无以至千里.
//断开父子关系 if (this.dpEditor != null) { if (dpEditor.Parent != null) { var parent = (DockPanel)dpEditor.Parent; parent.Children.Remove(dpEditor); } dpEditorSource.Children.Add(dpEditor); }