microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Reset to default system titlebar is broken

Open HO-COOH opened this issue 1 year ago • 3 comments

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

  1. Create a new WinUI3 packaged project C# project
  2. Use this code
        public MainWindow()
        {
            InitializeComponent();
            ExtendsContentIntoTitleBar = true;
        }

        private void myButton_Click(object sender, RoutedEventArgs e)
        {
            ExtendsContentIntoTitleBar = false;
        }
  1. Click the button

Expected behavior

No response

Screenshots

titlebar

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

HO-COOH avatar Jun 15 '24 18:06 HO-COOH

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:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Jun 15 '24 18:06 github-actions[bot]

@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 avatar Jun 26 '24 14:06 RobertK66

@RobertK66 Thanks for the feedback. See #9769.

codendone avatar Jun 27 '24 19:06 codendone