Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created December 2, 2022 03:00
Embed
What would you like to do?
Adding UseMauiMaps method in CreateMauiApp method from MauiProgram
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");
})
.UseMauiMaps();
return builder.Build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment