C# Question

How Can I Change Height in ViewCell

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>

Answer

Setting the height for the ViewCell should work.

Try setting your StackLayout's VerticalOptions and HorizontalOptions to FillAndExpand.

Comments