You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Windows App SDK 1.4+, it is not possible to interact with the edges of the title bar for an AppWindow or WinUI 3 Window with ExtendsContentIntoTitleBar set to true when the window is maximized. This means that users are not able to click on the close/restore/minimize buttons if the cursor is in the topmost or rightmost position on screen. This also breaks restoring a window by dragging it from the very top or farthest sides of the title bar.
Instead of showing the correct cursor and performing the correct action, the cursor on the edges of the title bar becomes a resize cursor, although no resizing occurs.
Steps to reproduce the bug
Create a blank WinUI 3 app
In the constructor of MainWindow, set ExtendsContentIntoTitleBar = true
Run the app
Maximize the window
Move your cursor to the top right of the screen. Note that the close button will not highlight red and clicking does nothing and the cursor is a resize cursor (see similar effect on minimize and restore buttons on top edge)
Move your cursor to the top center of the screen and click and drag down. Note the window does not restore and move and the cursor is a resize cursor
Issue occurs on far left edge, far right edge, and top edge, as well as top left and right corners
Expected behavior
The title bar should behave (perform hit testing) like the default Windows title bar. Users should be able to interact with window controls on the far edges and corners of the screen when windows are maximized.
Screenshots
This is the cursor showing in the top right corner:
It should be a normal arrow cursor, and the button should be red when hovered (and close the window when clicked):
Isn't this issue related to WinAppSdk rather than WinUI?
Arguably yes, this issue is in Microsoft.UI.Windowing. However, it has already been categorized in this repo under area-AppWindow and not moved to the Windows App SDK repo, so it should be fine here.
The March 2024 WinUI Community Call indicated a better title bar experience is in the roadmap for Windows App SDK 1.6, so hopefully this is fixed on that timeframe.
Describe the bug
In Windows App SDK 1.4+, it is not possible to interact with the edges of the title bar for an AppWindow or WinUI 3 Window with ExtendsContentIntoTitleBar set to true when the window is maximized. This means that users are not able to click on the close/restore/minimize buttons if the cursor is in the topmost or rightmost position on screen. This also breaks restoring a window by dragging it from the very top or farthest sides of the title bar.
Instead of showing the correct cursor and performing the correct action, the cursor on the edges of the title bar becomes a resize cursor, although no resizing occurs.
Steps to reproduce the bug
ExtendsContentIntoTitleBar = true
Expected behavior
The title bar should behave (perform hit testing) like the default Windows title bar. Users should be able to interact with window controls on the far edges and corners of the screen when windows are maximized.
Screenshots
This is the cursor showing in the top right corner:
It should be a normal arrow cursor, and the button should be red when hovered (and close the window when clicked):
NuGet package version
Microsoft.WindowsAppSDK 1.4.230822000
Microsoft.WindowsAppSDK 1.5.240311000
Windows version
Windows 11 (22H2): Build 22621
The text was updated successfully, but these errors were encountered: