Dear Gurus!
When I try to use mouse event handlers (mouse click and mouse move handlers) in silverlight application default shortcut keys for zooming operation (Left mouse + Sthif Key + Drag) do not work. How to fix?
Solved! Go to Solution.
I solved the problem by replacing MouseButtonEventHandler on MouseClick event handler. It was so:
myMap.MouseLeftButtonDown += new MouseButtonEventHandler(Map_MouseClick);
and now I did so:
myMap.MouseClick += new EventHandler<Map.MouseEventArgs>(Map_MouseClick);
and all works fine, but it is interesting how to use the first MouseLeftButtonDown event?
I noticed that on the one-click event handler is called 2 times. What may be the reason and how to fix?
This is the code in the ViewModel:
myMap.MouseClick += new EventHandler<Map.MouseEventArgs>(Map_MouseClick);
private void Map_MouseClick(object sender, ESRI.ArcGIS.Client.Map.MouseEventArgs e) { }
i think this will help you
e.Handled = true;
Did not help.