I'm trying to change ViewCell on listview, but the code below not work for me:
<DataTemplate>
<ViewCell Height="100">
<StackLayout Orientation="Horizontal">
<Image Source="{Binding Seller.Thumbnail}}" Aspect="AspectFit" />
<StackLayout Orientation="Vertical" >
<Label Text="{Binding CouponName}" FontAttributes="Bold" FontSize="12" />
<Label Text="{Binding EndOffer}" FontSize="11" />
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
ListView.RowHeight property on
ListView itselfViewCell.Height instead
then set ListView.HasUnevenRows to true (but it has some performance impact)The correct now in 2019 is put this for fix height:
<ListView RowHeight="100" />
If yout don't want fix height in all rows, use:
<ListView HasUnevenRows="true" />
Setting the height for the ViewCell will work only if ListView.HasUnevenRows or TableView.HasUnevenRows property set to true.