Select to view content in your preferred language

Map to disable input besides setting IsHitTestVisible

2056
1
12-28-2010 11:49 PM
linusang
Emerging Contributor
Hi,

I would like to know how to disable map touch/mouse input without setting the ishittestvisible = false property. The reason is because if i set it to false, my drop attach event won't fire.

thanks
0 Kudos
1 Reply
AliMirzabeigi
Emerging Contributor
One way of doing this would be hooking up mouse event handlers and setting their EventArgs "Handled" property to TRUE. Here is an example for the mouse wheel event handler in C#:

private void Map_MouseWheel(object sender, MouseWheelEventArgs e)
{
    e.Handled = true;
}
Hope this helps.
0 Kudos