New to Telerik UI for WPF? Download free 30-day trial

Events

This article lists the events specific to RadCarouselPanel.

The following events will be called only when the RadCarouselPanel is placed inside RadCarousel control.

  • TopContainerChanged: Occurs when Telerik.Windows.Controls.RadCarouselPanel.TopContainer property is changed. The TopContainer property returns the container that has the largest ZIndex. This event will be called, either changing the items via mouse or keyboard left and right / up and down arrow keys.

  • SelectedIsTopItem: Occurs when the selected element is the top item. This event will be called only when the selected item is changed.

  • IsAnimatingChanged: Occurs when Telerik.Windows.Controls.RadCarouselPanel.IsAnimating property is changed.

Subscribe to RadCarouselPanel Events

You can use the approach in Example 1 to subscrube to the RadCarouselPanel events.

Example 1: Subscribe to RadCarouselPanel Events

<telerik:RadCarousel x:Name="listView"  ItemsSource="{Binding Employees}"  ItemTemplate="{StaticResource customItemTemplate}"> 
    <telerik:RadCarousel.ItemsPanel> 
        <ItemsPanelTemplate> 
            <telerik:RadCarouselPanel SelectedIsTopItem="MyCarousel_SelectedIsTopItem"  
                                        TopContainerChanged="RadCarouselPanel_TopContainerChanged"  
                                        IsAnimatingChanged="RadCarouselPanel_IsAnimatingChanged"/> 
        </ItemsPanelTemplate> 
    </telerik:RadCarousel.ItemsPanel>             
</telerik:RadCarousel> 

Example 2: Events Handlers

private void MyCarousel_SelectedIsTopItem(object sender, RoutedEventArgs e) 
{ 
} 
 
private void RadCarouselPanel_TopContainerChanged(object sender, RoutedEventArgs e) 
{ 
} 
 
private void RadCarouselPanel_IsAnimatingChanged(object sender, RoutedEventArgs e) 
{ 
} 

See Also

In this article
Not finding the help you need? Improve this article