From the course: .NET MAUI Essential Training

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Application startup and configuration

Application startup and configuration - .NET MAUI Tutorial

From the course: .NET MAUI Essential Training

Application startup and configuration

- [Instructor] Going to close this main application here and go back to our Maui program. So we saw that each of the platform initializing code starts up and creates this MauiApp or calls this CreateMauiApp. And this is where we start, this is where we initialize our application, and we can see and we look line seven that basically what happens is we create an app builder, we call some methods on it to configure it, and then we return builder.Build. And this is a common pattern for Microsoft now they do it with ASP.NET, they're doing it with MAUI, so you get a consistent experience of applying this pattern to build your application or build that hosting. You can see on line 9 it calls UseMauiApp using an App type, that's xaml file that we can see over here. And if we look, there's not much in there, but it does set the main page for the application, and we will use this application class in order to…

Contents