New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public abstract class CollectionViewLayoutBase : BindableObject

Inheritance: objectCollectionViewLayoutBase

Derived Classes: CollectionViewGridLayoutCollectionViewLinearLayout

Constructors

C#
protected CollectionViewLayoutBase()

Fields

ItemLengthProperty

BindableProperty

Identifies the ItemLength bindable property.

C#
public static readonly BindableProperty ItemLengthProperty

OrientationProperty

BindableProperty

Identifies the Orientation bindable property.

C#
public static readonly BindableProperty OrientationProperty

Properties

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.

C#
public double ItemLength { get; set; }

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.

C#
public Orientation Orientation { get; set; }