How to wrap text in ListView's TextCell? I tried setting HasUnevenRows
to True
but that didn't help.
You cannot with Xamarin's 'out-of-the-box' TextCell features. BUT, you should be able to create a ViewCell and leverage the LineBreakMode property of Label to accomplish word wrapping. Something like this perhaps:
<ListView>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout>
<Label Text="My TextCell Text" LineBreakMode="WordWrap"/>
<Label Text="My TextCell Detail" LineBreakMode="WordWrap"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With