ThinkGeo.com    |     Documentation    |     Premium Support

How to stop map move in WpfMap Control when movemouse event happened

I want show same pictures in a overlayer and modefy their width、 height and degree. So I should stop the map move event when modefy the picture,  I can implement by override OnMouseMove mothed in WinformsMap control , but cann't implement in WpfMap Control . Could someone tell me how to do?



Shi,


Thanks for your post and welcome you to ThinkGeo MapSuite Desktop discussion forum.
 
Following code snippet shows a tricky way to avoid the events happening:

winformsMap1.MouseMove -= new MouseEventHandler(winformsMap1_MouseMove);
 
wpfMap1.MouseMove -= new System.Windows.Input.MouseEventHandler(wpfMap1_MouseMove);

 
Any more quesitons just feel free to let me know.
 
Thanks.
 
Yale

Thanks for your answer. 
  
 I had look at the example of HowDoISamples. I can use the TrackMode of wpfMap1.TrackOverlay.  when I modefy my picture,  I just set it to TrackMode.Custom.

Shi, 
  
 Thanks for letting me know this. I am not exactly sure about your scenario, probablly you could set it to None too. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale