Xamarin.forms ListView未正确显示标签

Xamarin.forms ListView未正确显示标签,xamarin.forms,Xamarin.forms,在我的Xamarin.Forms应用程序中,我有一个列表视图: <ListView ItemsSource="{Binding MyItems}" Grid.Row="1" Margin="0,20,0,0"> <ListView.ItemTemplate> <DataTemplate> <

在我的Xamarin.Forms应用程序中,我有一个列表视图:

<ListView ItemsSource="{Binding MyItems}"
                  Grid.Row="1"
                  Margin="0,20,0,0">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <Label Text="ABC" FontSize="Large" TextColor="Black" BackgroundColor="Red" Margin="20" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
</ListView>


“ABC”应该出现的地方,只是标签背景的一条细红线。我没有看到真正的字母。我以前做过很多ListView都没有问题,我不知道我在这里做错了什么?

ViewCell
需要包含布局控件,否则它将无法正确渲染

为简单起见,您可以实现
堆栈布局


ViewCell
需要包含布局控件,否则无法正确渲染

为简单起见,您可以实现
堆栈布局