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

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

Image

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

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