Ejemplo n.º 1
0
 void OnNavigating(object sender, System.Windows.Navigation.NavigatingCancelEventArgs e)
 {
     if (WindowManager.IsSystemDialogNavigation(e.Uri))
     {
         currentPageUri = navigationSvc.CurrentSource;
     }
 }
Ejemplo n.º 2
0
            void OnNavigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
            {
                if (WindowManager.IsSystemDialogNavigation(e.Uri))
                {
                    Close(reopenOnBackNavigation: currentPageUri != null);
                }
                else if (e.Uri.Equals(currentPageUri))
                {
                    currentPageUri = null;
                    //refreshes the page instance
                    this.currentPage = (PhoneApplicationPage)navigationSvc.CurrentContent;

                    Open();
                }
                else
                {
                    Close(reopenOnBackNavigation: false);
                }
            }