Back to Devexpress

DXCollectionView.ItemSpacing Property

maui-devexpress-dot-maui-dot-collectionview-dot-dxcollectionview-80bddf9c.md

latest1.6 KB
Original Source

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

csharp
public double ItemSpacing { get; set; }

Property Value

TypeDescription
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:

xaml
<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

DXCollectionView Class

DXCollectionView Members

DevExpress.Maui.CollectionView Namespace