Skip to content

Buggy single and double left click in H.NotifyIcon.WinUI v2.1.3 #200

@N7K4

Description

@N7K4

Describe the bug

A double left lick on the tray icon will also causes the single left click event / command is called

My config / setup LeftClickCommand and DoubleClickCommand

        <tb:TaskbarIcon x:Name="TrayIcon"
                        Visibility="Visible"
                        ContextMenuMode="PopupMenu"
                        NoLeftClickDelay="True"
                        LeftClickCommand="{StaticResource TrayIconSingleClicked}"
                        DoubleClickCommand="{StaticResource TrayIconDoubleClicked}"
                        DataContext="{x:Bind ViewModel}">

Steps to reproduce the bug

  1. Create a tray icon with Context Menu
  2. Define a LeftClickCommand
  3. Define DoubleClickCommand

When you Double Click, the Single Click command will be executed as well.

Expected behavior

Only the Double Click, is called and the Single Click command is ignored

Screenshots

No response

NuGet package version

H.NotifyIcon.WinUI
v2.1.3

Platform

No response

IDE

Visual Studio 2022

Windows Version

Win 11

WindowsAppSDK Version

No response

WindowsAppSDK Type

None

Manifest

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions