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.
18 lines
769 B
18 lines
769 B
namespace ShoopNCook;
|
|
using Microsoft.Maui.Controls;
|
|
using Models;
|
|
using ShoopNCook.Controllers;
|
|
using ShoopNCook.Pages;
|
|
using Endpoint;
|
|
public partial class MainAppShell : Shell
|
|
{
|
|
public MainAppShell(Account account, IEndpoint endpoint, IApp app)
|
|
{
|
|
InitializeComponent();
|
|
HomeTab.ContentTemplate = new DataTemplate(() => new HomePage(account, app.Notifier, endpoint));
|
|
FavoritesTab.ContentTemplate = new DataTemplate(() => new FavoritesPage(account, app.Notifier, endpoint.RecipesService));
|
|
MyListTab.ContentTemplate = new DataTemplate(() => new MyListPage(account, app.Notifier, endpoint.RecipesService));
|
|
MoreTab.ContentTemplate = new DataTemplate(() => new MorePage(account, new MorePageController(account, endpoint, app)));
|
|
}
|
|
}
|