ItemsPerPage support in WPF Carousel
To get or set the number of items to be displayed in the Carousel control, use ItemsPerPage property. Carousel panel displays only items for the currently visible items
Using ItemsPerPage in an Application
In the below sample, ItemsPerPage is set as 5. Hence, while running the sample, only 5 items will be displayed in the path.
<syncfusion:Carousel x:Name="carousel" VisualMode="CustomPath" Height="257" Width="558" ItemsPerPage="5">
<syncfusion:Carousel.OpacityFractions>
<syncfusion:PathFractionCollection>
<syncfusion:FractionValue Fraction="0" Value="1"/>
</syncfusion:PathFractionCollection>
</syncfusion:Carousel.OpacityFractions>
<syncfusion:Carousel.ItemTemplate>
<DataTemplate>
<Border Height="100" Width="100" Background="LightBlue">
<ContentControl Content="{Binding}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</DataTemplate>
</syncfusion:Carousel.ItemTemplate>
</syncfusion:Carousel>
carousel.ItemsSource = new ObservableCollection<string>() { "Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item8", "Item9" };
carousel.ItemsSource = New ObservableCollection(Of String)() From { _
"Item1", _
"Item2", _
"Item3", _
"Item4", _
"Item5", _
"Item6", _
"Item7", _
"Item8", _
"Item9" _
}
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page