2 Replies - 3926 Views - Last Post: 24 December 2011 - 12:50 AM Rate Topic: -----

#1 Feuer  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 56
  • Joined: 15-June 11

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) :(

Is This A Good Question/Topic? 0
  • +

Replies To: Event like MouseDragged?

#2 tlhIn`toq  Icon User is offline

  • Closing in on 5,000
  • member icon

Reputation: 4928
  • View blog
  • Posts: 10,465
  • Joined: 02-June 10

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.
Was This Post Helpful? 1
  • +
  • -

#3 Feuer  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 56
  • Joined: 15-June 11

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 :rolleyes:, 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 :P

Anyway, thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1