CarouselPanel.ActiveItemIndex Property
Gets or sets the active item by its index.
Namespace: DevExpress.Xpf.Carousel
Assembly: DevExpress.Xpf.Carousel.v19.2.dll
Declaration
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ActiveItemIndex property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.