The Application.Current.MainPage is marked for deprecation and will be removed in future MAUI releases. This PR replaces this with the introduced IWindowCreator.
In this implementation it will create a Window when requested and sets the Shell from the Nucleus initializer as the Page.
It is possible to override / subclass this service in advanced scenarios. For Windows, or other possibly configurations where multiple windows are possible, this could use further improvements.
The Application.Current.MainPage is marked for deprecation and will be removed in future MAUI releases. This PR replaces this with the introduced IWindowCreator.
In this implementation it will create a Window when requested and sets the Shell from the Nucleus initializer as the Page.
It is possible to override / subclass this service in advanced scenarios. For Windows, or other possibly configurations where multiple windows are possible, this could use further improvements.
See: