Ejemplo n.º 1
0
        private void EndMoving()
        {
            CloseDragWindow();
            BringToFront();
            this.Capture = false;
            moving       = false;

            DockManager.HideDockGuide();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Invokes a drag event that accepts a valid position for docking.
        /// </summary>
        /// <param name="confirm">Set this flag to confirm the docking position, if available.</param>
        /// <returns>Returns the target <see cref="DockContainer"/>.</returns>
        internal DockContainer SendDockEvent(bool confirm)
        {
            DockEventArgs e = new DockEventArgs(new Point(MousePosition.X, MousePosition.Y), rootContainer.DockType, confirm);

            DockManager.InvokeDragEvent(this, e);

            if (e.Release)
            {
                DockManager.HideDockGuide();
            }

            return(e.Target);
        }