CarouselView.ItemsLayout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.