forked from microsoft/dotnet-podcasts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.xaml.cs
29 lines (23 loc) · 885 Bytes
/
App.xaml.cs
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
28
29
using Application = Microsoft.Maui.Controls.Application;
namespace Microsoft.NetConf2021.Maui;
public partial class App : Application
{
public App()
{
InitializeComponent();
TheTheme.SetTheme();
if (Config.Desktop)
MainPage = new DesktopShell();
else
MainPage = new MobileShell();
Routing.RegisterRoute(nameof(DiscoverPage), typeof(DiscoverPage));
Routing.RegisterRoute(nameof(ShowDetailPage), typeof(ShowDetailPage));
Routing.RegisterRoute(nameof(EpisodeDetailPage), typeof(EpisodeDetailPage));
Routing.RegisterRoute(nameof(CategoriesPage), typeof(CategoriesPage));
Routing.RegisterRoute(nameof(CategoryPage), typeof(CategoryPage));
}
protected override Window CreateWindow(IActivationState activationState)
{
return new MauiWindow(MainPage);
}
}