[mobile] add builder.Services.AddTransient() for pages (#47)
Changes to Dependency Injection require you to register all pages now in .NET MAUI Preview 14. Co-authored-by: Jonathan Peppers <jonathan.peppers@gmail.com>pull/49/head
parent
1247f6a4e1
commit
b8b76978d8
|
@ -25,6 +25,16 @@ public static class MauiProgram
|
|||
|
||||
Barrel.ApplicationId = "dotnetpodcasts";
|
||||
|
||||
builder.Services.AddTransient<CategoriesPage>();
|
||||
builder.Services.AddTransient<CategoryPage>();
|
||||
builder.Services.AddTransient<DiscoverPage>();
|
||||
builder.Services.AddTransient<EpisodeDetailPage>();
|
||||
builder.Services.AddTransient<ListenLaterPage>();
|
||||
builder.Services.AddTransient<ListenTogetherPage>();
|
||||
builder.Services.AddTransient<SettingsPage>();
|
||||
builder.Services.AddTransient<ShowDetailPage>();
|
||||
builder.Services.AddTransient<SubscriptionsPage>();
|
||||
|
||||
return builder.Build();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue