I have an axMapControl in a WinForms application. According to the ArcGIS documentation,
[The]
OnExtentUpdated
[event] is triggered whenever theIMapControl2::Extent
property is changed. Setting the extent explicitly, zooming, panning or using theIMapControl2::CenterAt
method will change the extent.
But how can I know (programmatically) inside the event handler that it was zooming or panning that caused the extent to change? I am looking for some C# code which would enable me to know that the extent change was caused by one of those two things.