Open saravananmadhesh opened 3 years ago
Any update for this?
Hi, @saravananmadhesh - thanks for submitting this issue. That's certainly very strange behavior and we'll have to investigate further.
I tested your repro and had success using .Remove instead of .Clear. So you can create a public variable for your pTapGestureRecognizer and then add the following code to your GoClearTap
method: border.GestureRecognizers.Remove(pTapGestureRecognizer);
Hope this helps! :)
Description
Added tap gesture at code behind with command involving on tap, and dynamically cleared the gesture collection and tap on the content view, still command executed.
Works fine in Android and UWP,
Steps to Reproduce
Add tap gesture for content view at code behind. ``
Clear the gesture, at button clicked.
Added new tapgesture at another button click.
Expected Behavior
Expected command only invoke at once.
Actual Behavior
Command invoked multiple times, based on setting new tapgesture to the content view.
Basic Information
Build Logs
Reproduction Link
TapContentView.zip
Workaround
Not found.