Describe the bug
In an empty WinUI app, set
AppWindow.TitleBar.BackgroundColor = Colors.Black;
AppWindow.TitleBar.ButtonBackgroundColor = Colors.Black;
Minimize the window. Hover over the taskbar icon then hover over the small preview image to get a large preview of the window. At this point the title bar is broken in the following ways.
- The buttons have moved to the left hand size
- The background of the title bar is light gray
- The background of the buttons is white
This is corrected when the window is restored.
It seems like maybe the title bar tries to resize itself in response to the size change on minimize: this would account for the buttons being on the left, but not sure about the color change. Anyway, the title bar should avoid changing on window minimize.
Why is this important?
Unprofessional user experience
Steps to reproduce the bug
See description. Minimal code:
using Microsoft.UI;
using Microsoft.UI.Xaml;
namespace TestMinimizeHover {
public sealed partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
AppWindow.TitleBar.BackgroundColor = Colors.Black;
AppWindow.TitleBar.ButtonBackgroundColor = Colors.Black;
}
}
}
Actual behavior
See description
Expected behavior
The title bar rendering/layout should not break when the window is minimized.
Screenshots
No response
NuGet package version
2.5.1
Windows version
Windows 11 (25H2): Build 26200
Additional context
No response
Describe the bug
In an empty WinUI app, set
Minimize the window. Hover over the taskbar icon then hover over the small preview image to get a large preview of the window. At this point the title bar is broken in the following ways.
This is corrected when the window is restored.
It seems like maybe the title bar tries to resize itself in response to the size change on minimize: this would account for the buttons being on the left, but not sure about the color change. Anyway, the title bar should avoid changing on window minimize.
Why is this important?
Unprofessional user experience
Steps to reproduce the bug
See description. Minimal code:
Actual behavior
See description
Expected behavior
The title bar rendering/layout should not break when the window is minimized.
Screenshots
No response
NuGet package version
2.5.1
Windows version
Windows 11 (25H2): Build 26200
Additional context
No response