zhaw-dnet2/Tasks/Lab12/TodoDetails/MauiProgram.cs
2024-06-06 22:52:07 +02:00

26 lines
612 B
C#

using Microsoft.Extensions.Logging;
namespace TodoDetails
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
#if DEBUG
builder.Logging.AddDebug();
#endif
return builder.Build();
}
}
}