ClassCollectionViewGridLayout
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:
public class CollectionViewGridLayout : CollectionViewLayoutBase
Inheritance: objectCollectionViewLayoutBaseCollectionViewGridLayout
Inherited Members
Constructors
CollectionViewGridLayout()
Declaration
public CollectionViewGridLayout()
Fields
HorizontalItemSpacingProperty
Identifies the HorizontalItemSpacing bindable property.
Declaration
public static readonly BindableProperty HorizontalItemSpacingProperty
Field Value
BindableProperty
SpanCountProperty
Identifies the SpanCount bindable property.
Declaration
public static readonly BindableProperty SpanCountProperty
Field Value
BindableProperty
VerticalItemSpacingProperty
Identifies the VerticalItemSpacing bindable property.
Declaration
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
public double HorizontalItemSpacing { get; set; }
Property Value
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.
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.