Important Change in Prism Pre-Release 9.0.401-pre

Hey Prism Users,

I wanted to give you a heads-up about a significant change in the latest pre-release version of Prism (9.0.401-pre). In this release, Prism has renamed the method OnAppStart to CreateWindow. You might notice this change when updating your applications, and I’m here to explain why.

Prism is taking steps to align itself more closely with the direction of .NET MAUI (Multi-platform App UI). You can find more information about it in the following github pull request created by one of the maintainer of prism Dan SiegelBREAKING: Change OnAppStart to CreateWindow

Even that I think this change enhances clarity and consistency within the Prism framework and makes it easier for developers like us to understand and use. The new name, CreateWindow, better reflects the purpose of the method, which is to create the initial windows for the application.

Here’s what you need to do to adapt to this change in case you have a PrismStartup class created:

This is everything you need to do for now to get this thing done on your project, see you next time.

Leave a Reply

Your email address will not be published.