Reputation: 6142
Small question, I added a pushpin to a bing maps control on my windows phone 7 view. I have an EventTrigger EventName="MouseLeftButtonUp" that maps to a command on my viewmodel. So when I click that pushpin, my code in the viewmodel is triggered.
But when I also add EventTrigger EventName="MouseLeftButtonUp" to the bing map itself, only that code will be triggerd and the code specific for the pushpin click is ignored.
So any tips on how to add seperate eventriggers for the bing maps parent control and it's map item controls?
Upvotes: 1
Views: 378
Reputation: 26338
You shouldn't have a Tap event handler for the Map itself, if you're handling tap-events on the PushPins.
The problem is related to the bubbling of events, which you can't do a awful lot about. Also, why would you want to have a tap-event on the map in the first place?
Upvotes: 1