Skip to main content
All docs
V25.1
  • DxCarousel.ActiveItemIndexChanged Event

    Fires when the Carousel’s active item index is changed.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [Parameter]
    public EventCallback<int> ActiveItemIndexChanged { get; set; }

    Parameters

    Type Description
    Int32

    The active item’s index.

    Remarks

    Use the ActiveItemIndex property to activate a particular Carousel item programmatically. Handle the ActiveItemIndexChanged event to respond to the property change.

    <DxCarousel Width="500px"
                Height="300px"
                Data="@GetCarouselData()"
                ActiveItemIndex="@CarouselItemIndex"
                LoopNavigationEnabled="true"
                ImageSizeMode="CarouselImageSizeMode.FillAndCrop"
                ActiveItemIndexChanged="OnActiveItemIndexChanged">
    </DxCarousel>
    
    <div>@ItemIndexInfo</div>
    

    Carousel - Activate Items in Code

    See Also