Hello,
Welcome to our Microsoft Q&A platform!
Items in a CollectionView
can be dynamically resized by changing layout related properties of elements within the DataTemplate.
In your DataTemplate
, you just have Label
, if you want to change the Height
, you could set HeightRequest
for your Label
<Label HeightRequest="300" Text="{Binding .}" BackgroundColor="Green"/>
Here is related article about it.
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/collectionview/layout#dynamic-resizing-of-items
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.