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

double tap for zoom is not working..

$
0
0

i take one scrollview inside that i take an imageview and add gesture recognizer and attach to it but the problem is when i double tap on image it's not working...how to solve this here is my code..

var tapGestureRecognizer = new TapGestureRecognizer(){NumberOfTapsRequired=2};
        tapGestureRecognizer.Tapped += (sender, e) => {
            scrollView.Scale=2;
        };
        image.GestureRecognizers.Add(tapGestureRecognizer);

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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