WP8应用程序开发中存在地图控件,而不是7.1 [英] Map control present in WP8 app development, not in 7.1

查看:68
本文介绍了WP8应用程序开发中存在地图控件,而不是7.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在SDK 8中为windows phone 7.1构建一个应用程序,我注意到工具箱中缺少地图控件。但是,当我创建一个Windows Phone 8项目时,控件就会出现。这是为什么?如何将地图
控件带回我的7.1项目?


问候,


Nikolas

解决方案

来自文档:
Windows Phone 8的地图和导航

Windows Phone 8中的新Maps API与Windows Phone OS 7.1中提供的Bing Maps不同。 Windows Phone 8仍支持Bing Maps控件,但已弃用。通常,您应该使用Bing Maps控件
的唯一时间是将现有应用程序从Windows Phone OS 7.1升级到Windows Phone 8。


如果要在两者之间共享地图代码WP7和WP8,你必须在两者中使用WP7 Bing Maps。以下是WP7地图的文档:
在Windows Phone上使用Silverlight地图控件7


I am trying to build an app for windows phone 7.1 in SDK 8 and I noticed that the map control was missing from the toolbox. However, when I create a windows phone 8 project, the control appears just like it should. Why is that? How can I bring back the map control to use with my 7.1 project?

Regards,

Nikolas

解决方案

From the documentation: Maps and navigation for Windows Phone 8

The new Maps APIs in Windows Phone 8 are different from the Bing Maps available in Windows Phone OS 7.1. The Bing Maps control is still supported in Windows Phone 8, but is deprecated. Typically, the only time you should use the Bing Maps control is when you upgrade an existing app from Windows Phone OS 7.1 to Windows Phone 8.

If you want to share your map code between WP7 and WP8, you'll have to use the WP7 Bing Maps in both. Here's documentation for the WP7 Maps: Using the Silverlight Map Control on Windows Phone 7


这篇关于WP8应用程序开发中存在地图控件,而不是7.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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