// navigation to all categories page private void AllCategoriesButton_Selected(object sender, RoutedEventArgs e) { CategoriesCatalogPage categoriesCatalogPage = new CategoriesCatalogPage(); // creates an instance of the All Categories page var parent = this.Parent as Window; parent.Content = categoriesCatalogPage; // show the All Categories page }
// method called when the user click on the "See More" link after Recipe Carousel private void SeeMoreCategoriesClick(object sender, MouseButtonEventArgs e) { CategoriesCatalogPage categoriesCatalogPage = new CategoriesCatalogPage(); // creates an instance of the Category list page var parent = this.Parent as Window; parent.Content = categoriesCatalogPage; // show the Catalog of Categories page }