protected override async void OnNavigatedFrom(NavigationEventArgs e) { base.OnNavigatedFrom(e); if (((App)App.Current).isSuspending) { SuspendingManager manager = new SuspendingManager("MainPage"); await manager.Suspend(itemEditor); } //App to App DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView(); dataTransferManager.DataRequested -= new TypedEventHandler <DataTransferManager, DataRequestedEventArgs>(DataTransferManager_DataRequested); }
protected override async void OnNavigatedFrom(NavigationEventArgs e) { base.OnNavigatedFrom(e); if (((App)App.Current).isSuspending) { SuspendingManager manager = new SuspendingManager("NewPage"); await manager.Suspend(editor); } else { if (Items.SelectedItem != null) { Items.SelectedItem = null; } } }