Merge pull request #42 from brunck/shell-di-changes
Support Shell DI changes in .NET MAUI P14pull/45/head
commit
cbde8681c7
|
@ -13,6 +13,7 @@ public static class MauiProgram
|
|||
.UseMauiApp<App>()
|
||||
.ConfigureEssentials()
|
||||
.ConfigureServices()
|
||||
.ConfigurePages()
|
||||
.ConfigureViewModels()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
namespace Microsoft.NetConf2021.Maui.Pages;
|
||||
|
||||
public static class PagesExtensions
|
||||
{
|
||||
public static MauiAppBuilder ConfigurePages(this MauiAppBuilder builder)
|
||||
{
|
||||
builder.Services.AddSingleton<DiscoverPage>();
|
||||
builder.Services.AddSingleton<SubscriptionsPage>();
|
||||
builder.Services.AddSingleton<ListenLaterPage>();
|
||||
builder.Services.AddSingleton<ListenTogetherPage>();
|
||||
builder.Services.AddSingleton<SettingsPage>();
|
||||
|
||||
return builder;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue