Exemple #1
0
 private Target(DockTreePosition dockTreePosition)
 {
     _targetItem = null;
     if (dockTreePosition == DockTreePosition.Left)
     {
         _targetPosition = DropPosition.Left;
     }
     else if (dockTreePosition == DockTreePosition.Right)
     {
         _targetPosition = DropPosition.Right;
     }
     else if (dockTreePosition == DockTreePosition.Top)
     {
         _targetPosition = DropPosition.Top;
     }
     else if (dockTreePosition == DockTreePosition.Bottom)
     {
         _targetPosition = DropPosition.Bottom;
     }
     else if (dockTreePosition == DockTreePosition.Document)
     {
         _targetPosition = DropPosition.Fill;
     }
     else
     {
         Debug.Assert(dockTreePosition == DockTreePosition.Floating);
         _targetPosition = DropPosition.Floating;
     }
 }
Exemple #2
0
 private DockTree(DockControl dockControl, FloatingWindow floatingWindow, DockTreePosition dockTreePosition)
 {
     DockControl     = dockControl;
     _floatingWindow = floatingWindow;
     _panes          = new DockPaneCollection();
     _visiblePanes   = new DockPaneCollection();
     _activePanes    = new DockPaneCollection();
     _autoHidePanes  = new DockPaneCollection();
     _autoHideItems  = new DockItemCollection();
     _dirtyNodes     = new List <DockPaneNode>();
     Position        = dockTreePosition;
 }
 internal static Dock GetDock(DockTreePosition dockTreePosition)
 {
     if (dockTreePosition == DockTreePosition.Left)
         return Dock.Left;
     else if (dockTreePosition == DockTreePosition.Right)
         return Dock.Right;
     else if (dockTreePosition == DockTreePosition.Top)
         return Dock.Top;
     else
     {
         Debug.Assert(dockTreePosition == DockTreePosition.Bottom);
         return Dock.Bottom;
     }
 }
Exemple #4
0
 bool IDragSource.CanDrop(DockTreePosition dockTreePosition)
 {
     return(DockManager.CanDrop(DockPane, dockTreePosition));
 }
 bool IDragSource.CanDrop(DockTreePosition dockTreePosition)
 {
     return(DockManager.CanDrop(FloatingWindow, dockTreePosition));
 }
Exemple #6
0
 internal DockTree(DockControl dockControl, DockTreePosition dockTreePosition)
     : this(dockControl, null, dockTreePosition)
 {
 }
Exemple #7
0
 bool IDragSource.CanDrop(DockTreePosition dockTreePosition)
 {
     return DockManager.CanDrop(DockItem, dockTreePosition);
 }