Last active
June 5, 2018 22:40
-
-
Save gurvinderbini/4515e8f4f66ec699a8f8cbc3259af1c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ListView x:Name="ListName" ItemsSource="{Binding Name}" | |
SeparatorVisibility="None" HasUnevenRows="True"> | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<ViewCell> | |
<StackLayout> | |
<Grid x:Name="Item"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="1*" /> | |
<ColumnDefinition Width="1*" /> | |
</Grid.ColumnDefinitions> | |
<Label Text="{Binding Name}" Grid.Column="0"/> | |
<Button Text="Click Me" Command="{Binding ClickCommand}" Grid.Column="1" | |
BindingContext="{Binding Source={x:Reference ListName}, Path=BindingContext}" | |
Command="{Binding ClickCommand}" CommandParameter="{Binding Source={x:Reference Item}, | |
Path=BindingContext}"/> | |
</Grid> | |
</StackLayut> | |
</ViewCell> | |
</DataTemplate> | |
</ListView.ItemTemplate> | |
</ListView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment