小编One*_*iva的帖子

如何在ViewCell中更改高度

我正在尝试在listview上更改ViewCell,但下面的代码对我不起作用:

<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>
Run Code Online (Sandbox Code Playgroud)

c# xaml xamarin-forms

13
推荐指数
4
解决办法
2万
查看次数

标签 统计

c# ×1

xamarin-forms ×1

xaml ×1