Class
CollectionViewLayoutBase

Serves as the base class for all layout strategies that can be used with RadCollectionView. This abstract class defines the fundamental properties and behaviors that all collection view layouts must implement.

Definition

Namespace:Telerik.Maui.Controls.CollectionView

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public abstract class CollectionViewLayoutBase : BindableObject

Inheritance: objectCollectionViewLayoutBase

Derived Classes: CollectionViewGridLayoutCollectionViewLinearLayout

Constructors

CollectionViewLayoutBase()

Declaration

cs-api-definition
protected CollectionViewLayoutBase()

Fields

ItemLengthProperty

Identifies the ItemLength bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemLengthProperty

Field Value

BindableProperty

OrientationProperty

Identifies the Orientation bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty OrientationProperty

Field Value

BindableProperty

Properties

ItemLength

Gets or sets the fixed length (width for vertical orientation, height for horizontal orientation) of individual items in the layout. When set to -1 (default), items will size themselves based on their content. When set to a positive value, all items will have uniform length.

Declaration

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

Property Value

double

Orientation

Gets or sets the orientation that determines the primary direction of item arrangement in the layout. Vertical orientation arranges items in columns that scroll vertically, while horizontal orientation arranges items in rows that scroll horizontally.

Declaration

cs-api-definition
public Orientation Orientation { get; set; }

Property Value

Orientation