Exemple #1
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     base.OnNavigatedFrom(e);
     if (((App)App.Current).issuspend)
     {
         SuspendManager manager = new SuspendManager("MainPage");
         manager.Suspend(InlineListItemViewGrid);
     }
     DataTransferManager.GetForCurrentView().DataRequested -= OnShareDataRequested;
 }
Exemple #2
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     base.OnNavigatedFrom(e);
     if (((App)App.Current).issuspend)
     {
         SuspendManager manager = new SuspendManager("NewPage");
         manager.Suspend(EditItemGrid);
     }
     else
     {
         if (ViewModel.SelectedItem != null)
         {
             ViewModel.SelectedItem = null;
         }
     }
 }
Exemple #3
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.NavigationMode == NavigationMode.New)
     {
         ApplicationData.Current.LocalSettings.Values.Remove("NewPage");
     }
     else
     {
         if (ApplicationData.Current.LocalSettings.Values.ContainsKey("NewPage"))
         {
             SuspendManager manager = new SuspendManager("NewPage");
             manager.Resume(EditItemGrid);
         }
     }
 }
Exemple #4
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.NavigationMode == NavigationMode.New)
     {
         ApplicationData.Current.LocalSettings.Values.Remove("MainPage");
     }
     else
     {
         if (ApplicationData.Current.LocalSettings.Values.ContainsKey("MainPage"))
         {
             SuspendManager manager = new SuspendManager("MainPage");
             manager.Resume(InlineListItemViewGrid);
         }
     }
     DataTransferManager.GetForCurrentView().DataRequested += OnShareDataRequested;
 }