CarouselPanel.VisibleItemCount Property
Gets or sets the number of visible items. This property has no effect when the CarouselPanel.PointPathFunction property is set.
Namespace: DevExpress.Xpf.Carousel
Assembly: DevExpress.Xpf.Carousel.v25.1.dll
NuGet Package: DevExpress.Wpf.Carousel
Declaration
Property Value
Type | Description |
---|---|
Int32 | The number of visible items. |
Remarks
A carousel arranges its items along a specified path. This path can be defined using either the CarouselPanel.ItemMovingPath or CarouselPanel.PointPathFunction property:
- If the
ItemMovingPath
is set, items are evenly distributed along the path. TheVisibleItemCount
property specifies how many items are visible to the user simultaneously. - If the
PointPathFunction
property is set, the layout follows the custom path logic, and theVisibleItemCount
property is ignored.
Note
The CarouselPanel
applies scaling effects to items based on their position along the path. The VisibleItemCount
property includes items that are scaled to zero, as they are not explicitly considered hidden or invisible.
Important
DXCarousel
is designed to work with at least three items.