public void Deactivated(object sender, DeactivatedEventArgs e) { // save state double vscroll = ListBoxOne.GetVerticalScrollOffset(); Configuration.SaveStateSetting<object>("DataContext", DataContext); Configuration.SaveStateSetting<double>("VScrollPosition", vscroll); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { if (wasLocked & ((e.Reason == DeactivationReason.ApplicationAction) | (e.Reason == DeactivationReason.UserAction))) { this.Terminate(); } }
void appService_Deactivated(object sender, DeactivatedEventArgs e) { string key = "pause"; if (appService.State.ContainsKey(key)) appService.State[key] = Manager.manager.pause; else appService.State.Add(key,Manager.manager.pause); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { // get a tombstonedata item... TombstoneData data = TombstoneData.GetTombstoneItem("UserToken", true); if (data == null) throw new InvalidOperationException("'data' is null."); data.Value = RestServiceProxy.Token; data.SaveChanges(); }
private void Application_Deactivated(object sender, DeactivatedEventArgs e) { if (_vm != null) { var phoneApplicationPage = RootFrame.Content as PhoneApplicationPage; if (phoneApplicationPage != null) _vm = (VMBase)phoneApplicationPage.DataContext; } }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { CameraExplorer.DataContext d = CameraExplorer.DataContext.Singleton; if (d.Device != null) { d.Device.Dispose(); d.Device = null; } }
// Código para ejecutar cuando la aplicación se desactiva (se envía a segundo plano) // Este código no se ejecutará cuando la aplicación se cierre private void Application_Deactivated(object sender, DeactivatedEventArgs e) { var viewModelLocatorService = Current.Resources["ViewModelLocator"] as ViewModelLocator; if (viewModelLocatorService != null) { viewModelLocatorService.MainViewModel.SaveRecipesToIs(); viewModelLocatorService.MainViewModel.UpdateTile(); } }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { Debug.WriteLine("App is deactivating"); if (OnNewTilePinned != null) { OnNewTilePinned(); OnNewTilePinned = null; } }
public void Deactivated(object sender, DeactivatedEventArgs e) { Configuration.SaveStateSetting<int>("SelectedPivot", pivot.SelectedIndex); if (pivot.SelectedItem != null && pivot.SelectedItem is PivotItem) { PivotItem selectedItem = (PivotItem)pivot.SelectedItem; if (selectedItem.Content != null && selectedItem.Content is NavigationPanel) { ((NavigationPanel)selectedItem.Content).Deactivated(sender, e); } } }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void ApplicationDeactivated(object sender, DeactivatedEventArgs e) { SaveSettings(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { Countly.EndSession(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { BlobCache.UserAccount.Flush().Wait(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { // Ensure that required application state is persisted here. // App._viewModel.LoadData(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { PhoneApplicationService.Current.UserIdleDetectionMode = OriginalIdleMode; }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { //Try to save collections, in case we are terminated AppContext.CurrentUser.TrySaveCollectedHighlightsLocally(); //Anything else? }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { IDictionary<string, object> state = PhoneApplicationService.Current.State; if (state.ContainsKey("Model")) { Model = (Model.DataModel)state["Model"]; } }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { // Ensure that required application state is persisted here. }
// 停用应用程序(发送到后台)时执行的代码 // 此代码在应用程序关闭时不执行 private void Application_Deactivated(object sender, DeactivatedEventArgs e) { // 确保所需的应用程序状态在此处保持不变。 }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { SaveToIsolatedStorage(); SaveToStateObject(); }
static void OnAppDeactivated(object sender, DeactivatedEventArgs e) { NavigationState = PhoneAppNavigationState.Deactivated; }
/// <summary> /// Code to execute when the application is deactivated (sent to background).<br/> /// This code will not execute when the application is closing. /// </summary> /// <param name="sender">Event sender.</param> /// <param name="e">The <see cref="DeactivatedEventArgs"/> instance containing the event data.</param> private void ApplicationDeactivated(object sender, DeactivatedEventArgs e) { // Do nothing. }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { UnityPlayer.UnityApp.Deactivate(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { AccelerometerHelper.Instance.IsActive = false; }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { Appboy.SharedInstance.CloseSession(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { // FAST RESUME: When the applicaiton is deactivated, save the current deactivation settings to isolated storage SaveCurrentDeactivationSettings(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { DeactivatedTime = DateTime.Now; PhoneApplicationService.Current.State["DeactivatedTime"] = DeactivatedTime; PhoneApplicationService.Current.State["LaunchingTime"] = LaunchedTime; }
void OnDeactivated(object sender, DeactivatedEventArgs e) { Save(StorageMode.Any); }
private void OnDeactivated(object s, DeactivatedEventArgs e) { this.IsBeingDeactivated(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { MainPage m = (MainPage)((PhoneApplicationFrame)RootVisual).Content; m.OnAppDeactivated(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { ViewModels.ViewModelLocator locator = Resources["Locator"] as ViewModels.ViewModelLocator; if (locator == null) { throw new NullReferenceException("locator is null!"); } locator.SaveDataToApplicationState(); //Save currentUri state SaveCurrentUriToApplicationState(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { // Ensure that required application state is persisted here. // If there is data in the application member variable... if (!string.IsNullOrEmpty(ApplicationDataObject)) { // Store it in the State dictionary. PhoneApplicationService.Current.State["ApplicationDataObject"] = ApplicationDataObject; // Also store it in isolated storage, in case the application is never reactivated. SaveDataToIsolatedStorage("Quran360DataFile.txt", ApplicationDataObject); } }
void AppDeactivated(object sender, DeactivatedEventArgs e) { Debug.WriteLine("AppDeactivated"); try { GapBrowser.InvokeScript("PhoneGapCommandResult", new string[] { "pause" }); } catch (Exception) { Debug.WriteLine("Pause event error"); } }
//*********************************************************************************************************************** //*********************************************************************************************************************** /// <summary> /// Se produit quand l'application est désactivée. /// </summary> /// <param name="Sender">Objet source de l'appel.</param> /// <param name="Args"> /// <b>DeactivatedEventArgs</b> qui contient les données d'événement. /// </param> //----------------------------------------------------------------------------------------------------------------------- private void OnDeactivated(object Sender, DeactivatedEventArgs Args) { }
private void Application_Deactivated(object sender, DeactivatedEventArgs e) { Debug.WriteLine("Application_Deactivated Called"); SpawnLightstreamerClientStop(); }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { timer.Start(); geo.Start(); }
private void OnDeactivated(object s, DeactivatedEventArgs e) { IsBeingDeactivated(); }
void AppDeactivated(object sender, DeactivatedEventArgs e) { Debug.WriteLine("INFO: AppDeactivated"); try { CordovaBrowser.InvokeScript("CordovaCommandResult", new string[] { "pause" }); } catch (Exception) { Debug.WriteLine("ERROR: Pause event error"); } }
private void Application_Deactivated(object sender, DeactivatedEventArgs e) { LampDevice.Dispose(); }
void AppDeactivated(object sender, DeactivatedEventArgs e) { Debug.WriteLine("INFO: AppDeactivated"); try { CordovaBrowser.InvokeScript("eval", new string[] { "cordova.fireDocumentEvent('pause');" }); } catch (Exception) { Debug.WriteLine("ERROR: Pause event error"); } }
// Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { System.Diagnostics.Debug.WriteLine("Application_Deactivated"); }
/// <summary> /// Occurs when the application is being tombstoned or paused. /// </summary> protected virtual void OnDeactivate(object sender, DeactivatedEventArgs e) { }
protected virtual void OnApplicationDeactivated(object sender, DeactivatedEventArgs e) { _wasApplicationTerminated = false; GalaSoft.MvvmLight.Messaging.Messenger.Default.Send <Messages.AppLifeCycleMessage>(new Messages.AppLifeCycleMessage(Messages.LifeCycleState.Deactivating)); }
// 停用应用程序(发送到后台)时执行的代码 // 此代码在应用程序关闭时不执行 private void Application_Deactivated(object sender, DeactivatedEventArgs e) { App.DownVideoModel.isDownding = false; App.DownVideoModel.SaveVideoData(); }