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

Hiding titlebar with SetBorderAndTitleBar(true, false) cause maximizing the window hide taskbar #9674

Open
HO-COOH opened this issue May 25, 2024 · 1 comment
Labels
area-TitleBar Issues related to custom window title bars. area-Windowing bug Something isn't working team-CompInput Issue for IXP (Composition, Input) team

Comments

@HO-COOH
Copy link

HO-COOH commented May 25, 2024

Describe the bug

When the window have a titlebar (whether or not ExtendsContentIntoTitleBar() ), double clicking the titlebar / calling presenter.Maximize() / win+up key, maximize the window as expected. But after hiding the titlebar with presenter.SetBorderAndTitleBar(true, false), now you call presenter.Maximize() / double clicking the titlebar / win+up key, the window goes fullscreen, hiding the taskbar.

This is such a weird behavior that goes undocumented.

Steps to reproduce the bug

  1. Hide titlebar with this code in window constructor
        var presenter = (AppWindow.Presenter as OverlappedPresenter);
        presenter.SetBorderAndTitleBar(true, false);
  1. Maximize the window, with win + up key, now the window unexpectedly becomes fullscreened, hiding the taskbar. Using code to maximize the window have the same issue.

Expected behavior

The window should only maximize within the work-area of the monitor, leaving the taskbar visible.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.3: 1.5.240428000

Windows version

Windows 10 (1809): Build 17763

Additional context

No response

@HO-COOH HO-COOH added the bug Something isn't working label May 25, 2024
Copy link

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label May 25, 2024
@codendone codendone added team-CompInput Issue for IXP (Composition, Input) team area-TitleBar Issues related to custom window title bars. area-Windowing and removed needs-triage Issue needs to be triaged by the area owners labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TitleBar Issues related to custom window title bars. area-Windowing bug Something isn't working team-CompInput Issue for IXP (Composition, Input) team
Projects
None yet
Development

No branches or pull requests

2 participants