Skip to content

Instantly share code, notes, and snippets.

@nuitsjp
Created August 21, 2016 05:36
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/fce86e42c570eeeb7705339cbe5ad7d8 to your computer and use it in GitHub Desktop.
Save nuitsjp/fce86e42c570eeeb7705339cbe5ad7d8 to your computer and use it in GitHub Desktop.
NavigationService Overview MainPageViewModel2
private readonly INavigationService _navigationService;
public ICommand NavigateSecondCommand { get; }
public MainPageViewModel(INavigationService navigationService)
{
_navigationService = navigationService;
NavigateSecondCommand = new DelegateCommand(() =>
{
_navigationService.NavigateAsync("SecondPage");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment