# .NET MAUI SlideView Events

When the current item or its index changes, the SlideView control emits the `CurrentItemChanged` event. You can handle the event and customize the behavior of the component.

## Example

To handle the `CurrentItemChanged` event of `RadSlideView`:

**1.** Add the `RadSlideView` definition.

```XAML
<telerik:RadSlideView x:Name="slideView"
                      ItemsSource="{Binding Views}"
                      CurrentItemChanged="OnCurrentItemChanged">
    <telerik:RadSlideView.ItemTemplate>
        <DataTemplate>
            <Label Text="{Binding Content}"
                   TextColor="#007ACC"
                   HorizontalTextAlignment="Center"
                   VerticalOptions="CenterAndExpand"/>
        </DataTemplate>
    </telerik:RadSlideView.ItemTemplate>
</telerik:RadSlideView>
```

**2.** Add the event handler.

```C#
private void OnCurrentItemChanged(object sender, Telerik.Maui.Controls.SlideView.CurrentItemChangedEventArgs e)
{
    App.Current.Windows[0].Page.DisplayAlert("Current index changed to", " " + e.NewIndex, "OK");
}
```

> For a runnable example with the SlideView Events scenario, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to **SlideView > Events**.

## See Also

* [Using Navigation Buttons in SlideView](https://www.telerik.com/maui-ui/documentation/controls/slideview/navigation-buttons)
* [Executing Commands on Slide Action](https://www.telerik.com/maui-ui/documentation/controls/slideview/commands)
* [Using an Item Template in SlideView](https://www.telerik.com/maui-ui/documentation/controls/slideview/item-template)
* [Styling the SlideView Component](https://www.telerik.com/maui-ui/documentation/controls/slideview/styling/navigation-buttons-styling)
* [Styling the SlideView Indicators](https://www.telerik.com/maui-ui/documentation/controls/slideview/styling/indicator-styling)
