예제 #1
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);
        }
예제 #2
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);
        }