Labelview is used for displaying text, both single and multi-line. Labels can have custom fonts (families, sizes, and options) and colored text.
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. 🙂
3,550 total views, 1 views today