You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
717 B

1 year ago
1 year ago
1 year ago
1 year ago
  1. using CommunityToolkit.Maui;
  2. using Microsoft.Extensions.Logging;
  3. using Syncfusion.Maui.Core.Hosting;
  4. namespace CircleViewerMaui;
  5. public static class MauiProgram
  6. {
  7. public static MauiApp CreateMauiApp()
  8. {
  9. var builder = MauiApp.CreateBuilder();
  10. builder
  11. .UseMauiApp<App>()
  12. // Initialize the .NET MAUI Community Toolkit by adding the below line of code
  13. .UseMauiCommunityToolkit()
  14. .ConfigureFonts(fonts =>
  15. {
  16. fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
  17. fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
  18. });
  19. builder.ConfigureSyncfusionCore();
  20. #if DEBUG
  21. builder.Logging.AddDebug();
  22. #endif
  23. return builder.Build();
  24. }
  25. }