Ejemplo n.º 1
0
        private static DockPosition DockPositionFromGuidePosition(DockingGuidesPosition pos)
        {
            DockPosition dockPos = DockPosition.Left;

            switch (pos)
            {
            case DockingGuidesPosition.Top:
                dockPos = DockPosition.Top;
                break;

            case DockingGuidesPosition.Bottom:
                dockPos = DockPosition.Bottom;
                break;

            case DockingGuidesPosition.Right:
                dockPos = DockPosition.Right;
                break;

            case DockingGuidesPosition.Center:
                dockPos = DockPosition.Fill;
                break;
            }

            return(dockPos);
        }
Ejemplo n.º 2
0
        public DockingGuidePopup(DragDropService owner, DockingGuidesPosition position)
        {
            this.owner           = owner;
            this.position        = position;
            this.lastHitPosition = null;

            this.TopMost     = true;
            this.HitTestable = false;

            UpdateFromPosition();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DragDropDockPositionEventArgs">DragDropDockPositionEventArgs</see> class.
 /// </summary>
 /// <param name="dropTarget"></param>
 /// <param name="position"></param>
 /// <param name="guidePosition"></param>
 public DragDropDockPositionEventArgs(SplitPanel dropTarget, AllowedDockPosition position, DockingGuidesPosition guidePosition)
 {
     this.dropTarget          = dropTarget;
     this.allowedDockPosition = position;
     this.guidePosition       = guidePosition;
 }