O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required