Shkolar
Shkolar

Reputation: 422

Drawing on Bing Map Control

I am writing an software which runs on windows 7 tablet in WPF (with Bing Maps).

I want to draw when the mouse is dragged, I wanted to use this guide: Drawing on bing maps But I can't find the mouseTap event on the Map control. I guess it's only avaliable in the Silverlight version. How Should I trace the mouse?

Also, I need to freeze the map (because touching it right now changing the display of the map). Is there an easy way to do that?

Upvotes: 1

Views: 600

Answers (1)

Clemens
Clemens

Reputation: 128136

There is no Tap event in WPF. You would have to deal with the following mouse events.

There are also the somewhat more specialzed events

In cases where you need to handle the event before the Bing Maps Control, you may need to use the appropriate tunneling events listed below. To prevent further event handling by the Bing Maps Control set the RoutedEventArgs.Handled flag to true.

Upvotes: 2

Related Questions