Providing Custom Looping Lists with the LoopingSelector

The previous section looked at the DatePicker and TimePicker controls, whose base class, DateTimePickerBase, relies on a simpler control called LoopingSelector to display date and time values.

LoopingSelector provides all the functionality for an infinitely looping list of values.

LoopingSelector is not intended to be used day-to-day like other controls presented in this chapter, and as a result it resides in the Microsoft.Phone.Controls.Primitives namespace. Nonetheless, it is a useful control.

To use the control you must define a data source, which can be any object that implements ILoopingSelectorDataSource. The ILoopingSelectorDataSource interface defines the following four members: ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.