-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Title bar lags behind when resizing #13479
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
Comments
I wonder if this is an issue in WinUI itself? |
This doesn't seem to happen on a default WinUI3 app. And regarding MAUI, even if I remove every non-absolutely-required thing from a default MAUI project, it still has that little bit of lag in the title bar.
Result: The "min/max/restore" buttons have some lag and delay their movement a tiny bit. This is on a very high end modern machine. This strikes me as possibly a performance issue, such as something re-computing during every resize, and causing other UI artifacts such as this. Also worth noting: I tested this in "Release" configuration, without a debugger attached. Still happens. |
@hartez "related to ContentPanel sizing issues" |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
this is a winui 3 issue: microsoft/microsoft-ui-xaml#5446 |
i think the only solution is to not render the titlebar in winui, i.e. use a native titlebar. (at least until the winui issue gets resolved, which is very unlikely) |
Oh, does MAUI "custom draw" the title bar? I don't know that part of the codebase, but if that's the case, then it does sound like that. |
Default WinUI 3, or default UWP app? Because in addition to microsoft/microsoft-ui-xaml#5446, there's also microsoft/microsoft-ui-xaml#2506 and microsoft/microsoft-ui-xaml#5148.
We don't draw the default title bar. I think they're referring to a native Windows titlebar, as opposed to whatever WinUI is doing. |
all those issues are talking about the same issue. as you can see in all of those the title bar does not resize slowly with the rest of the window, because winui 3 uses a native titlebar. also afaik winui 3 is a seperate framework than uwp. you can either use uwp + winui 2, or winui 3. |
A default WinUI3 desktop project. Not UWP. |
So we customize the title bar for a WinUI MAUI app, but we're just using the built-in WinUI methods for doing so. Nothing extreme, and it's just using WinUI controls. But as soon as we start doing that, the same resizing problem that happens for window content starts happening with the title bar. For users who want to work around this (until it's fixed at the WinUI level), you can use the default Windows title bar as @cyberrex5 is suggesting. Just add this to your MauiProgram.cs to disable the MAUI customizations:
That will disable all the MAUI customizations. |
Description
The title bar lags behind when resizing the window for Windows.
explorer_tS0jgo8SMC.mp4
Steps to Reproduce
1.) Create a new .NET MAUI App project
2.) Start the app
3.) Resize the window horizontally.
4.) The title bar should now lag behind
Link to public reproduction project repository
https://github.com/PerfectlyFineCode/RecipeManager
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11 (22621.1265)
Did you find any workaround?
#13479 (comment)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: