private void OnBackRequested(WinUI.NavigationView sender, WinUI.NavigationViewBackRequestedEventArgs args)
        {
//{[{
            if (_currentPageCanGoBack)
            {
                if (_frame.Content is FrameworkElement element && element.DataContext is IBackNavigationHandler navigationHandler)
                {
                    navigationHandler.GoBack();
                    return;
                }
            }

//}]}
            _navigationService.GoBack();
        }
Ejemplo n.º 2
0
 private void OnBackRequested(WinUI.NavigationView sender, WinUI.NavigationViewBackRequestedEventArgs args)
 {
     _navigationService.GoBack();
 }