Windows Phone 8.1 MapIcon点击事件 [英] Windows Phone 8.1 MapIcon Click event
问题描述
这是我第一次开发Windows Phone 8.1应用程序,所以任何建议都是非常感激的。谢谢。
而不是MapIcon,您可以在地图上放置任何XAML元素。请查看 http://msdn.microsoft.com/ en-us / library / windows / apps / xaml / dn792121.aspx#shows_xaml_controls_and_shapes_on_the_map
由于它们是完整的XAML元素,因此您应该可以使用Tapped事件。
另请注意,不能保证MapIcon对象将被显示,它们可能被其他元素遮挡。
I'm writing a Windows Phone 8.1 app(Windows Runtime version), and I used the MapIcon class to place the icons on the map control. However, I hope these icons can react to the "click" event so that I could show more details after a user has clicked a specific icon. I googled and wasn't able to find an answer. Is it possible, or do I have to create my own class in order to achieve this goal(and how)?
It's my first time to develop the Windows Phone 8.1 app, so any suggestions are really appreciated. Thank you.
Instead of MapIcon you can place any XAML element on the map. Check http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn792121.aspx#showing_xaml_controls_and_shapes_on_the_map Since they are full blown XAML elements, you should be able to use Tapped event.
Also note that there is no guarantee that MapIcon objects will be displayed, they may be obscured by other elements.
这篇关于Windows Phone 8.1 MapIcon点击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!