Skip to content

Instantly share code, notes, and snippets.

@nuitsjp
Created August 21, 2016 06:25
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 nuitsjp/cbd9a4f9431a424c62d1976a4ff321f3 to your computer and use it in GitHub Desktop.
Save nuitsjp/cbd9a4f9431a424c62d1976a4ff321f3 to your computer and use it in GitHub Desktop.
NavigationService Overview SecondPageViewModel2.cs
public class SecondPageViewModel : BindableBase
{
private readonly INavigationService _navigationService;
public ICommand GoBackCommand { get; }
public SecondPageViewModel(INavigationService navigationService)
{
_navigationService = navigationService;
GoBackCommand = new DelegateCommand(() =>
{
_navigationService.GoBackAsync();
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment