0
當我按下後退按鈕關閉bing地圖應用程序並返回到應用程序時,bing地圖一次又一次打開,無法關閉它們。如何解決這個問題?(我爲Windows phone的8)Bing地圖 - 後退按鈕 - 無法返回到我的應用程序WP8
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
if (NavigationContext.QueryString.TryGetValue("itineraire", out itineraire))
{
// You can specify a label and a geocoordinate for the end point.
GeoCoordinate spaceNeedleLocation = App.Sitegeolocalisation;
LabeledMapLocation spaceNeedleLML = new LabeledMapLocation(App.leSite.SiteName, spaceNeedleLocation);
// If you set the geocoordinate parameter to null, the label parameter is used as a search term.
MapsDirectionsTask mapsDirectionsTask = new MapsDirectionsTask();
mapsDirectionsTask.End = spaceNeedleLML;
// If mapsDirectionsTask.Start is not set, the user's current location is used as the start point.
mapsDirectionsTask.Show();
}
else
{
MapsTask mapsTask = new MapsTask();
mapsTask.ZoomLevel = 17;
//Omit the Center property to use the user's current location.
mapsTask.Center = App.Sitegeolocalisation;
mapsTask.Show();
}
}