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
Description
Description
The LongPressCommand does not work in UWP, however on Android, iOS and macOS it works correctly.
Steps to Reproduce
- 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
- UWP:
- Nuget Packages: Xamarin.CommunityToolkit 1.2.0-pre1
- Affected Devices: All UWP devices.