tags:

views:

51

answers:

3

Hi,

Is there a way to get mouse position without attaching a event handler?

I'm trying to get a box to appear where the mouse is.

Thanks Sp

A: 

Unfortunately, I think you'll have no other way than using the MouseMove event. You can attach it to the Application.Current.RootVisual (or any other layout root) though, so you should be able to implement your scenario.

herzmeister der welten
A: 

You could create custom Cursor. But, you at-least would need to have mouse move event.

Avatar
+1  A: 

Wouldn't you rather want it on a mouse-up or mouse-down event? Here are a few drag-and-drop tutorials that might help with ideas for capturing mouse positions:

Peet Brits