Beispiel #1
0
 private void OnNavigateBack(NavigationView sender, NavigationViewBackRequestedEventArgs args)
 {
     if (Common.BaseFrame.CanGoBack)
     {
         Common.BaseFrame.GoBack();
     }
 }
 /// <summary>
 /// Navigates the frame to the previous page.
 /// </summary>
 private void NavigationView_BackRequested(muxc.NavigationView sender, muxc.NavigationViewBackRequestedEventArgs args)
 {
     if (AppFrame.CanGoBack)
     {
         AppFrame.GoBack();
     }
 }
Beispiel #3
0
 private void RootNavigation_BackRequested(MUXC.NavigationView sender, MUXC.NavigationViewBackRequestedEventArgs args)
 {
     if (RootFrame.CanGoBack)
     {
         RootFrame.GoBack();
     }
     RootNavigation.IsBackEnabled = RootFrame.CanGoBack;
 }
 private void navigationView_BackRequested(muxc.NavigationView sender, muxc.NavigationViewBackRequestedEventArgs args)
 {
     if (!contentFrame.CanGoBack)
     {
         return;
     }
     contentFrame.GoBack();
 }
Beispiel #5
0
        async void OnBackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
        {
            try
            {
                await _shell.Navigation.PopAsync();
            }
            catch (Exception exc)
            {
                Application.Current?.FindMauiContext()?.CreateLogger <ShellView>()?.LogWarning(exc, "Failed to Navigate Back");
            }

            UpdateToolBar();
        }
Beispiel #6
0
        private void navigationView_BackRequested(MUXC.NavigationView sender, MUXC.NavigationViewBackRequestedEventArgs args)
        {
            var currentTab = TabView.SelectedItem as TabViewItem;

            if (currentTab != null)
            {
                var webView = currentTab.Content as WebView;
                if (webView.CanGoBack)
                {
                    webView.GoBack();
                }
            }
        }
Beispiel #7
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();
        }
Beispiel #8
0
        private void NavBackRequested(WinUI.NavigationView sender, WinUI.NavigationViewBackRequestedEventArgs e)
        {
            if (!contentFrame.CanGoBack)
            {
                return;
            }

            if (NavView.IsPaneOpen && (NavView.DisplayMode == WinUI.NavigationViewDisplayMode.Compact || NavView.DisplayMode == WinUI.NavigationViewDisplayMode.Minimal))
            {
                return;
            }

            contentFrame.GoBack();
        }
Beispiel #9
0
 private void OnBackRequested(DepControls.NavigationView sender, DepControls.NavigationViewBackRequestedEventArgs args)
 {
     if (_categorySelectorView != null)
     {
         _ = HideCategorySelector();
     }
     else if (_purchaseView != null)
     {
         _ = HidePurchaseForm();
     }
     else
     {
         _ = GoBackWithTransition();
     }
 }
Beispiel #10
0
        private void OnNavigateBack(NavigationView sender, NavigationViewBackRequestedEventArgs args)
        {
            try
            {
                if (Common.BaseFrame.CanGoBack)
                {
                    Common.BaseFrame.GoBack();
                }

                selectionHistory.RemoveAt(selectionHistory.Count - 1);
                NavMain.SelectedItem = selectionHistory.Last();
                if (selectionHistory.Count <= 1)
                {
                    NavMain.IsBackEnabled = false;
                }
            }
            catch (Exception)
            {
                //ignore
            }
        }
Beispiel #11
0
 private void BackToMain(MUXC.NavigationView sender, MUXC.NavigationViewBackRequestedEventArgs args)
 {
     Frame.Navigate(typeof(MainPage));
 }
Beispiel #12
0
 private void NavView_BackRequested(muxs.NavigationView sender,
                                    muxs.NavigationViewBackRequestedEventArgs args)
 {
     //NavigationFrame.GoBack();
 }
Beispiel #13
0
 private void NavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     TryGoBack();
 }
Beispiel #14
0
 private void SettingsPane_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     GoBack();
 }
Beispiel #15
0
 private void NavView_BackRequested(MUXC.NavigationView sender, MUXC.NavigationViewBackRequestedEventArgs args)
 {
     On_BackRequested();
 }
 private void OnNavigationView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     this.MainFrame.GoBack();
 }
Beispiel #17
0
        private void NavigationView_BackRequested(Lib.NavigationView sender, Lib.NavigationViewBackRequestedEventArgs args)
        {
            var page = this.FindParent <DiscordPage>();

            page.CloseSettings();
        }
Beispiel #18
0
 private void OnBackRequested(WinUI.NavigationView sender, WinUI.NavigationViewBackRequestedEventArgs args)
 {
     NavigationService.GoBack();
 }
Beispiel #19
0
 private void NavView_BackRequested(NavigationView nv, NavigationViewBackRequestedEventArgs args)
 {
     BackRequestedStateTextBlock.Text = "Back was requested";
 }
Beispiel #20
0
 private void NavigationViewControl_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     if (App.AppViewModel.HomeContentFrame.CanGoBack)
     {
         App.AppViewModel.HomeContentFrame.GoBack();
     }
 }