Skip to content

Instantly share code, notes, and snippets.

@rohits79
Created June 15, 2016 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohits79/9930b6846c33ae6619579166f02c1712 to your computer and use it in GitHub Desktop.
Save rohits79/9930b6846c33ae6619579166f02c1712 to your computer and use it in GitHub Desktop.
public class SampleViewModel: BindableBase, INavigationAware
{
...
private IRegionNavigationJournal journal;
public void OnNavigatedTo(NavigationContext navigationContext)
{
journal = navigationContext.NavigationService.Journal
}
public void GoBack()
{
if(journal.CanGoBack())
{
journal.GoBack();
}
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment