예제 #1
0
        async void OnBackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
        {
            try
            {
                await _shell.Navigation.PopAsync();
            }
            catch (Exception exc)
            {
                Internals.Log.Warning(nameof(Shell), $"Failed to Navigate Back: {exc}");
            }

            UpdateToolBar();
        }
 private void NavigationView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     FlyoutCloseRequest?.Invoke(this, new EventArgs());
 }
예제 #3
0
 private void NavView_BackRequested(NavigationView nv, NavigationViewBackRequestedEventArgs args)
 {
     BackRequestedStateTextBlock.Text = "Back was requested";
 }
예제 #4
0
 private void NavigationView_BackRequested(NavigationView sender, NavigationViewBackRequestedEventArgs args)
 {
     OverlayService.GetForCurrentView().CloseOverlay();
 }
예제 #5
0
 private void MainNav_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     OnBackRequested();
 }
예제 #6
0
 private void OnNavigationView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     this.MainFrame.GoBack();
 }
예제 #7
0
 private void NavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 => TryGoBack();
예제 #8
0
 private void NavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     if (ContentContainer.CanGoBack == true)
     {
         ContentContainer.GoBack();
     }
 }
예제 #9
0
 private void SettingsPane_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     GoBack();
 }
예제 #10
0
 private void MainNavigationView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args) =>
 NavigateEmptyPage();
 private void Header_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     Frame.GoBack();
 }
예제 #12
0
 private void nvwMenu_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     frmPrincipal.GoBack();
 }
예제 #13
0
        private async void NavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
        {
            await On_BackRequested();

            //UiNotificationService.Previous(UiNotificationService.CreateRequestForBackup());
        }
예제 #14
0
        private void BackButtonRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
        {
            _context.DisableBackButton(BackButtonRequested);
            IsPaneVisible = true;

            var e = new NavigationRequestedEventArgs(Page, true);

            // now pop the page back
            OnPopRequested(e);
        }
예제 #15
0
        private void SettingsPane_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
        {
            Frame rootFrame = Window.Current.Content as Frame;

            rootFrame.Navigate(typeof(InstanceTabsView));
        }
예제 #16
0
 private void settingNavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     General.IsSelected        = true;
     App.Settings.ShowSettings = false;
 }
예제 #17
0
 /// <summary>
 /// Navigates the frame to the previous page.
 /// </summary>
 private void NavigationView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     if (AppFrame.CanGoBack)
     {
         AppFrame.GoBack();
     }
 }
예제 #18
0
 private void nvSample_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     if (ContentFrame.CanGoBack == true)
     {
         ContentFrame.GoBack();
     }
 }