Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXCollectionView.ItemSpacing Property

Gets or sets the gap between items in a collection view. This is a bindable property.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

#Declaration

C#
public double ItemSpacing { get; set; }

#Property Value

Type Description
Double

A value that specifies the amount of space between collection view items.

#Remarks

The following image demonstrates how the ItemSpacing property affects DXCollectionView item layout:

DevExpress CollectionView for .NET MAUI - Item spacing

<dxcv:DXCollectionView ... 
                       ItemSpacing="20">

In multi-span mode, you can use the ItemSpanSpacing property to specify the gap between layout columns or rows (depending on DXCollectionView.Orientation.

See Also