Windows phone 7 如何在Emulator上获取Windows Phone 7中的当前位置

Windows phone 7 如何在Emulator上获取Windows Phone 7中的当前位置,windows-phone-7,Windows Phone 7,我是WindowsPhone7的新手。我想开发一个应用程序,告知设备的当前位置(lat-long),并突出显示bing地图中在emulator上工作的当前位置,因为我没有用于测试的设备。任何帮助 提前感谢。看看这个CodePlex有一个实用程序(只是一个.cs文件) 我只是硬编码了一个已知的位置: if (location == GeoCoordinate.Unknown) { // Use Palo Alto if we're running in the emulator. loca

我是WindowsPhone7的新手。我想开发一个应用程序,告知设备的当前位置(lat-long),并突出显示bing地图中在emulator上工作的当前位置,因为我没有用于测试的设备。任何帮助


提前感谢。

看看这个

CodePlex有一个实用程序(只是一个.cs文件)

我只是硬编码了一个已知的位置:

if (location == GeoCoordinate.Unknown)
{
  // Use Palo Alto if we're running in the emulator.
  location_string = "&latitude=37.47&longitude=-122.12";
}

谢谢你,马可姆。发生未处理的ArgumentNullException。没有可用的源,调用堆栈位置:System.ServiceMogel.dll!在Emulator上调试期间,System.ServiceModel.AsyncResultl.End(System.IAsyncResult结果)+0xa3bytes。可能有什么问题。再次感谢。你需要更具体一些。你是如何设置模拟器的?非常感谢。如何在WP7中突出显示bing地图中的位置,并在当前位置和目的地之间绘制箭头?有什么想法吗?最好结束这个问题,开始一个新的问题,因为它不是直接相关的。