ClemensFischer / XAML-Map-Control

XAML Map Control Library
Microsoft Public License
203 stars 59 forks source link

How to detect that the map is dragged? #110

Closed o4oren closed 1 year ago

o4oren commented 1 year ago

I can't find the event that would indicate user interaction moving the map, except if I used MouseButtonDown. The context is that I go the map following an object by constantly updating the center property, but I want to enable the user to dragging off - and then losing the center on target follow, until selecting it again via a button.

ClemensFischer commented 1 year ago

There is no special event. Use the ViewportChanged event and perhaps set a flag to decide whether your code initiated a viewport change.