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?
i think this will help you
e.Handled = true;
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 solved the problem by replacing MouseButtonEventHandler on MouseClick event handler. It was so:
myMap.MouseLeftButtonDown += new MouseButtonEventHandler(Map_MouseClick);
and now I did so:
and all works fine, but it is interesting how to use the first MouseLeftButtonDown event?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.