Walter Fabio Simoni
Walter Fabio Simoni

Reputation: 5729

Pushpin on a bing map control, polygon on the pushpin, why cannot click on my pushpin?

I'm developing a WPF Application with the bing map control.

On my map, i added some pushpin. I added a click event on my pushpin.

All is ok, i can click on my pushpin and the event is fire.

Now, i need to add some circles ( MapPolygon ) on the map.

When the circle is "on" a pushpin, my click event on my pushpin is not fire.

I need to have always the click event on the pushpin ( an not on the circle).

For information, i draw my circles by MapPolygon directly by C#, and not by WPF.

Upvotes: 0

Views: 545

Answers (1)

Walter Fabio Simoni
Walter Fabio Simoni

Reputation: 5729

Thanks to Didier, solution is :

Setting

IsHitTestVisible 

to false on the circle !

Upvotes: 2

Related Questions