Back to Devexpress

CarouselPanel.VisibleItemCount Property

wpf-devexpress-dot-xpf-dot-carousel-dot-carouselpanel-3a085204.md

latest2.2 KB
Original Source

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.2.dll

NuGet Package : DevExpress.Wpf.Carousel

Declaration

csharp
public int VisibleItemCount { get; set; }
vb
Public Property VisibleItemCount As Integer

Property Value

TypeDescription
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

ItemMovingPath

PointPathFunction

CarouselPanel Class

CarouselPanel Members

DevExpress.Xpf.Carousel Namespace