Created
June 15, 2016 02:55
-
-
Save rohits79/9930b6846c33ae6619579166f02c1712 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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