Hi,
We are doing a venn diagram on map control,so i want to disable all map features like zoom and drag.
could you please tell me the options to disable.
Thanks.
Disable Map zooming
Hi Lalitya,
Please try the below codes:
wpfMap1.MapTools.PanZoomBar.IsEnabled = false;
wpfMap1.ExtentOverlay.MouseWheelMode = MapMouseWheelMode.Disabled;
wpfMap1.ExtentOverlay.PanMode = MapPanMode.Disabled;
Thanks,
Johnny
Thanks Johnny,
I used preview events to block those actions, now I changed my code.
Thanks for this small piece of code which was difficult for me to find in huge API.
Hi Lalitya,
You’re welcome, any question please let us know.
Regards,
Don