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

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 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>