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

TapGesture to stacklayout doesn't work in Android

$
0
0

Hi,
I added TapGestureRecognizer to stack layout. Its works well in iOS but not working in Android at all. Code is as under :

var txtCompany = new ExtendedEntryControl ("Company",false){TextColor=Color.Black,WidthRequest=300,IsEnabled=false};
            txtCompany.SetBinding (Entry.TextProperty, "Companies");
            var companylayout = new StackLayout () {
                Children = {txtCompany},
            };
            var companygesture = new  TapGestureRecognizer();
            companygesture.NumberOfTapsRequired=1;
            companygesture.Tapped += async delegate {
                await Navigation.PushModalAsync (new ModalPopUp ("Company"));
            };

Please help me out. Its urgent.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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