When the user is manually moving the map, I'd like to evaluate some criteria and optionally do something when they're finished. I can't seem to find the right MapControl event to hook into for this.
I've tried using CenterChanged, but it fires constantly while the map is moving and degrades performance.
Which MapControl
event can I use to know when the user has finished moving the map?
I ended up using a timer to check the map center every second and update my view model accordingly. It feels like a hack to me but it's much more performant than using
CenterChanged
. TheDispatchTimer
is used to allow the timer to run on the UI thread so it has access to theMapControl
.It sure would be nice if the MapControl exposed some sort of ManualMoveComplete event for those of us who want to take action when a user has finished moving the map. I've created a request for it here on uservoice: https://binglistens.uservoice.com/forums/283355-ideas/suggestions/9494889-add-a-centermanuallychanged-event-to-mapcontrol