public ListPageRootViewModel(IAppNavigation appNavigation) { _appNavigation = appNavigation; TestCommand = new Command(async() => { // Add the key to the input string. await _appNavigation.GotoPage2(); }); }
public MainPageViewModel(IAppNavigation appNavigation) { _appNavigation = appNavigation; this.AddCharCommand = new Command <string>((key) => { // Add the key to the input string. WelcomeText = "Changed"; }); GoPage2Command = new Command(async() => { //_appNavigation.RootPage = App.RootPage; await _appNavigation.GotoPage2(); }); }