Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/d4d35a623d12327fc59e8b421e1dba3c to your computer and use it in GitHub Desktop.
Save lgolubyev/d4d35a623d12327fc59e8b421e1dba3c to your computer and use it in GitHub Desktop.
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>();
builder.Services
.AddSingleton<MainViewModel>();
return builder.Build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment