Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening a new window in MAUI

Tags:

maui

In WPF the below code opens a new window.

Window abc = new Window();
abc.Show();

But for MAUI window, I cant find the show option. How to open a window in MAUI?

like image 883
Lakshmi Narayana Avatar asked Dec 05 '25 06:12

Lakshmi Narayana


1 Answers

var secondWindow = new Window {
    Page = new MySecondPage {
        // ...
    }
};

Application.Current.OpenWindow(secondWindow);

https://devblogs.microsoft.com/dotnet/announcing-dotnet-maui-preview-11/

like image 133
Daniel Kelsch Avatar answered Dec 08 '25 13:12

Daniel Kelsch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!