Select to view content in your preferred language

Panning on Mouse Click

707
3
10-23-2011 09:16 PM
VinayBansal
Frequent Contributor
Hi All,

I am using ArcGIS Silverlight API 1.2 and Silverlight 3 in VS2008 SP1. Whenever I used to click on the map, it starts panning... I have tried many workarounds but still no luck. .. The default behavior should be that when Mouse is pressed down and mouse moves then pan should occur. But in my application its behaving in an unusual manner. I click on map (mouse left not pressed) and then on mouse move it starts panning which is very irritating...... I have added Bing Layer along with my custom data on map.

Please let me know if anyone has solution for this...

Regards,
Vinay Bansal
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
If you added a mouse event to your app and do not want the mouse event to also cause a pan, mark e.Handled =true on your mouse event handler.
0 Kudos
VinayBansal
Frequent Contributor
Hi jennifer,

Thanks for ur reply.
I tried the solution but it didn't work. On map mouse click event I added e.Handled=true, but still the same problem...I click on map and after that map moves with mouse move.
0 Kudos
dotMorten_esri
Esri Notable Contributor
This was a bug that sometimes occured on v1.2 - especially when running on a slow PC, or with a lot of heavy graphics or through remote desktop/virtual machine. I recommend upgrading to a newer version of the API.
0 Kudos