Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 wp7 中有一个 Bingmap 控件。这个 bingmap 包含很多图钉按钮。我想在点击事件触发时删除这个按钮。那么如何去掉这个按钮呢?
我尝试了下面的 c# 代码,但它不起作用
map1.children.remove(pin[i])
我是这样做的:
您可以使用 MapLayer 并向该 MapLayer 添加图钉,然后在添加下一个图钉之前清除图层。
不要忘记将 MapLayer 作为子项添加到地图控件