Skip to content

Instantly share code, notes, and snippets.

@bogdanbujdea
Created June 8, 2013 13:45
Show Gist options
  • Select an option

  • Save bogdanbujdea/5735220 to your computer and use it in GitHub Desktop.

Select an option

Save bogdanbujdea/5735220 to your computer and use it in GitHub Desktop.
ViewModelBase class for Windows 8 caliburn micro project
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