Added a clicking command to Labels (and more)

I wanted to have a clickable label in my Xamarin Forms application. A button was just a little too large for my requirements, but a standard Label does not have a click command. However, it’s easy to create such an command handler, this also works for other UI elements.

In your XAML just use the GestureRecognizers collection and add a TapGestureRecongizer, like this

<Label Text="More...">
   <Label.GestureRecognizers>
      <TapGestureRecognizer Command="{Binding MoreCommand}" />
   </Label.GestureRecognizers>
</Label>

Simple.