You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ShopNCook/MainAppShell.xaml.cs

17 lines
592 B

namespace ShoopNCook;
using Microsoft.Maui.Controls;
using Models;
using ShoopNCook.Pages;
public partial class MainAppShell : Shell
{
public MainAppShell(Account account, UserNotifier notifier)
{
InitializeComponent();
HomeTab.ContentTemplate = new DataTemplate(() => new HomePage(account, notifier));
FavoritesTab.ContentTemplate = new DataTemplate(() => new FavoritesPage(account, notifier));
MyListTab.ContentTemplate = new DataTemplate(() => new MyListPage(account, notifier));
MoreTab.ContentTemplate = new DataTemplate(() => new MorePage(account, notifier));
}
}