WindowsAppSDK
WindowsAppSDK copied to clipboard
IconShowOptions.HideIconAndSystemMenu doesn't take effect when AppTitleBar.ExtendsContentIntoTitleBar set to true
Describe the bug
As described as title,
AppWindowTitleBar appTitleBar = appWindow.TitleBar;
appTitleBar.IconShowOptions = IconShowOptions.HideIconAndSystemMenu;
appTitleBar.ExtendsContentIntoTitleBar = true;
After doing this, the system menu can still open by right click the drag rectangle. It seem like the drag area is handling message regardless of the setting.
Steps to reproduce the bug
Just add some code in a WinUI3 project
AppWindowTitleBar appTitleBar = appWindow.TitleBar;
appTitleBar.IconShowOptions = IconShowOptions.HideIconAndSystemMenu;
appTitleBar.ExtendsContentIntoTitleBar = true;
Expected behavior
The title bar area should not respond to the mouse right click.
Screenshots
No response
NuGet package version
1.1.3
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
No response