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

Convert Image XAML to C#

$
0
0

Hello,

I have XAML below and want to render it in code-behind. The part I don't know is how to assign GestureRecognizers with Command to the Image object.

<Image Source="photo.png" >
  <Image.GestureRecognizers>
      <TapGestureRecognizer Command="{Binding AddCommand}"/>
  </Image.GestureRecognizers>
</Image>

Thanks


Viewing all articles
Browse latest Browse all 89864

Trending Articles