mono / SkiaSharp.Extended

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.
https://mono.github.io/SkiaSharp.Extended
MIT License
218 stars 69 forks source link

Allow for a slightly delayed theme registration #200

Closed mattleibow closed 10 months ago

mattleibow commented 10 months ago

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