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

Double tap gesture

$
0
0

The following code does nothing when I tap twice. Doesn't matter how fast I tap. However, when I change the number of taps required to 1, it works fine... I'm on the latest pre1 of forms...

    var imgLogo = new Image { Source = ImageSource.FromFile("login") };
                imgLogo.GestureRecognizers.Add(new TapGestureRecognizer
                {
                    Command = new Command(() =>
                    {
                        // Handle taps
                    }),
                    NumberOfTapsRequired = 2
                });
                slMain.Children.Add(imgLogo);

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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