EGoverde / Mvvm.Nucleus.Maui

MVVM Framework for MAUI mobile applications. Build on top of MAUI and the MVVM Community Toolkit.
https://www.nuget.org/packages/Mvvm.Nucleus.Maui
MIT License
4 stars 2 forks source link

Replaced Application.Current.MainPage with the IoC variant. #4

Closed EGoverde closed 1 month ago

EGoverde commented 1 month ago

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: