Closed airtaxi closed 2 months ago
All the code regarding SecondWindow is located in TaskbarIcon.ContextMenu.WinUI.SecondWindow.cs. There are only 200 lines there. No ideas yet, it could be a bug in WinUI, or some other problems with this code
@HavenDV Just reviewed the source code but I think this issue wil be resolved if we add an exception for MenuFlyoutSubItem at line between 119~130 of TaskbarIcon.ContextMenu.WinUI.SecondWindow.cs May I make pull request for that?
Yes of course, that would be great.
@HavenDV I just made a pull request! feel free to review that :)
Available on NuGet as 2.1.2
@HavenDV Works like a charm! Thanks for the instant update!
Describe the bug
Hi, thanks for the great library! But I found a bug with ContextMenuMode for WinUI.
ContextMenuMode="SecondWindow" has issue with WinUI when clicking MenuFlyoutSubItem before it displays its children
Steps to reproduce the bug
Expected behavior
Screenshots
Gif below (might takes some time to load):
NuGet package version
Platform
WinUI
IDE
Visual Studio 2022
Windows Version
Windows 11
WindowsAppSDK Version
Other
WindowsAppSDK Type
Unpackaged
Manifest
If you mean app.manifest, the project has this. But problem also occurs without
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
statementAdditional context
Haven't reviewed source code, but maybe H.NotifyIcon handles MenuFlyoutSubItem as clickable object that makes ContextMenu to dismiss?