2

I have a Rectangle within a Canvas. The rectangle has the MouseDragElementBehavior attached to it, so it can move freely within the canvas.

I need to do certain calculations when the smallest changes happen in the position of the rectangle, but i can not find a single best event.

So far I have resorted to MouseMove event for the rectangle which is an overkill. Any alternative?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
olix20
  • 794
  • 1
  • 11
  • 23

1 Answers1

2

You should base on the events from MouseDragElementBehaviour class, DragBegun, DragFinished and Draggging.

mircea
  • 493
  • 3
  • 8