简体   繁体   中英

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 :)

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 eg 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM