Skip to content

Opening Context Menu instantly closes again #79

Closed
@svr333

Description

@svr333

I've created the TaskbarIcon as following (although styles have been added, but the issue remains even when I use an exact copy of this TaskbarIcon.

The issue is that whenever I open the Context Menu (Right click), it'll instantly close after being open for about half a second.
I have no idea what causes this issue and messing around with the Focusable property didn't change anything

<tb:TaskbarIcon x:Key="TaskbarIcon"
                    IconSource="pack://application:,,,/AudioBand;component/audioband.ico"
                    ToolTipText="AudioBand"
                    DoubleClickCommand="{Binding OpenSettingsMenuCommand}">
        <tb:TaskbarIcon.ContextMenu>
            <ContextMenu>
                <MenuItem Header="Settings" Command="{Binding OpenSettingsMenuCommand}">
                    <MenuItem.Icon>
                        <TextBlock  FontFamily="Segoe MDL2 Assets" Text="&#xF8B0;" />
                    </MenuItem.Icon>
                </MenuItem>
                <Separator />
            </ContextMenu>
        </tb:TaskbarIcon.ContextMenu>
    </tb:TaskbarIcon>

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug or Bug fixes

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions