Hello,
I would like to disable the ZoomBox functionality in ArcGIS Runtime / Maps 200.1 where holding the shift key or shift + ctrl keys and click/dragging doesn't zoom, but the user is still able to zoom normally via the scrollwheel.
The MapViewInteractionOptions has a "IsZoomEnabled" property, but that globally disables zooming, which is not what we're after.
https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.MapViewInteractionOptions.html
Is there a setting in the 200 .net runtime to accomplish this?
There is no out-of-the-box setting for disabling individual gestures. However one approach is to override the mapview template. If you in the WPF designer right-click the mapview and select "Edit Template -> Edit a Copy" you'll get access to the XAML control template. In the template find the Rectangle that's called "ZoomBox" and delete it.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.