0
Когда я нажимаю кнопку «Назад», чтобы закрыть приложение «Карты бинга» и вернуться в приложение, карты бинга открываются снова и снова и снова, не могут закрыть их , Как решить эту проблему? (Я нахожусь на Windows Phone 8)Bing map - кнопка «Назад» - не может вернуться в мое приложение 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();
}
}