Пример #1
0
 /// <summary>
 /// Cancels any in-flight request to the Geolocator, and
 /// disconnects the Geolocator.StatusChanged event handler.
 /// </summary>
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     base.OnNavigatedFrom(e);
     LocationHelper.CancelGetCurrentLocation();
     LocationHelper.Geolocator.StatusChanged -= Geolocator_StatusChanged;
     NetworkInformation.NetworkStatusChanged -= NetworkInformation_NetworkStatusChanged;
 }