Exemplo n.º 1
0
        protected override void OnDrag(DragEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return;
            }

            if (!moveCurrentSelection(e))
            {
                DragBox.UpdateDrag(e);
            }
        }
Exemplo n.º 2
0
        protected override bool OnDragStart(DragStartEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return(false);
            }

            if (!beginSelectionMovement())
            {
                if (!DragBox.UpdateDrag(e))
                {
                    return(false);
                }

                DragBox.FadeIn(250, Easing.OutQuint);
            }

            return(true);
        }