Rukshan Perera
Rukshan Perera

Reputation: 150

WPF - How to detect if mouse has stopped moving

In a WPF application, how can you detect if the mouse pointer has stopped moving? I have a canvas and there is a circle(Ellipse) inside. User can move the mouse over the circle. I want see if the mouse is moving over the circle or it has stopped moving? MouseEnter even of the Ellipse object won't help cos it would be fired even if the mouse is not stopped over the Ellipse.

Any ideas on how to achieve this?

Thanks in advance.

Regards, Rukshan

Upvotes: 1

Views: 920

Answers (1)

Felice Pollano
Felice Pollano

Reputation: 33272

Try to look at the ToolTipOpening event, you can use it as a marker of the mouse stopped on your element.

Upvotes: 2

Related Questions