SkiaSharp is a cross-platform, comprehensive 2D graphics API for all .NET platforms. And, here is where you will find all sorts of extras that you can use with it.
In some cases, the view can be constructed during the app creating, and as a result the app is not actually ready yet. This occurs when passing the page as a constructor argument - the page is created before the app, and thus the view is created before the app and when it tries to register with the app it skips.
This PR is going to wait until there is a window and try again. At that point there should be an app and a window. There is the case where the app may get a window before the app - if the window is a constructor parameter - but this is not really useful in maui as apps may have multiple windows.
Description of Change
In some cases, the view can be constructed during the app creating, and as a result the app is not actually ready yet. This occurs when passing the page as a constructor argument - the page is created before the app, and thus the view is created before the app and when it tries to register with the app it skips.
This PR is going to wait until there is a window and try again. At that point there should be an app and a window. There is the case where the app may get a window before the app - if the window is a constructor parameter - but this is not really useful in maui as apps may have multiple windows.
Bugs Fixed