示例#1
0
        protected override void OnDrag(DragEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return;
            }

            if (DragBox.State == Visibility.Visible)
            {
                DragBox.HandleDrag(e);
            }

            moveCurrentSelection(e);
        }
示例#2
0
        protected override bool OnDragStart(DragStartEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return(false);
            }

            if (movementBlueprint != null)
            {
                return(true);
            }

            if (DragBox.HandleDrag(e))
            {
                DragBox.Show();
                return(true);
            }

            return(false);
        }
示例#3
0
        protected override bool OnDragStart(DragStartEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return(false);
            }

            if (movementBlueprints != null)
            {
                isDraggingBlueprint = true;
                changeHandler?.BeginChange();
                return(true);
            }

            if (DragBox.HandleDrag(e))
            {
                DragBox.Show();
                return(true);
            }

            return(false);
        }