Select to view content in your preferred language

Prevent mouse input on Map object

670
1
05-25-2010 07:50 PM
linusang
Emerging Contributor
Hi,

I would like to know how can i prevent the Map object from responding to mouse inputs completely.
As i'm doing a WPF multi-touch version, i would not want the mouse input to mess up the touch gestures.

Thanks
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
If you handle the touch events, the map shouldn't be receiving them (Make sure you set e.Handled = true). The map itself does not implement any touch events. If I recall correctly, if you are not handling touch, these events automatically gets converted to mouse down/move/up events.

You could also set IsHitTestVisible=true on the mapcontrol which would prevent the control from getting any mouse and touch events.
0 Kudos