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

Custom Title Bar Drag Region prevents click on taskbar buttons in Fullscreen mode at certain size

Open jpageacsys opened this issue 1 year ago • 1 comments

Describe the bug

My app has tabs similar to Google Chrome or Edge in the taskbar. I have a grid in the TabStripFooter with a margin to the right and I update with SetDragRectangles whenever the size changes. This works perfectly at any size with any number of tabs when the app is not fullscreen. However, once I open around 5 tabs in fullscreen mode, I can no longer click on the taskbar buttons. Users started reporting this behavior last week even though I didn't change the code at all. I made a quick barebones test app to reproduce the issue.

Edit: I've seen in this issue that we should now use "SetRegionRects" https://github.com/microsoft/microsoft-ui-xaml/issues/8878 I've tried that as well and the behavior is identical. This issue is closed, but people are still commenting with similar issues: https://github.com/microsoft/WindowsAppSDK/issues/2574

Workaround: I downgraded Microsoft.WindowsAppSDK to 1.4.240512000 and that fixed the issue. Seems like a bug in the update since the code works as expected when I downgrade the library.

Steps to reproduce the bug

I created a repository with an example of the issue. The UpdateDragRegion function records the correct coordinates and position. https://github.com/joelphilippage/TabViewTest

Expected behavior

The intended behavior is that the user can interact with tabs normally and use the default task bar buttons (minimize, Fullscreen, and close).

Screenshots

No response

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

jpageacsys avatar Jun 21 '24 14:06 jpageacsys

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 21 '24 14:06 github-actions[bot]

I have encountered a similar issue with the drag area not being correctly updated, and thus making some buttons on the titlebar unclickable, when maximizing the window. For me it was working fine with WindowsAppSDK 1.4.240211001 but not with later releases.

kjean667 avatar Jul 04 '24 14:07 kjean667

I tried the latest pre-release version of 1.6 which fixed it, but unfortunately it broke several controls I'm using so I can't update yet.

jpageacsys avatar Jul 04 '24 15:07 jpageacsys