Exemple #1
0
 private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
 {
     NavigationProvider.NavigateTo(new RecipeInfoPage(ViewModel.SelectedRecipe));
 }
 public void ShowMain()
 {
     NavigationProvider.NavigateTo <MainViewModel>();
 }
 public void Search()
 {
     NavigationProvider.NavigateTo <SearchViewModel>(SearchQuery);
 }
 public MainPageViewModel()
 {
     GoToSearchRecipeCommand = new Command(
         execute: () => NavigationProvider.NavigateTo(new SearchRecipePage()),
         canExecute: () => true);
 }