public override Pane ClonePane() { DocumentPane paneToAnchor = new DocumentPane(); ResizingPanel.SetEffectiveSize(paneToAnchor, new Size(Width, Height)); //transfer contents from hosted pane in the floating window and //the new created dockable pane while (HostedPane.Items.Count > 0) { paneToAnchor.Items.Add( HostedPane.RemoveContent(0)); } paneToAnchor.ApplyTemplate(); return(paneToAnchor); }
public override Pane ClonePane() { DocumentPane paneToAnchor = new DocumentPane(); ResizingPanel.SetEffectiveSize(paneToAnchor, new Size(Width, Height)); //transfer contents from hosted pane in the floating window and //the new created dockable pane while (HostedPane.Items.Count > 0) { paneToAnchor.Items.Add( HostedPane.RemoveContent(0)); } paneToAnchor.ApplyTemplate(); return paneToAnchor; }