HandyControl
HandyControl copied to clipboard
ContextMenuToggleButton sometimes need two clicks to open the menu
Describe the bug
If you click on a blank position or MenuItem, you need to click twice on the ContextMenuToggleButton to open the menu next time.
Steps to reproduce the bug
<StatusBarItem>
<hc:ContextMenuToggleButton Content="Click Me">
<hc:ContextMenuToggleButton.Menu>
<ContextMenu>
<MenuItem Header="test" />
</ContextMenu>
</hc:ContextMenuToggleButton.Menu>
</hc:ContextMenuToggleButton>
</StatusBarItem>
Expected behavior
The ContextMenuToggleButton toggles the opening menu correctly in all cases.
Screenshots
No response
NuGet package version
HandyControl 3.4.0
IDE
Visual Studio 2022
Framework type
.Net 6.0
Windows version
Windows 11 (22000)
Additional context
No response