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.
Inherited Members
Namespace: Telerik.Maui.Controls.CollectionView
Assembly: Telerik.Maui.Controls.dll
Syntax
public class CollectionViewGridLayout : CollectionViewLayoutBase
Constructors
CollectionViewGridLayout()
Declaration
public CollectionViewGridLayout()
Fields
HorizontalItemSpacingProperty
Identifies the HorizontalItemSpacing bindable property.
Declaration
public static readonly BindableProperty HorizontalItemSpacingProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SpanCountProperty
Identifies the SpanCount bindable property.
Declaration
public static readonly BindableProperty SpanCountProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
VerticalItemSpacingProperty
Identifies the VerticalItemSpacing bindable property.
Declaration
public static readonly BindableProperty VerticalItemSpacingProperty
Field Value
Microsoft.Maui.Controls.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
System.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
public int SpanCount { get; set; }
Property Value
System.Int32
|
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
public double VerticalItemSpacing { get; set; }
Property Value
System.Double
|