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; } }
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; } }
bool IDragSource.CanDrop(DockTreePosition dockTreePosition) { return(DockManager.CanDrop(DockPane, dockTreePosition)); }
bool IDragSource.CanDrop(DockTreePosition dockTreePosition) { return(DockManager.CanDrop(FloatingWindow, dockTreePosition)); }
internal DockTree(DockControl dockControl, DockTreePosition dockTreePosition) : this(dockControl, null, dockTreePosition) { }
bool IDragSource.CanDrop(DockTreePosition dockTreePosition) { return DockManager.CanDrop(DockItem, dockTreePosition); }