Click here to Skip to main content
16,023,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I used MouseDragElementBehavior to let user drag & drop Shapes on a Canvas:
MouseDragElementBehavior dragBehavior = new MouseDragElementBehavior();
dragBehavior.Attach(myShape);

Now, I would like to know when myShape was moved and when myShape was dropped.
Could you please suggest a code that prints the mouse coordinates when myShape is moved, and prints "Dropped" when myShape is dropped ?
Thank you so much !
Posted

1 solution

This is just dragging on and on. You seem to be asking for every step of your code. Perhaps you should learn to use google, so you can find stuff like this[^]. Or, just read the documentation, I guess....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900