Select to view content in your preferred language

Changing the default PAN behavior

483
1
01-24-2012 03:37 AM
Labels (1)
AndreMachado
Emerging Contributor
Hello,

Can I change the default PAN behavior? Say, use the mouse middle button or a key like space bar instead of the left mouse button?

If not, the only way would be to attach to the MouseMove event and change de map's Extent or use the PanTo method?

Thank you,

Andre
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
To disable map navigation on MouseLeftButtonDown, you can mark this e.Handled = true. This disables both pan and zoom. This SDK sample demonstrates how you can call Map.PanTo(): http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#PanButtons
0 Kudos