-
Notifications
You must be signed in to change notification settings - Fork 50
Setup
Tyson Elliot Hooker edited this page Jul 13, 2022
·
1 revision
Welcome to the Mopups Wiki
To begin using Mopups in your project, you must ensure you use ConfigureMopups()
in the CreateMauiApp
Function.
This will register the handlers for the platforms as well as the extra Functionality of OnBackPressed
for Android
Here is an example from the sample
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
})
.ConfigureMopups(); <--- ADD THIS!!