Advertisement
Intermediate .NET MAUI, App Lifecycle & Windows

How do you open and manage multiple windows in MAUI?

Short answer

On desktop (and iPad multi-window), call Application.Current.OpenWindow(new Window(new SomePage())) to open additional windows, and CloseWindow to close them. Application.Windows lists open windows. Mobile phones are single-window, so guard multi-window features by idiom.

Save .NET MAUI mock interview
Advertisement
AModel answer
On desktop (and iPad multi-window), call Application.Current.OpenWindow(new Window(new SomePage())) to open additional windows, and CloseWindow to close them. Application.Windows lists open windows. Mobile phones are single-window, so guard multi-window features by idiom.
var second = new Window(new ReportPage()) { Title = "Report" };
Application.Current!.OpenWindow(second);
Real-world example
A desktop analytics app pops out a report into its own resizable window while the main dashboard stays open.
Likely follow-ups
  • Which platforms support multi-window? | How do you list open windows?
Related topics