public virtual void Add(DockableContent content) { if (DockManager != null) { DockManager.Add(content); } content.SetContainerPane(this); Contents.Add(content); }
protected virtual void DragContent(DockableContent contentToDrag, Point startDragPoint, Point offset) { Remove(contentToDrag); DockablePane pane = new DockablePane(DockManager); //pane = new DockablePane(); //pane.DockManager = DockManager; pane.Add(contentToDrag); pane.Show(); DockManager.Add(pane); //DockManager.Add(contentToDrag); FloatingWindow wnd = new FloatingWindow(pane); pane.ChangeState(PaneState.DockableWindow); DockManager.Drag(wnd, startDragPoint, offset); }
/// <summary> /// Show this content /// </summary> /// <remarks>Show this content in a dockable pane. If no pane was previuosly created, it creates a new one with passed initial dock. </remarks> public void Show(Dock dock) { if (ContainerPane == null) { _containerPane = new DockablePane(DockManager, dock); //_containerPane.DockManager = DockManager; _containerPane.Add(this); _containerPane.Show(); //DockManager.Add(this); DockManager.Add(_containerPane as DockablePane); } else { ContainerPane.Show(this); ContainerPane.Show(); } }