New to Telerik UI for .NET MAUIStart a free 30-day trial

Adjusting Item Template Height in CollectionView for .NET MAUI

Updated on Sep 26, 2025

Environment

VersionProductAuthor
11.1.0Telerik UI for .NET MAUI CollectionViewDobrinka Yordanova

Description

I want the item template of the CollectionView to only occupy the space it uses. The extra white space below the text in the item needs to be removed.

This knowledge base article also answers the following questions:

  • How can I adjust the height of CollectionView items dynamically?
  • How can I remove the default minimum height set for CollectionView items?
  • How can I improve performance with fixed item heights in .NET MAUI CollectionView?

Solution

To control the height of the item template in CollectionView for .NET MAUI and remove extra white space, follow one of the solutions below:

Setting a Fixed Height with ItemLength

Use the ItemLength property of the CollectionViewLinearLayout to explicitly define the height of the items. If the item size is static, this improves the control's virtualization performance.

XAML
<telerik:RadCollectionView.ItemsLayout>
    <telerik:CollectionViewLinearLayout ItemLength="20"/>
</telerik:RadCollectionView.ItemsLayout>

Adjusting MinimumHeightRequest for Dynamic Sizing

To enable dynamic sizing, set the MinimumHeightRequest of the RadCollectionViewItemView to 0 using the ItemViewStyle:

XAML
<telerik:RadCollectionView.ItemViewStyle>
    <Style TargetType="telerik:RadCollectionViewItemView">
        <Setter Property="MinimumHeightRequest" Value="0" />
    </Style>
</telerik:RadCollectionView.ItemViewStyle>

See Also