Getting Started with WinUI LoopingList
The RadLoopingList control allows you to efficiently display a list of data records and loop to the beginning of the list when the end of the list is reached. For example, this can be used to display the days of the week, allowing them to loop in both directions.
The RadLoopingList control can also be used without looping. This is achieved by setting the IsLoopingEnabled property to false.
Assembly References
To use the RadLoopingList suite in your projects, you have to add references to the following assembly:
- Telerik.WinUI.Controls.dll
Defining a RadLoopingList
You can access the RadLoopingList control through an alias pointing to the Telerik.UI.Xaml.Controls.Primitives.LoopingList namespace: xmlns:loopingList="using:Telerik.UI.Xaml.Controls.Primitives.LoopingList"
After adding references, you can declare a new RadLoopingList instance.
Example 1: Defining a RadLoopingList
<loopingList:RadLoopingList x:Name="loopingList" Background="Bisque"/>
Example 2: Settings ItemsSource
public Example()
{
this.InitializeComponent();
this.loopingList.ItemsSource = Enumerable.Range(0, 10).ToList();
}