Statistiques
| Branche: | Révision:

inraetemplate / INRAETemplate / MauiProgram.cs @ fa2aa88f

Historique | Voir | Annoter | Télécharger (729 octets)

1 fa2aa88f ajournaux
using CommunityToolkit.Maui;
2
using Microsoft.Extensions.Logging;
3
4
namespace INRAETemplate;
5
6
public static class MauiProgram
7
{
8
	public static MauiApp CreateMauiApp()
9
	{
10
		var builder = MauiApp.CreateBuilder();
11
		builder
12
			.UseMauiApp<App>()
13
			.UseMauiCommunityToolkit()
14
			.ConfigureFonts(fonts =>
15
			{
16
				fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
17
				fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
18
                fonts.AddFont("fa-brands.ttf", "FABrands");
19
                fonts.AddFont("fa-regular.ttf", "FARegular");
20
                fonts.AddFont("fa-solid.ttf", "FASolid");
21
			});
22
23
#if DEBUG
24
		builder.Logging.AddDebug();
25
#endif
26
27
		return builder.Build();
28
	}
29
}