Ejemplo n.º 1
0
 public void Execute(object parameter)
 {
     if (navigationManager.CanGoBack)
     {
         navigationManager.GoBack();
     }
 }
Ejemplo n.º 2
0
        protected override void OnPropertyChanged(string propertyName = null)
        {
            if (propertyName == nameof(CurrentPage))
            {
                if ((CurrentPage == s_backPage) && _navigationManager.NavigationStack.CanGoBack)
                {
                    _navigationManager.GoBack();
                }
            }

            base.OnPropertyChanged(propertyName);
        }