Select to view content in your preferred language

How do you turn off automatic map movement events after a mouse down?

505
2
10-11-2012 01:17 PM
Labels (1)
EzraSidran
Emerging Contributor
I want to stop the map from scrolling on a mouse down event.

In fact, I want to intercept the mouse down and deal with the events myself.

So far, my part is working, but then after I intercept the mouse down event and do what I want with it.... the map scrolls!

Does anybody know how I can turn this off?

Thanks!
0 Kudos
2 Replies
AnttiKajanus1
Deactivated User
Hi,

You need to set MouseButtonEventArgs.Handled to true if you have hooked event to it.

private void map_MouseButtonDown(object sender, MouseButtonEventArgs e)
        {
            e.Handled = true;
        }
0 Kudos
EzraSidran
Emerging Contributor
Thank you very much for the answer!
0 Kudos