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

How to get Children's of the Grid using TapGestureRecognizer ?

$
0
0

When i tap on grid row i need to retrieve the children of grid.

Here is xaml code

<Grid Padding="15">
       <Label Text="{Binding MainMenuTitle}" FontSize="16" VerticalOptions="Center" HorizontalOptions="Start"/>
       <Image x:Name="im" Source="{Binding ArrowIconSource}" HeightRequest="15" WidthRequest="15" VerticalOptions="Cente                                          
                   HorizontalOptions="End">

       </Image>
       <Grid.GestureRecognizers>
                <TapGestureRecognizer  Tapped="Handle_Tapped" NumberOfTapsRequired="1" />
        </Grid.GestureRecognizers>
 </Grid>

In C#
async void Handle_Tapped(object sender, EventArgs e)
{
//Here i need to get the image and i need to rotate that image
}

Please help me out here


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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