Class
CollectionViewGridLayout

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:

cs-api-definition
public class CollectionViewGridLayout : CollectionViewLayoutBase

Inheritance: objectCollectionViewLayoutBaseCollectionViewGridLayout

Inherited Members CollectionViewLayoutBase.ItemLengthPropertyCollectionViewLayoutBase.OrientationPropertyCollectionViewLayoutBase.ItemLengthCollectionViewLayoutBase.Orientation

Constructors

CollectionViewGridLayout()

Declaration

cs-api-definition
public CollectionViewGridLayout()

Fields

HorizontalItemSpacingProperty

Identifies the HorizontalItemSpacing bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalItemSpacingProperty

Field Value

BindableProperty

SpanCountProperty

Identifies the SpanCount bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SpanCountProperty

Field Value

BindableProperty

VerticalItemSpacingProperty

Identifies the VerticalItemSpacing bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalItemSpacingProperty

Field Value

BindableProperty

Properties

HorizontalItemSpacing

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.

Declaration

cs-api-definition
public double HorizontalItemSpacing { get; set; }

Property Value

double

SpanCount

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.

Declaration

cs-api-definition
public int SpanCount { get; set; }

Property Value

int

VerticalItemSpacing

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.

Declaration

cs-api-definition
public double VerticalItemSpacing { get; set; }

Property Value

double