Skip to main content

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

public int VisibleItemCount { get; set; }

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. The VisibleItemCount 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 the VisibleItemCount 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.

See Also