Reputation: 4009
I am currently programming a little WPF app, where I desire to draw some simple shapes on a WPF Map control.
For drawing my shapes, I use a MapItemsControl and a few MapPolyline objects.
However, if I, for example, click directly on a MapPolyline, the MouseDown or MouseUp event of the MapPolyline is fired.
How can I change this behavior, so that the corresponding events of the Map control are fired?
Background: I want to use the MouseDoubleClick event, which is missing in the MapPolyline class.
Upvotes: 0
Views: 92
Reputation: 128061
You may simply set the IsEnabled
or the IsHitTestVisible
property of the MapPolylines to false
.
Upvotes: 1