Esempio n. 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();
     }
 }
Esempio n. 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();
 }
Esempio n. 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();
        }
Esempio n. 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();
                }
            }
        }
Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 9
0
 private void OnBackRequested(DepControls.NavigationView sender, DepControls.NavigationViewBackRequestedEventArgs args)
 {
     if (_categorySelectorView != null)
     {
         _ = HideCategorySelector();
     }
     else if (_purchaseView != null)
     {
         _ = HidePurchaseForm();
     }
     else
     {
         _ = GoBackWithTransition();
     }
 }
Esempio n. 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
            }
        }
Esempio n. 11
0
 private void BackToMain(MUXC.NavigationView sender, MUXC.NavigationViewBackRequestedEventArgs args)
 {
     Frame.Navigate(typeof(MainPage));
 }
Esempio n. 12
0
 private void NavView_BackRequested(muxs.NavigationView sender,
                                    muxs.NavigationViewBackRequestedEventArgs args)
 {
     //NavigationFrame.GoBack();
 }
Esempio n. 13
0
 private void NavView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     TryGoBack();
 }
Esempio n. 14
0
 private void SettingsPane_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     GoBack();
 }
Esempio n. 15
0
 private void NavView_BackRequested(MUXC.NavigationView sender, MUXC.NavigationViewBackRequestedEventArgs args)
 {
     On_BackRequested();
 }
Esempio n. 16
0
 private void OnNavigationView_BackRequested(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args)
 {
     this.MainFrame.GoBack();
 }
Esempio n. 17
0
        private void NavigationView_BackRequested(Lib.NavigationView sender, Lib.NavigationViewBackRequestedEventArgs args)
        {
            var page = this.FindParent <DiscordPage>();

            page.CloseSettings();
        }
Esempio n. 18
0
 private void OnBackRequested(WinUI.NavigationView sender, WinUI.NavigationViewBackRequestedEventArgs args)
 {
     NavigationService.GoBack();
 }
Esempio n. 19
0
 private void NavView_BackRequested(NavigationView nv, NavigationViewBackRequestedEventArgs args)
 {
     BackRequestedStateTextBlock.Text = "Back was requested";
 }
Esempio n. 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();
     }
 }