[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
Parker Bibus 2022-03-22 14:44:13 -05:00 committed by GitHub
parent 1247f6a4e1
commit b8b76978d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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();
}
}