Xamarin.Forms Xamarin Gesture Gesture Event


When we put the control of Label, the Label does not provide any event. <Label x:Name="lblSignUp Text="Dont't have account?"/> as shown the Label only display purpose only.

When the user want to replace Button with Label, then we give the event for Label. As shown below:


<Label x:Name="lblSignUp" Text="Don't have an account?" Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="2">


var lblSignUp_Tapped = new TapGestureRecognizer();   
lblSignUp_Tapped.Tapped += (s,e) =>
//  Do your work here.

The Screen Below shown the Label Event. Screen 1 : The Label "Don't have an account?" as shown in Bottom . The Label "Don't have an account?" as shown in Bottom .

When the User click the Label "Don't have an account?", it will Navigate to Sign Up Screen. enter image description here For more details: [https://developer.xamarin.com/guides/xamarin-forms/user-interface/gestures/tap/][1]