protected virtual void OnDragCompleted(MouseDragEventArgs e)
 {
     if (DragCompleted != null)
     {
         DragCompleted(this, e);
     }
 }
 protected virtual void OnDragDelta(MouseDragEventArgs e)
 {
     if (DragDelta != null)
     {
         DragDelta(this, e);
     }
 }
Esempio n. 3
0
        private void OnDragDeltaHandler(object sender, MouseDragEventArgs e)
        {
            var movable = _helper.Movable;

            if (movable == null)
            {
                return;
            }
            movable.Location.Left += e.Delta.X;
            movable.Location.Top  += e.Delta.Y;
            movable.RefreshLayout();
        }