Selecting Date and Time Values with the DatePicker and TimePicker

Entering a date or time on the phone would be an otherwise cumbersome task if it relied solely on the phone SIP (Software Input Panel) or hardware keyboard. DatePicker and TimePicker conform to the language of the phone and provide an interface that makes selecting a date or time easy.

Both the DatePicker and TimePicker use a TextBox to display a date or time value (see Figure 9.13).


FIGURE 9.13 DatePicker and TimePicker controls.

When the user taps the TextBox, a form is presented that allows the user to specify the date or time using a set of infinitely scrollable controls (see ...

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

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