Exemple #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());
 }
Exemple #3
0
 private void NavView_BackRequested(NavigationView nv, NavigationViewBackRequestedEventArgs args)
 {
     BackRequestedStateTextBlock.Text = "Back was requested";
 }
Exemple #4
0
 private void NavigationView_BackRequested(NavigationView sender, NavigationViewBackRequestedEventArgs args)
 {
     OverlayService.GetForCurrentView().CloseOverlay();
 }
Exemple #5
0
 private void MainNav_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     OnBackRequested();
 }
 private void OnNavigationView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     this.MainFrame.GoBack();
 }
 private void NavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 => TryGoBack();
Exemple #8
0
 private void NavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     if (ContentContainer.CanGoBack == true)
     {
         ContentContainer.GoBack();
     }
 }
Exemple #9
0
 private void SettingsPane_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     GoBack();
 }
Exemple #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();
 }
Exemple #12
0
 private void nvwMenu_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     frmPrincipal.GoBack();
 }
        private async void NavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
        {
            await On_BackRequested();

            //UiNotificationService.Previous(UiNotificationService.CreateRequestForBackup());
        }
Exemple #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);
        }
Exemple #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));
        }
 private void settingNavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     General.IsSelected        = true;
     App.Settings.ShowSettings = false;
 }
Exemple #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();
     }
 }
Exemple #18
0
 private void nvSample_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     if (ContentFrame.CanGoBack == true)
     {
         ContentFrame.GoBack();
     }
 }