Multiwindowing lets a .NET MAUI application open several independently managed windows. A window can host an ordinary ContentPage, such as an About page, while desktop-oriented menus provide a familiar way to launch it. section 10.3.3 section 10.4
Create an About window in a few steps:
- Add a Help menu containing an About item bound to a ShowAboutPageCommand. section 10.3.3
- Implement the command by constructing a Window around AboutPage, setting its Title, Width, and Height, and calling Application.Current.OpenWindow. section 10.3.3
- For iOS and Mac Catalyst, add a SceneDelegate and declare multiple scenes in each platform's info.plist; Windows and Android need no additional steps for this example. section 10.3.3
Listing 10.21 The ShowAboutPage method in ReportViewModel
public void ShowAboutPage()
{
var newWindow = new Window(new AboutPage())
{
Title = "About",
Width = 300,
Height = 300
};
Application.Current.OpenWindow(newWindow);
}
Use the complete ShowAboutPage method as the working pattern for creating, sizing, titling, and opening a secondary window. section 10.3.3
