New to Telerik UI for .NET MAUI? Start a free 30-day trial

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


To handle the CurrentItemChanged event of RadSlideView:

1. Add the RadSlideView definition.

<telerik:RadSlideView x:Name="slideView"
                      ItemsSource="{Binding Views}"
            <Label Text="{Binding Content}"

2. Add the event handler.

private void OnCurrentItemChanged(object sender, Telerik.Maui.Controls.SlideView.CurrentItemChangedEventArgs e)
    App.Current.MainPage.DisplayAlert("Current index changed to", " " + e.NewIndex, "OK");

For a runnable example with the SlideView Events scenario, see the SDKBrowser Demo Application and go to SlideView > Events.

See Also

In this article