Skip to content

Commit a8e7a4e

Browse files
committed
address comment
1 parent 11ad8bb commit a8e7a4e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

knowledge-base/collectionview-item-template-adjust-height.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ This knowledge base article also answers the following questions:
2929

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

32+
33+
3234
### Setting a Fixed Height with `ItemLength`
3335

34-
Use the `ItemLength` property of the [`CollectionViewLinearLayout`](https://docs.telerik.com/devtools/maui/controls/collectionview/layouts/linear-layout) to explicitly define the height of the items:
36+
Use the `ItemLength` property of the [`CollectionViewLinearLayout`](https://docs.telerik.com/devtools/maui/controls/collectionview/layouts/linear-layout) to explicitly define the height of the items. If the item size is static, this improves the control's virtualization performance.
3537

3638
```XAML
3739
<telerik:RadCollectionView.ItemsLayout>
@@ -51,10 +53,6 @@ To enable dynamic sizing, set the `MinimumHeightRequest` of the `RadCollectionVi
5153
</telerik:RadCollectionView.ItemViewStyle>
5254
```
5355

54-
### Recommendation
55-
56-
If the item size is static, prefer using `ItemLength` as it improves the control's virtualization performance.
57-
5856
## See Also
5957

6058
- [CollectionView Documentation](https://docs.telerik.com/devtools/maui/controls/collectionview/overview)

0 commit comments

Comments
 (0)