Windows Phone 8.1应用程序 - 地图控制错误 [英] Windows Phone 8.1 apps - Map Control error
本文介绍了Windows Phone 8.1应用程序 - 地图控制错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每当我向我的应用添加地图控件时,它会在模拟器中启动然后崩溃
但是当我删除地图控件时它工作正常
可能是什么问题?
代码:
< Maps:MapControl Width =" 475"高度= QUOT; 640> < / Maps:MapControl>
解决方案
您是否在WMAppmanifest文件中添加了适当的功能?
每个MSDN文档
" 在添加 Map < span style ="color:#2a2a2a; font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:14px; line-height:13.32800006866455px"> control。"
Whenever i add a map control to my app , it launches in the emulator and then crashes
But when i removed the map control it works fine
What could be the problem?
Code:
<Maps:MapControl Width="475" Height="640> </Maps:MapControl>
解决方案
Have you added the proper capabilities in the WMAppmanifest file?
Per MSDN Documentation
"You must add an ID_Cap_Map capability before you add the Map control."
这篇关于Windows Phone 8.1应用程序 - 地图控制错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文