-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppShell.xaml.cs
More file actions
27 lines (23 loc) · 1.14 KB
/
AppShell.xaml.cs
File metadata and controls
27 lines (23 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace AetherVault;
using AetherVault.Pages;
/// <summary>
/// Main shell: tab bar (Search, Collection, Stats, Decks) and registered routes for modal/detail pages.
/// The DI container injects the four tab pages; we assign them to the tab content placeholders.
/// </summary>
public partial class AppShell : Shell
{
public AppShell(SearchPage searchPage, CollectionPage collectionPage, StatsPage statsPage, DecksPage decksPage, LogViewPage logViewPage)
{
InitializeComponent();
// Assign injected pages to the tab content areas defined in AppShell.xaml (SearchTab, CollectionTab, etc.)
SearchTab.Content = searchPage;
CollectionTab.Content = collectionPage;
StatsTab.Content = statsPage;
DecksTab.Content = decksPage;
LogTab.Content = logViewPage;
// Register routes so we can navigate with Shell.Current.GoToAsync("carddetail", new Dictionary<string, object> { ... })
Routing.RegisterRoute("carddetail", typeof(CardDetailPage));
Routing.RegisterRoute("deckdetail", typeof(DeckDetailPage));
Routing.RegisterRoute("mtgjsondecks", typeof(MTGJsonDecksPage));
}
}