Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] LongPressCommand not working in UWP #1288

Closed
@Sergtek

Description

@Sergtek

Description

The LongPressCommand does not work in UWP, however on Android, iOS and macOS it works correctly.

Steps to Reproduce

  1. Add LongPressCommand in some control and bind the property to a command in the view model, it works on Android, iOS, and macOS but not UWP.
<Label Text="Long click"
            TextColor="Black"                                  
            FontSize="Small"
            xct:TouchEffect.LongPressCommand="{Binding TestCommand}"
            xct:TouchEffect.LongPressDuration="900"/>

Expected Behavior

When the user makes a long click on the control, the binded command should be executed.

Actual Behavior

When you hold down a control the time defined in LongPressDuration in UWP nothing happens.

Basic Information

  • Version with issue: 1.2.0-pre1
  • Last known good version: 1.0.3
  • IDE: Visual Studio Community 2019 (16.9.5)
  • Platform Target Frameworks:
    • UWP:
      Target version: 1903
      Min version: 1809
  • Nuget Packages: Xamarin.CommunityToolkit 1.2.0-pre1
  • Affected Devices: All UWP devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UWPUWP platform issue.a/TouchEffectbugSomething isn't working. Breaky break.s/unverifiedThis issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions