I am trying to call a method when user scrolls mouse wheel on the map but it doesn't. Here is what I tried:
That didn't work so:
I tried to subscribe it in the code behind:
MyMapView.MouseWheel += MyMapView_MouseWheel;
It still doesn't trigger the method. However, PreviewMouseWheel works.
Any help appreciated!
This is intended behavior. The MapView uses the scroll event to perform a zoom operation and therefore the event doesn't bubble up. If it did and for instance put the MapView inside a scrollviewer, the map would both zoom and the page scroll at the same time.
If you disable zoom on the map view (use the InteractionOptions property), the MapView won't intercept the event and let the event bubble up.