Event on Panning on Mapcontrol - wpf

Jul 28, 2010 at 3:08 PM

Hi Radioman,

 

Can you please let me know which event is fired when map is panned in WPF.

I could find for OnMapZoomChanged event for Zooming but i cant find it for panning. I tried in OnMapAreaChanged but it didn't work.

I need it please suggest me.It's urgent.

Regards,

Balaji

Jul 28, 2010 at 3:18 PM

OnMapDrag?

Jul 28, 2010 at 3:36 PM

Aah much thanks Iljas. I just checked it now and the event is firing. But for example for a single pan it fires for almost 30-40 times is there any way to restrict it to single time which will be much useful.

Please correct me if i have overlooked anything.

 

Regards,

G.Balaji

 

Jul 28, 2010 at 5:41 PM
try OnMouseUp event with if(map.IsDragging) { ...
Jul 29, 2010 at 6:39 AM

Hi Radioman,

 

much thanks. Is it ok if i use the mouseRightButtonUp Event which occurs after panning and  i am also checking on the event that you pointed.

 

Regards,

G.Balaji