コード例 #1
0
 public void GoBack()
 {
     if (AppFrame?.CanGoBack == true)
     {
         AppFrame.GoBack();
     }
 }
コード例 #2
0
 private void BackCommandExecute()
 {
     if (AppFrame.CanGoBack)
     {
         AppFrame.GoBack();
     }
 }
コード例 #3
0
 private void MainPage_BackRequested(object sender, BackRequestedEventArgs e)
 {
     if (AppFrame.CanGoBack)
     {
         AppFrame.GoBack();
     }
 }
コード例 #4
0
ファイル: AppShell.xaml.cs プロジェクト: MichaelStgt/AppShell
        public AppShell()
        {
            InitializeComponent();

            if (!DesignMode.DesignModeEnabled)
            {
                Current = this;

                AppFrame.Navigating += AppFrameOnNavigating;
                LayoutUpdated       += (sender, args) => OnPaneSizeChanged();

                Loaded += (sender, args) =>
                {
                    togglePaneButton.Focus(FocusState.Programmatic);
                    OnPaneSizeChanged();
                    SetSelectedMenuItem(selectedMenuItem);
                };

                SystemNavigationManager.GetForCurrentView().BackRequested += (sender, e) =>
                {
                    if (!e.Handled && AppFrame.CanGoBack)
                    {
                        e.Handled = true;
                        AppFrame.GoBack();
                    }
                };
            }
        }
コード例 #5
0
 private void SystemNavigationManager_BackRequested(object sender, BackRequestedEventArgs e)
 {
     if (!e.Handled && AppFrame.CanGoBack)
     {
         e.Handled = true;
         AppFrame.GoBack();
     }
 }
コード例 #6
0
 /// <summary>
 /// Navigates to the previous page in the navigation history.
 /// </summary>
 public void GoBack()
 {
     System.Diagnostics.Debug.Assert(AppFrame != null);
     if (AppFrame.CanGoBack)
     {
         AppFrame.GoBack();
     }
 }
コード例 #7
0
ファイル: AppShell.xaml.cs プロジェクト: SettingDust/PRPR
 public void OnBackRequested(object sender, BackRequestedEventArgs e)
 {
     if (AppFrame.CanGoBack)
     {
         e.Handled = true;
         AppFrame.GoBack();
     }
 }
コード例 #8
0
 private void Navmgr_BackRequested(object sender, BackRequestedEventArgs e)
 {
     if (AppFrame.CanGoBack)
     {
         AppFrame.GoBack();
         e.Handled = true;
     }
 }
コード例 #9
0
ファイル: AppShell.xaml.cs プロジェクト: tuenti/waslibs
 private void OnBackRequested(object sender, BackRequestedEventArgs e)
 {
     if (AppFrame.CanGoBack)
     {
         e.Handled = true;
         AppFrame.GoBack();
         shell.ClearSelection();
     }
 }
コード例 #10
0
 private void DeviceStates_CurrentStateChanged(object sender, VisualStateChangedEventArgs e)
 {
     if (e.NewState == Medium)
     {
         if (AppFrame.CurrentSourcePageType != typeof(MainPage))
         {
             AppFrame.GoBack();
         }
     }
 }
コード例 #11
0
ファイル: AppShell.xaml.cs プロジェクト: vsirvent/locana
 private void Global_KeyDown(CoreWindow sender, KeyEventArgs args)
 {
     if (args.KeyStatus.RepeatCount == 1)
     {
         switch (args.VirtualKey)
         {
         case VirtualKey.Back:
             AppFrame.GoBack();
             args.Handled = true;
             break;
         }
     }
 }
コード例 #12
0
        private void SystemNavigationManager_BackRequested(object sender, BackRequestedEventArgs e)
        {
            if (PopupManager.Popup.IsOpen)
            {
                PopupManager.Popup.IsOpen = false;
                e.Handled = true;
            }

            if (!e.Handled && AppFrame.CanGoBack)
            {
                e.Handled = true;
                AppFrame.GoBack();
            }
        }
コード例 #13
0
        private void Shell_BackRequested(object sender, BackRequestedEventArgs e)
        {
            if (AppFrame == null)
            {
                return;
            }

            // Navigate back if possible, and if the event has not
            // already been handled .
            if (AppFrame.CanGoBack && e.Handled == false)
            {
                e.Handled = true;
                AppFrame.GoBack();
            }
        }
コード例 #14
0
 private void BackRequested(ref bool handled)
 {
     // Get a hold of the current frame so that we can inspect the app back stack.
     if (AppFrame == null)
     {
         return;
     }
     // Check to see if this is the top-most page on the app back stack.
     if (AppFrame.CanGoBack && !handled)
     {
         // If not, set the event to handled and go back to the previous page in the app.
         handled = true;
         AppFrame.GoBack();
     }
 }
コード例 #15
0
        private void deleteNotaCommandExecute()
        {
            try
            {
                _notaService.DeleteNota(AuxNota);

                _dialogService.ShowMessage(traduce("MsgNotaBorrada"), traduce("NameApp"));
                //AppFrame.Navigate(typeof(MyNotes10.Views.MainPage));
                if (AppFrame.CanGoBack)
                {
                    AppFrame.GoBack();
                }
            }
            catch (Exception ex)
            {
                _dialogService.ShowMessage(traduce("MsgNotaBorradaError") + " " + ex.Message, traduce("NameApp"));
            }
        }
コード例 #16
0
 public void NavigateBack_App()
 {
     AppFrame.GoBack();
 }