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

Represents a layout that arranges collection view items in a grid formation with a specified number of columns or rows. This layout is ideal for displaying items in a structured grid pattern, such as photo galleries or product catalogs.

Definition

Namespace:Telerik.Maui.Controls.CollectionView

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class CollectionViewGridLayout : CollectionViewLayoutBase

Inheritance: objectCollectionViewLayoutBaseCollectionViewGridLayout

Inherited Members CollectionViewLayoutBase.ItemLengthPropertyCollectionViewLayoutBase.OrientationPropertyCollectionViewLayoutBase.ItemLengthCollectionViewLayoutBase.Orientation

Constructors

C#
public CollectionViewGridLayout()

Fields

Identifies the HorizontalItemSpacing bindable property.

C#
public static readonly BindableProperty HorizontalItemSpacingProperty

SpanCountProperty

BindableProperty

Identifies the SpanCount bindable property.

C#
public static readonly BindableProperty SpanCountProperty

Identifies the VerticalItemSpacing bindable property.

C#
public static readonly BindableProperty VerticalItemSpacingProperty

Properties

Gets or sets the horizontal spacing (in device-independent units) between items in the grid layout. This spacing is applied between items horizontally, regardless of the layout orientation.

C#
public double HorizontalItemSpacing { get; set; }

Gets or sets the number of columns (for vertical orientation) or rows (for horizontal orientation) in the grid layout. This determines how many items are displayed across the cross-axis of the layout orientation.

C#
public int SpanCount { get; set; }

Gets or sets the vertical spacing (in device-independent units) between items in the grid layout. This spacing is applied between items vertically, regardless of the layout orientation.

C#
public double VerticalItemSpacing { get; set; }