Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to get the grid.row and grid.column value while clicking the button

$
0
0


<Grid.RowDefinitions>



</Grid.RowDefinitions>
<Grid.ColumnDefinitions>



</Grid.ColumnDefinitions>

    <Button Grid.Row="0" Grid.Column="0" BackgroundColor="White" Clicked="Button_Clicked"/>
    <Button Grid.Row="0" Grid.Column="1" BackgroundColor="White" Clicked="Button_Clicked"/>
    <Button Grid.Row="0" Grid.Column="2" BackgroundColor="White" Clicked="Button_Clicked"/>

    <Button Grid.Row="1" Grid.Column="0" BackgroundColor="White" Clicked="Button_Clicked"/>
    <Button Grid.Row="1" Grid.Column="1" BackgroundColor="White" Clicked="Button_Clicked"/>
    <Button Grid.Row="1" Grid.Column="2" BackgroundColor="White" Clicked="Button_Clicked"/>

    <Button Grid.Row="2" Grid.Column="0" BackgroundColor="White" Clicked="Button_Clicked"/>
    <Button Grid.Row="2" Grid.Column="1" BackgroundColor="White" Clicked="Button_Clicked"/>
    <Button Grid.Row="2" Grid.Column="2" BackgroundColor="White" Clicked="Button_Clicked"/>
</Grid>

While clicking a button i need to fetch the row and column value.Is it possible?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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