Search code examples
c#windows-phone

In which situations NavigationService.CanGoBack returns false?


Before calling NavigationService.GoBack() we need to check if NavigationService.CanGoBack is true, but what are the situations that NavigationService.CanGoBack returns false?


Solution

  • CanGoBack returns false if there is nothing in the navigation history. There are times when the most recent entry (multiple navigators) may not have been added for the current navigator.

    link to documentation