Skip to content
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

Getting ExtendsContentIntoTitleBar value will cause unicolor title bar since WASDK 1.6 #9988

Closed
whiskhub opened this issue Sep 13, 2024 · 0 comments
Labels
area-AppWindow area-TitleBar Issues related to custom window title bars. bug Something isn't working closed-Fixed Described behavior has been fixed. fix-released The fix has been in a release (experimental, preview, stable, or servicing). Regression team-CompInput Issue for IXP (Composition, Input) team
Milestone

Comments

@whiskhub
Copy link
Contributor

Describe the bug

Since Windows App SDK 1.6, the title bar of a window will turn completely unicolor, if AppWindow.ExtendsContentIntoTitleBar is read (yes, just getting the value, not even setting it).

If the Windows color mode is set to dark, the title bar will be completely black; for light mode completely white. There will be NO Mica effect on the title bar.

This is a regression - in Windows App SDK 1.5 this is not reproducible.

Steps to reproduce the bug

  1. Create blank WinUI 3 app with Windows App SDK 1.6 (with the necessary WindowsSdkPackageVersion stuff...)
  2. Add the following line in the MainWindow constructor:
    var unusedVariable = AppWindow.TitleBar.ExtendsContentIntoTitleBar;
  3. Optional: Add Mica backdrop to the Window, so the color difference is more easily visible.
  4. Start the app without a debugger (to avoid WinUI 3 app started via debugger will always have unicolor (black) title bar #9987)
  5. You will see a unicolor (black/white) title bar.

Expected behavior

  1. Getting the AppWindow.TitleBar.ExtendsContentIntoTitleBar should not change anything with the title bar (color). Especially the Mica effect shall be retained.
  2. Upgrading from WADSK 1.5 to 1.6 shall not cause this breaking change.

Screenshots

Title bar with get AppWindow.TitleBar.ExtendsContentIntoTitleBar:
image

Titlebar without get AppWindow.TitleBar.ExtendsContentIntoTitleBar:
image

NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@whiskhub whiskhub added the bug Something isn't working label Sep 13, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 13, 2024
@codendone codendone added area-AppWindow team-CompInput Issue for IXP (Composition, Input) team area-TitleBar Issues related to custom window title bars. Regression and removed needs-triage Issue needs to be triaged by the area owners labels Sep 13, 2024
@llongley llongley added this to the WinAppSDK 1.7 milestone Oct 17, 2024
@llongley llongley added the closed-Fixed Described behavior has been fixed. label Oct 17, 2024
@codendone codendone added the fix-released The fix has been in a release (experimental, preview, stable, or servicing). label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-AppWindow area-TitleBar Issues related to custom window title bars. bug Something isn't working closed-Fixed Described behavior has been fixed. fix-released The fix has been in a release (experimental, preview, stable, or servicing). Regression team-CompInput Issue for IXP (Composition, Input) team
Projects
None yet
Development

No branches or pull requests

3 participants