Skip to content

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

Merged
EGoverde merged 1 commit intomainfrom
features/replacingMainPage
Aug 27, 2024
Merged

Replaced Application.Current.MainPage with the IoC variant.#4
EGoverde merged 1 commit intomainfrom
features/replacingMainPage

Conversation

@EGoverde
Copy link
Copy Markdown
Owner

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:

@EGoverde EGoverde merged commit 2df5d4c into main Aug 27, 2024
@EGoverde EGoverde deleted the features/replacingMainPage branch August 27, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant