dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.83k stars 1.67k forks source link

[Windows] Blazor Hybrid flickers on launch (white, then gray background) #19942

Open anth-git opened 5 months ago

anth-git commented 5 months ago

Description

When Blazor Hybrid app is launched on Windows, MAUI displays two additional screens before showing Blazor content:

  1. White blank screen
  2. Gray blank screen
  3. Only now Blazor content is displayed

All happens in a fraction of a second causing effect of flickering. Is there any way to eliminate this effect, or at least set some fixed background color to first two screens?

1 2 3 4

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows

Did you find any workaround?

No response

Relevant log output

No response

XamlTest commented 4 months ago

Verified this on 8.0.6. Repro on Windows 11 with .NET MAUI Blazor Hybird App template: MauiApp9.zip