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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.