示例#1
0
        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);
        }
示例#2
0
 /// <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();
     }
 }
 /// <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();
     }
 }
示例#4
0
文件: Pane.cs 项目: truonghinh/TnX
 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);
 }