Search code examples
c#xamlmapspushpinwin-phone-silverlight-8.1

Interactive MapIcon, Windows Phone 8.1 Universal App


so, I have an app which allows users to add recommendations for restaurants and places in a certain area, when added a MapIcon is added to map and data pulled from parse, what i need is a way that when the MapIcon is clicked that is displays the information for that recommendation, another option is adding a custom user control to the map. put I would prefer the first way. Any Help would be appreciated :)


Solution

  • You can't make MapIcon (and other children of the MapElements collection) interactive. These are controlled by the native MapControl.

    What you can do, is add normal XAML elements to the MapControls Children collection e.g. via a MapItemsControl. There you can use whatever you like. Buttons, Images with tapped handlers and so on. See http://msdn.microsoft.com/en-us/library/jj620947.aspx