I wanted to remove mouse double click zoom but retain the scroll wheel zoom. Is it possible?
WPF or UWP?
WPF
You just handle the doubleclick preview-event, which prevents the mapview from receiving the double-click:
myMapView.PreviewMouseDoubleClick += (s, e) => e.Handled = true;
I want to use MyMapView_GeoViewDoubleTapped though. Is there any other way?
Hi Morten. How would I accomplish this in Xamarin? There is no PreviewMouseDoubleClick event to work with there. And just setting handled = true in the GeoViewDoubleTapped event does not do the trick.
The double tapped event is too late. I believe if you handle it in the GeoViewTapped event, the doubletapped won't fire.
Alternatively, you can use the MapView.InteractionOptions to disable zoom.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.