Telerik UI for Windows Phone by Progress

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.

To use RadLoopingList in your application you have to reference the following assemblies:

  • Telerik.Windows.Core.dll
  • Telerik.Windows.Controls.Primitives.dll

After adding references to the aforementioned dll, you can declare a new RadLoopingList instance as any normal Silverlight control.


To use the RadLoopingList in the XAML you have to add the following namespace declaration:

<telerikPrimitives:RadLoopingList x:Name="radLoopingList" />

RadLoopingList accepts a LoopingListDataSource as its data source. Here is an example of how to populate RadLoopingList with the numbers from 0 to 9:

LoopingListDataSource src = new LoopingListDataSource(10);
src.ItemNeeded += (sender, args) =>
    args.Item = new LoopingListDataItem(args.Index.ToString());
src.ItemUpdated += (sender, args) =>
    args.Item.Text = args.Index.ToString();
radLoopingList.DataSource = src;

Here is a snapshot of the result.

Infinite List Box-Getting Started-02

Looping Orientation

As well as vertically, RadLoopingList can loop its items horizontally. You can adjust this behavior by using the Orientation property exposed by RadLoopingList. The code snippet below demonstrates how to set the Orientation property:

this.loopingList.Orientation = Orientation.Horizontal;

When the Orientation is set to Horizontal, the items are stacked horizontally and the end-user can loop through them by making a horizontal flick gesture.