简体   繁体   English

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

[英]How to show all the content of list view row

I am working with Xamarin forms in order to make a crossplatform APP. 我正在使用Xamarin表单来制作跨平台APP。

I am using a list view but I can't figure how to make a row show it's full content 我正在使用列表视图,但无法确定如何使行显示其全部内容 在此处输入图片说明

I tried to add HasUnevenRows="True" but didn't do the trick. 我试图添加HasUnevenRows =“ True”,但没有成功。 I also tried to fix RowHeight="100" 我也尝试修复RowHeight =“ 100”

Can someone please help me. 有人可以帮帮我吗。

<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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM