Hi Pavel,
PFB the DataTemplate, In this Template we have created 2 Rows in a grid where when the user clicks on the Grid in first row the second row Grid's visibility gets collapsed. once agian the user click the Grid in first row the second row Grid's visibility gets visible.
This is how we achieve expand and collapse. but in IOS this is not working as expected.
please provide a solution or workaround to fix this.
<DataTemplate>
<listView:ListViewTemplateCell>
<listView:ListViewTemplateCell.View>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid>
<Grid.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding ClickCommand}" CommandParameter="{Binding}"
NumberOfTapsRequired="1" />
</Grid.GestureRecognizers>
<Label HorizontalOptions="Center" VerticalOptions="Center" Text="List Item" TextColor="White" ></Label>
</Grid>
<Grid Grid.Row="1" HeightRequest="150" BackgroundColor="Green" IsVisible="{Binding IsVisible}" >
<BoxView Color="Green" HeightRequest="150" />
</Grid>
</Grid>
</listView:ListViewTemplateCell.View>
</listView:ListViewTemplateCell>
</DataTemplate>
Thanks,
Arun