Ejemplo n.º 1
0
        protected override void OnDragStart(Point ptMouse, Point ptRelativeMouse)
        {
            if (IsFloatingAllowed)
            {
                Manager.Drag(this, HelperFunc.PointToScreenWithoutFlowDirection(this, ptMouse), ptRelativeMouse);
            }

            base.OnDragStart(ptMouse, ptRelativeMouse);
        }
Ejemplo n.º 2
0
        protected override void OnDragStart(Point ptMouse, Point ptRelativeMouse)
        {
            if (DockableStyle != DockableStyle.None &&
                (State == DockableContentState.Docked || State == DockableContentState.Document || State == DockableContentState.DockableWindow) &&
                !Manager.DragPaneServices.IsDragging)
            {
                Manager.Drag(this, HelperFunc.PointToScreenWithoutFlowDirection(this, ptMouse), ptRelativeMouse);
            }

            base.OnDragStart(ptMouse, ptRelativeMouse);
        }