-
Notifications
You must be signed in to change notification settings - Fork 674
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
AppWindowTitleBar.SetDragRectangles doesn't work in Windows App SDK 1.4.230822000 #8901
Comments
InputNonClientPointerSource. |
OK,Thanks.😉 |
@DarranRowe How it use? I also set |
As stated in the release notes, you might have to call AppWindow.TitleBar.IconShowOptions = IconShowOptions.HideIconAndSystemMenu to disable the system menu when clicking at the upper left corner of the window. |
Hi, I almost forgot about this issue, I already got the answer from Microsoft Q&A a few months ago, but I forgot about this issue, sorry. Here is the solution from Microsoft Q&A: |
Describe the bug
After updating to Windows App SDK 1.4.230822000,
AppWindowTitleBar.SetDragRectangles(new RectInt32[]{new RectInt32(800, 0, ScreenWidth - 80, 40)});
It no longer has the effect of changing the title bar draggable area, and every time I use this method again, the Windows App SDK uses the default title bar draggable area instead of my customized title bar draggable area.
Hopefully Microsoft can fix this!
Steps to reproduce the bug
1, Install Windows App SDK 1.4.230822000 NuGet package for your "Blank Project (Packaged)".
2, use
AppWindowTitleBar.SetDragRectangles(new RectInt32[]{new RectInt32(800, 0, 80, 40)});
to set the draggable area of the title bar.3, run the app, move the mouse to the upper left corner of the app and double click.
4, you will see the app is maximized, which means this method is not working.
5, back to Windows App SDK 1.3.230724000, run the app again, move the mouse to the upper left corner of the app and double click.
6, you will see that the app is not maximized, which means this method worked.
Expected behavior
Run the app, mouse over the top left corner of the app, double click, the app is not maximized.
Screenshots
I don't know if there are any problems with these, but I'd like to try to provide them.
![image](https://private-user-images.githubusercontent.com/84891987/266519421-b233ade9-2eec-40bf-a7b8-ebce339a850c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOj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wMjQwOTA4VDA0NDc1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ1ZWVhOWQyZDJkMzExMDFiMmQ3MjQ3MWQzOWQ0NTM5YmQxYWM3Zjk5NGNhY2VkMWY1NjAwMmY0YTA1ZmZlNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Jp9T8H0GE7_LloiZLG8G1DfFNt6U5dlJM5xSuUP0tfs)
NuGet package version
Windows App SDK 1.4.0: 1.4.230822000
Packaging type
Packaged (MSIX)
Windows version
Insider Build (xxxxx)
IDE
Visual Studio 2022-preview
Additional context
By the way, I'm not sure if anyone has mentioned this, and I'm not sure if Microsoft has a replacement method, because I've searched for it many times, and I haven't found any information about it at all, so if there is a replacement method, I hope you guys can let me know, thanks!
The text was updated successfully, but these errors were encountered: