I'm about to add templated <Button>
controls inside each of my Pushpins on my Map, in order to interact with the user clicking (er, touching) a pushpin. Is this the proper way to work with pushpins? I don't want to handle MouseDown and MouseUp and reinvent everything (and nobody should).
I just need confirmation.
Why dont you add an Invisible styled button inside the MapItemsControl.ItemTemplate and use Click on the button.
MouseLeftBUttonUp ? I have only the emulator and it works on my custom pushpin :
Edit: After getting a real device I have tested my application and I can confirm that MouseLeftBUttonUp is a bad idea (and not recommended by Microsoft in the Performance tips)
instead you sould use Manipulation events:
If all you want is to be able to click/tap on each pushpin, add a MouseLeftButtonUp event to each pushpin you create. For example:
then you add