Windows phone 8 Windows phone 8应用程序代码使用震动加速度计查找位置

Windows phone 8 Windows phone 8应用程序代码使用震动加速度计查找位置,windows-phone-8,Windows Phone 8,我正在尝试创建代码,使用WindowsPhone8模拟器上的震动加速计在地图上查找位置 我使用反向地理编码通过按钮显示位置,但我不知道如何使用震动传感器显示位置,有人可以帮助我或给我链接到我可以学习为该功能创建代码的地方吗 private void ReverseGeocodeQuery_QueryCompleted(object sender, QueryCompletedEventArgs<IList<MapLocation>> e) { i

我正在尝试创建代码,使用WindowsPhone8模拟器上的震动加速计在地图上查找位置

我使用反向地理编码通过按钮显示位置,但我不知道如何使用震动传感器显示位置,有人可以帮助我或给我链接到我可以学习为该功能创建代码的地方吗

 private void ReverseGeocodeQuery_QueryCompleted(object sender, QueryCompletedEventArgs<IList<MapLocation>> e)
    {
        if (e.Error == null)
        {
            if (e.Result.Count > 0)
            {
                MapAddress address = e.Result[0].Information.Address;
                CurrentLocTextBlock.Text = "Current Location: ";;
                AddressTextBlock.Text = address.City + ", " + address.State;
            }
        }
    }
private void ReverseGeocodeQuery\u QueryCompleted(对象发送方,QueryCompletedEventArgs e)
{
如果(e.Error==null)
{
如果(e.Result.Count>0)
{
MapAddress address=e.Result[0]。Information.address;
CurrentLocTextBlock.Text=“当前位置:”;;
AddressTextBlock.Text=address.City+“,”+address.State;
}
}
}