Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CarouselPanel.ActiveItemIndex Property

Gets or sets the active item by its index.

Namespace: DevExpress.Xpf.Carousel

Assembly: DevExpress.Xpf.Carousel.v24.2.dll

NuGet Package: DevExpress.Wpf.Carousel

#Declaration

public int ActiveItemIndex { get; set; }

#Property Value

Type Description
Int32

An integer value specifying the active item’s index in the source sequence.

#Remarks

Use this property to navigate to a particular item programmatically. Note that you can also allow end-users to navigate between items. See the CarouselPanel.ActivateItemOnClick property and CarouselNavigator class descriptions for more information.

If it’s easier for you to obtain the object representing the required item, instead of determining its index, use the CarouselPanel.ActiveItem property for item activation tasks.

See Also