如何在WP7的Bing Maps控件中处理图钉上的单击事件 [英] How should I handle click events on pushpins in my Bing Maps control for WP7

查看:52
本文介绍了如何在WP7的Bing Maps控件中处理图钉上的单击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在我的地图上的每个图钉中添加模板化的<Button>控件,以便与用户单击(或触摸)图钉进行交互.这是使用图钉的正确方法吗?我不想处理MouseDown和MouseUp并重塑一切(没有人应该这样做).

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

我只需要确认即可.

推荐答案

为什么不在MapItemsControl.ItemTemplate中添加不可见样式的按钮,并使用单击"按钮.

Why dont you add an Invisible styled button inside the MapItemsControl.ItemTemplate and use Click on the button.

这篇关于如何在WP7的Bing Maps控件中处理图钉上的单击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆