Created
August 21, 2016 06:25
-
-
Save nuitsjp/cbd9a4f9431a424c62d1976a4ff321f3 to your computer and use it in GitHub Desktop.
NavigationService Overview SecondPageViewModel2.cs
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
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