Created
August 21, 2016 05:36
-
-
Save nuitsjp/fce86e42c570eeeb7705339cbe5ad7d8 to your computer and use it in GitHub Desktop.
NavigationService Overview MainPageViewModel2
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
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