-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[MAUI][dotnet8][Windows] - A blink occurs when opening a new window #26849
Comments
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
|
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. |
In this example, you can open multiple windows by just clicking the button in the default test application. It is really simple to reproduce the issue. It will open multiple windows and you can check the behavior since the pages were in another color. |
@rodirigos The repository you provided is private and we don't have access to it. Could you add it to the public repository or recreate a new sample project for us? Looking forward to your reply! |
Already changed the visibility! |
This issue can be reproduced at the latest 17.13.0 Preview 2.1(9.0.21 & 8.0.100), but it worked fine at .NET7. |
Hey guys, any update about this? We finished a large trading application upgrade to dotnet 8, but we cannot move forward because of this situation. Since .net 7 is out of support, my manager is asking me every day about a beta version using dotnet 8. |
We updated WinUI in each version of .NET MAUI, so this may be a bug that is in WinUI and due to MAUI loading things at launch it makes it more noticeable. Did you run as release mode without the debugger attached? Also, can you enable I wonder if this is just a delay with various hot reload things happening and not actually a release issue. I am sure we pause things at launch to prepare the hot reloads and debuggers. |
Hi. Any update on this problem? |
Morning guys, any update on this? |
Any update about this issue? |
Any update on this issue? |
Hi team, is there any update on this issue? We’re currently blocked from upgrading our app to the latest .NET version due to this problem. Unfortunately, we’re stuck on an unsupported version with thousands of clients in production, and it’s becoming increasingly critical. Resolving this would allow us to ensure better support and stability for our users. Any guidance or progress on this would be greatly appreciated. |
@Foda let us know if you need more info about this issue. |
Hello! Since this is a WinUI specific issue, please continue to ask for support in the bug you've created here: microsoft/microsoft-ui-xaml#10259 The delay you're seeing in MAUI is due to the overhead of MAUI itself. We create a few XAML elements (NavigationView, TitleBar) that slightly add to the time it takes for the first render. We set the content of the Window before it's activated, so the delay is (still) caused by WinUI. Unfortunately, the delay on the WinUI side is caused by the window content no longer being synced to the window itself due to everything being lifted out of DWM. There's an internal issue for WinUI to track this, but I doubt it will be fixed anytime soon. I'm not sure if it helps at all, but you can force the background that you see to either Black/White by setting the native WinUI
Another option is that you can manually set the color of the window using Win32 APIs. An easy way to do this is by using WindowMessageMonitor from the
|
Thanks @Foda, since is an issue affecting Maui, could you help us to prioritaze this issue? It affects directly user experience for our users and forcing us to hold .net upgrade from 7. IMHO is a Maui issue too, we need help to fix it. |
Hi guys, any updates? |
Description
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.
Steps to Reproduce
1 - Create multiple windows using Application.Current.OpenWindow()
2 - See the blink before opening the content
To check a reprodution, just open this application here
https://github.com/rodirigos/MauiBlinkingTest
It is also happening in Winui directly, but the blink is way faster
microsoft/microsoft-ui-xaml#10259
Link to public reproduction project repository
https://github.com/rodirigos/MauiBlinkingTest
It is also happening directly in WinUI
https://github.com/rodirigos/NewWindowTest
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.101
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: