Share via


CarouselView.ItemsLayout Property

Definition

Gets or sets the layout used to arrange items in the carousel.

public:
 property Microsoft::Maui::Controls::LinearItemsLayout ^ ItemsLayout { Microsoft::Maui::Controls::LinearItemsLayout ^ get(); void set(Microsoft::Maui::Controls::LinearItemsLayout ^ value); };
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.CarouselLayoutTypeConverter))]
public Microsoft.Maui.Controls.LinearItemsLayout ItemsLayout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.CarouselLayoutTypeConverter))>]
member this.ItemsLayout : Microsoft.Maui.Controls.LinearItemsLayout with get, set
Public Property ItemsLayout As LinearItemsLayout

Property Value

A LinearItemsLayout that defines the layout direction and snap behavior. The default is a horizontal layout with mandatory single snap points.

Attributes

Remarks

The items layout determines whether items are arranged horizontally or vertically, and controls snap behavior through SnapPointsType and SnapPointsAlignment.

Applies to