I have a Canvas with event handlers for MouseMove & MouseLeftButtonUp. Inside the canvas I have placed image icons. I want to rotate the icons using drag events like the iPhone. How can I capture the click event on an image?
I have a Canvas with event handlers for MouseMove & MouseLeftButtonUp. Inside the canvas
Share
To determine if you are dragging either:
Record when a mousedown event is fired and then clear that record when mouseup fires. Check this record in the mousemove event.
Check
e.LeftButton == MouseButtonState.Pressedin your mousemove event.