Example #1
0
        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);
        }
Example #2
0
 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;
         }
     }
 }