Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Get number of taps inside Command in TapGestureRecognizer

$
0
0

Hi,
there is a method to get the number of taps inside the command function in TapGestureRecognizer?

I have an image and i add this code:

_myImage.GestureRecognizers.Add (new TapGestureRecognizer {
    Command = new Command (() => {
        // do some work...
    }),
    NumberOfTapsRequired = 2
});

My intent is to add another function the require 1 tap to do another operation. But if I add another block of code like above it will call only the last function.

So if there is a way to get the number of taps inside the Command I can do an "IF".

Thanks in advance.

Marco


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>