liveBook · Manning

IApplication

As explained in .NET MAUI in Action

IApplication is the .NET MAUI interface implemented by an application root object.

IApplication is the .NET MAUI interface required by UseMauiApp for the application-root type. The template's App class inherits Application, which implements IApplication. section 2.3

Application startup

MauiProgram.CreateMauiApp builds a MauiApp and calls UseMauiApp<App>(). App then assigns MainPage = new MainPage(), allowing .NET MAUI to display that page after loading. section 2.3

How .NET MAUI in Action covers it

How deep it goes
Traces the interface through Application and App to MainPage, without detailing interface members or lifecycle behavior.
Examples
Uses MauiProgram.CreateMauiApp, UseMauiApp<App>(), App, and MainPage as the concrete startup example.
What it assumes
Builds on C# classes, inheritance, generic host-builder usage, and basic .NET MAUI pages.
What you can do after
Build a basic .NET MAUI application root and connect it to the startup builder and an initial page.
How it connects
Connects IApplication with UseMauiApp, Application, MauiApp, App, Page, and ContentPage.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of .NET MAUI in Action. The section links point to the parts of the book it draws on.