Esempio n. 1
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);

            if (dragging != null)
            {
                //Check if the user released the mouse button while outside the window...
                if (e.LeftButton != MouseButtonState.Pressed)
                {
                    dragging.Deselect();
                    dragging = null;
                }
                else
                {
                    ((DraggableGridSnapper)dragging).OnMouseMove_(e);
                }
            }
        }
Esempio n. 2
0
 public void Select(DraggableGridSnapper control)
 {
     if (selected != null)
     {
         selected.Deselect();
     }
     selected = control;
     selected.Select();
     dragging = control;
 }