Issue with mouse move event
Posted
by Vinjamuri
on Stack Overflow
See other posts from Stack Overflow
or by Vinjamuri
Published on 2010-04-12T00:01:35Z
Indexed on
2010/04/12
0:03 UTC
Read the original article
Hit count: 404
I have a WPF control1 (has a moving control) that is hosted through elementhost on a windows form. My aim is to capture the mouse move events for the elementhost.
I found out from the following link that MouseMove fires when Control moves under mouse while mouse stands still.
http://social.msdn.microsoft.com/Forums/en/wpf/thread/56e7b331-ac6f-4d62-a83b-c09009b79fa0
I am getting fake mouse move events for elementhost. In order to fix this issue, I added a button on top of elementhost and set its Visible property to Hidden. Still I get fake mouse move events.. How to fix this issue? Is there any workaround?
Appreciate your help...
© Stack Overflow or respective owner