Skip to content

Instantly share code, notes, and snippets.

@sthewissen
Created January 17, 2022 13:19
Show Gist options
  • Save sthewissen/bc3b0457be34c4a7aafa9d09e900e076 to your computer and use it in GitHub Desktop.
Save sthewissen/bc3b0457be34c4a7aafa9d09e900e076 to your computer and use it in GitHub Desktop.
using Microsoft.Maui;
using Microsoft.Maui.Hosting;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureMauiHandlers(handlers =>
{
handlers.AddHandler(typeof(MyEntry), typeof(MyEntryHandler));
});
return builder.Build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment