-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WinUI][dotnet8] - New window blinks when loading a content. #10259
Comments
I have a MDI large application for a Bank in .net Maui, using Pinvoke.SetParent and not able to migrate to .net 8 and 9 because of this behavior. |
Same issue here. This is a breaking change, and it’s blocking me from updating my application. |
I'm also experiencing this flickering issue in a .NET Maui desktop application. This is a significant blocker for updating to .NET 8 and 9, as it creates a poor user experience. |
I’m facing the same issue. I’m trying to migrate from .NET 7 to .NET 8 and having problems with the presentation of new screens. |
I encountered the same problem in some tests I did while migrating the .NET version. Because of that, I had to pause the migration. |
Here's some example using WinUI |
@rodirigos You can set the RequestedTheme property of the StackPanel (the window content) to |
Yes, the window background was black and behavior is the same, but less visible. |
Same behavior. Only changed the color to show the delay. As you can see in the example above, the labels inside the content still have the same issue. |
I have the same problem in .NET 7.0 (Windows 10 22H2, Windows App SDK 1.6.241114003, slow PC) |
One issue here is that all windows are created and shown on the UI thread, so there is never a chance for the content to render until all windows are visible. Moving the call of However, in my experience, some delay between the window background and the XAML content showing cannot currently be avoided. I guess a fix would require more work in winui to pre-render the content before the window is visible. |
Thanks for the advice, but the problem is that @lgztx96 described previously, one window, delay to load the content. |
I have not noticed any major changes of this delay using different .net and winui versions. However, I can confirm that the maui version from @rodirigos is drastically slower than the winui one. So I guess the regression is caused by changes in the maui code. |
Hi. Any update on this? |
Any update about this issue? |
Any update on this issue? |
Describe the bug
In .NET 7, windows wait to render the content before opening. In .NET 8 and later, an unintended flicker occurs while loading this content. This flicker comes with a default background. It also occurs using MAUI.
Steps to reproduce the bug
1 - Create multiple windows with some content and an alternative background color.
Expected behavior
It should open like in dotnet7, appearing all the window with a rendered content. (not a flickering before opening).
Screenshots
NuGet package version
None
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: