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

Get Comman Property from TapGestureRecognizer

$
0
0

Hi.
I have below xaml where i have added to ContentPage

                    <Image HeightRequest="40" WidthRequest="40" >
                      <Image.Source>
                        <OnPlatform x:TypeArguments="ImageSource">
                          <OnPlatform.iOS>
                            <FileImageSource File="xxx.png"/>
                          </OnPlatform.iOS>
                          <OnPlatform.Android>
                            <FileImageSource File="xxx.png"/>
                          </OnPlatform.Android>
                          <OnPlatform.WinPhone>
                            <FileImageSource File="xxx.png"/>
                          </OnPlatform.WinPhone>
                        </OnPlatform>
                      </Image.Source>
                      <Image.GestureRecognizers>
                        <TapGestureRecognizer Tapped="imageInsideListTapped" CommandParameter="{Binding Path=id}" />
                      </Image.GestureRecognizers>
                    </Image>

Now i want calling imageInsideListTapped get value from CommandParameter.
Ho i can do it?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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