Reset to default system titlebar is broken
Describe the bug
Simply set ExtendsContentIntoTitleBar=true then set it back to false, now you have a broken system titlebar. The inactive color is the same as active, and caption button foreground color is also bugged.
This issue only occurs on Windows 11.
Steps to reproduce the bug
- Create a new WinUI3 packaged project C# project
- Use this code
public MainWindow()
{
InitializeComponent();
ExtendsContentIntoTitleBar = true;
}
private void myButton_Click(object sender, RoutedEventArgs e)
{
ExtendsContentIntoTitleBar = false;
}
- Click the button
Expected behavior
No response
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.5.4: 1.5.240607001
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Open similar issues:
- ExtendsContentIntoTitleBar causes the minimize/maximize button overflow window on win10 (#9339), similarity score: 0.78
Closed similar issues:
- ExtendsContentIntoTitleBar & SetTitleBar make TitleBar unusable (#6993), similarity score: 0.78
- Bug: ExtendsContentIntoTitleBar causes the minimize/maximize button overflow window on win10 (#9354), similarity score: 0.77
- Customized title caption buttons not retaining inactive styling (#8228), similarity score: 0.77
- ExtendsContentIntoTitleBar and wrong window top border color (#6901), similarity score: 0.77
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
@codendone : Could you pls. disable this STUPID AI answers in this repository!.
It makes quick scanning all the issues and finding out what's going on a really cumbersome process! Any reasonable developer contributing issues IMHO is basically able to use google and co. to get this information beforehand to contributing valuable time and effort. Just my 2ct., thx.
@RobertK66 Thanks for the feedback. See #9769.