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
public CollectionViewGridLayout()
Fields
HorizontalItemSpacingProperty
BindableProperty
Identifies the HorizontalItemSpacing bindable property.
public static readonly BindableProperty HorizontalItemSpacingProperty
SpanCountProperty
BindableProperty
Identifies the SpanCount bindable property.
public static readonly BindableProperty SpanCountProperty
VerticalItemSpacingProperty
BindableProperty
Identifies the VerticalItemSpacing bindable property.
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.
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.
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.
public double VerticalItemSpacing { get; set; }