protected virtual void OnDragCompleted(MouseDragEventArgs e) { if (DragCompleted != null) { DragCompleted(this, e); } }
protected virtual void OnDragDelta(MouseDragEventArgs e) { if (DragDelta != null) { DragDelta(this, e); } }
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(); }