//メインページから離脱した時の処理。 protected override void OnNavigatedFrom(NavigationEventArgs e) { Sensor.Stop(); Sensor.CompassDataChanged -= sensor_CompassDataChanged; Sensor.GPSDataChanged -= sensor_GPSDataChanged; Sensor.GPSStatusChanged -= sensor_GPSStatusChanged; timer.Stop(); timer.Tick -= timer_Tick; base.OnNavigatedFrom(e); }
//メインページから離脱した時の処理。 protected override void OnNavigatedFrom(NavigationEventArgs e) { Sensor.Stop(); //Sensor.GPSStatusChanged -= Sensor_GPSStatusChanged; //DB.SaveInfoToIsoStrage(PushPinView); IsolatedStorageSettings.ApplicationSettings["Sort"] = SortBy; IsolatedStorageSettings.ApplicationSettings["SearchKeyword"] = SearchKeyword; base.OnNavigatedFrom(e); }
//メインページから離脱した時の処理。 protected override void OnNavigatedFrom(NavigationEventArgs e) { Sensor.Stop(); Sensor.CompassDataChanged -= sensor_CompassDataChanged; Sensor.GPSDataChanged -= sensor_GPSDataChanged; Sensor.GPSStatusChanged -= sensor_GPSStatusChanged; turnOffTimer(); //DB.SaveInfoToIsoStrage(PushPinView); isolateStore["AverageSpeed"] = Sensor.AvgSpeed; base.OnNavigatedFrom(e); }
//メインページから離脱した時の処理。 protected override void OnNavigatedFrom(NavigationEventArgs e) { Sensor.Stop(); Sensor.GPSDataChanged -= Sensor_GPSDataChanged; Sensor.GPSStatusChanged -= Sensor_GPSStatusChanged; Sensor.CompassDataChanged -= Sensor_CompassDataChanged; turnOffTimer(); //DB.SaveInfoToIsoStrage(PushPinView); isolateStore["ZoomLevel"] = MyMap.ZoomLevel; isolateStore["CenterLatitude"] = MyMap.Center.Latitude; isolateStore["CenterLongitude"] = MyMap.Center.Longitude; isolateStore["AverageSpeed"] = Sensor.AvgSpeed; base.OnNavigatedFrom(e); }