-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMauiProgram.cs
33 lines (24 loc) · 866 Bytes
/
MauiProgram.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
30
31
32
33
using CommunityToolkit.Maui;
using Hotell567.Data;
using Hotell567.Logic;
using Hotell567.MVVM;
namespace Hotell567;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder.UseMauiApp<App>().UseMauiCommunityToolkit();
builder.UseMauiApp<App>().ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
AppManager.isInitialized = true;
builder.Services.AddTransient<RoomsPage>();
builder.Services.AddTransient<RoomsViewModel>();
builder.Services.AddTransient<RoomDetailPage>();
builder.Services.AddTransient<RoomDetailViewModel>();
return builder.Build();
}
}