如何显示列表视图行的所有内容

时间:2019-07-12 10:44:12

标签: c# xaml listview xamarin.forms cross-platform

我正在使用Xamarin表单来制作一个跨平台的APP。

我正在使用列表视图,但是我无法弄清楚如何使行显示其全部内容 enter image description here

我尝试添加HasUnevenRows =“ True”,但没有成功。我还尝试修复RowHeight =“ 100”

有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

<ListView RowHeight="100" x:Name="ContextDemoList">
  <ListView.ItemTemplate>
    <DataTemplate>
      <ViewCell>
         <StackLayout Padding="5">
              <Label VerticalOptions="CenterAndExpand" Text="{Binding title}" />
         </StackLayout>
      </ViewCell>
         </DataTemplate>
       </ListView.ItemTemplate>
     </ListView>