Application is the .NET MAUI base class for the root application object and application-level state. An App class inherits Application and implements IApplication, allowing UseMauiApp<App>() to launch it from MauiProgram. section 2.3
The App constructor initializes the application and assigns a Page to its MainPage member. .NET MAUI displays that page after loading, making MainPage the practical starting view. section 2.3
Set the initial page
public partial class App : Application { public App() { InitializeComponent(); MainPage = new MainPage(); } } The startup flow is CreateMauiApp → UseMauiApp<App>() → App → MainPage. section 2.3
