Created
June 8, 2013 13:45
-
-
Save bogdanbujdea/5735220 to your computer and use it in GitHub Desktop.
ViewModelBase class for Windows 8 caliburn micro project
This file contains hidden or 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 abstract class ViewModelBase : Screen | |
| { | |
| private readonly INavigationService _navigationService; | |
| protected ViewModelBase(INavigationService navigationService) | |
| { | |
| _navigationService = navigationService; | |
| } | |
| public void GoBack() | |
| { | |
| _navigationService.GoBack(); | |
| } | |
| public bool CanGoBack | |
| { | |
| get | |
| { | |
| return _navigationService.CanGoBack; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment