I was wondering if there was any event like Java's Mousedragged available for a FrameworkElement derived class. In my current solution the MouseDown - event is fired only once per a mousebutton gone down, as one might expect, but the behaviour I'm after is that event firing every time the user moves the mouse keeping the left button down. I did some researching but managed found no good solution (like an event that fits the needs)
Event like MouseDragged?
Page 1 of 12 Replies - 3926 Views - Last Post: 24 December 2011 - 12:50 AM
#1
Event like MouseDragged?
Posted 23 December 2011 - 02:34 PM
Hi all and happy christmas!
I was wondering if there was any event like Java's Mousedragged available for a FrameworkElement derived class. In my current solution the MouseDown - event is fired only once per a mousebutton gone down, as one might expect, but the behaviour I'm after is that event firing every time the user moves the mouse keeping the left button down. I did some researching but managed found no good solution (like an event that fits the needs)
I was wondering if there was any event like Java's Mousedragged available for a FrameworkElement derived class. In my current solution the MouseDown - event is fired only once per a mousebutton gone down, as one might expect, but the behaviour I'm after is that event firing every time the user moves the mouse keeping the left button down. I did some researching but managed found no good solution (like an event that fits the needs)
Replies To: Event like MouseDragged?
#2
Re: Event like MouseDragged?
Posted 23 December 2011 - 08:49 PM
How about mouseMove then check if the mouseleftbutton is down? That's what we've done for years in WinForms for things like making bounding boxes and such.
#3
Re: Event like MouseDragged?
Posted 24 December 2011 - 12:50 AM
Yes, that's what I figured out two minutes after turning off the computer
, but since the clock was nearing the midnight I went to sleep instead of here. I should learn to think for a night and ask questions in the morning
Anyway, thanks
Anyway, thanks
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|