ThinkGeo.com    |     Documentation    |     Premium Support

MouseDown will not fire in MapView

In our investigation into upgrading from TG Winforms 10 to TG Winforms 14 I have run into another issue. The MouseDown event on the MapView control does not fire, nor does MouseUp. These events are required in our application in many instances where we need to know the beginning and end of an action by detecting these mouse events. I suspect the problem is due to the fact that a WPF control is being hosted by a WinForms ElementHost but I can’t see how to get around it. Can you offer any solution?

Thanks!

Steve

Hi Steve,

I just added the 2 events for you to the latest beta 027, pull the latest and have a try.

 mapView.MapMouseDown += MapView_MouseDown;
 mapView.MapMouseUp += MapViewOnMouseUp;

Thanks,
Ben