Tuesday, September 13, 2022

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

Issue

I am working with Xamarin forms in order to make a crossplatform APP.

I am using a list view but I can't figure how to make a row show it's full content enter image description here

I tried to add HasUnevenRows="True" but didn't do the trick. I also tried to fix RowHeight="100"

Can someone please help me.


Solution

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


Answered By - Ufuk Zimmerman
Answer Checked By - Pedro (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.