Welcome to Xamarin Guy Show Blog

Keep updated for latest and Greatest Posts from Xamarin guy

Xamarin Forms Label Clicked Event [Tutorial 43]

The Label view is used for displaying text, both single and multi-line. Labels can have custom fonts (families, sizes, and options) and colored text.
In this tutorial we are going to implementing label which is a clickable one. In C# code behind we are going to implement labelSuggestion.GestureRecognizers in order to give the label clickable attribute. 

The tap gesture is used for tap detection and is implemented with the TapGestureRecognizer class.
We are going to place a label inside stack layout and will give a tap event by calling this command ” labelSuggestion.GestureRecognizers.Add(new TapGestureRecognizer((view) => OnLabelClicked()));”


In Xaml  same as like code behind we are going to implement <Label.GestureRecognizers> in order to make our label clickable. This label will be handled inside code behind and make our label a clickable one. 🙂

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.