Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoubleClickCommand not working for MAUI #101

Open
chosl opened this issue Aug 29, 2023 · 0 comments
Open

DoubleClickCommand not working for MAUI #101

chosl opened this issue Aug 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@chosl
Copy link

chosl commented Aug 29, 2023

Describe the bug

When using DoubleClickCommand binding instead of LeftClickCommand binding command is never called.
Testing was done under Windows 11 with TargetFramework net7.0-windows10.0.19041.0 as specified in the MAUI sample app

Steps to reproduce the bug

  1. Modify MainPage.xaml in H.NotifyIcon.Apps.MAUI project
<tb:TaskbarIcon
            IconSource="red.ico"
            x:Name="TrayIcon"

 <!-- Modify here: use DoubleClickCommand instead of LeftClickCommand -->
            DoubleClickCommand="{Binding ShowHideWindowCommand}"
            NoLeftClickDelay="True"
            >
            <FlyoutBase.ContextFlyout>
                <MenuFlyout>
                    <MenuFlyoutItem Command="{Binding ShowHideWindowCommand}" Text="Show/Hide Window" />
                    <MenuFlyoutSeparator />
                    <MenuFlyoutItem Command="{Binding ExitApplicationCommand}" Text="Exit" />
                </MenuFlyout>
            </FlyoutBase.ContextFlyout>
        </tb:TaskbarIcon>

Expected behavior

Expected behaviour is that the bound command to be executed

Screenshots

N/A

NuGet package version

H.NotifyIcon.Maui Version 2.0.115

Platform

No response

IDE

Visual Studio 2022-preview, Visual Studio 2022

Windows Version

Windows 11

WindowsAppSDK Version

1.1

WindowsAppSDK Type

Unpackaged

Manifest

No response

Additional context

No response

@chosl chosl added the bug Something isn't working label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant