HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

ContextMenuToggleButton sometimes need two clicks to open the menu

Open CodingOctocat opened this issue 2 years ago • 0 comments

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.

动画2

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

CodingOctocat avatar Jun 23 '23 02:06 CodingOctocat