public ListPageRootViewModel(IAppNavigation appNavigation)
        {
            _appNavigation = appNavigation;

            TestCommand = new Command(async() =>
            {
                // Add the key to the input string.
                await _appNavigation.GotoPage2();
            });
        }
示例#2
0
        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();
            });
        }