February 2015
Intermediate to advanced
768 pages
26h 24m
English
DatePicker, shown in Figures 14.17 and 14.18, looks simplistic. On a PC, it’s just three ComboBoxes stuck together for selecting a month, date, and year. On a phone, it’s a TextBox that, when tapped, fills the screen with three controls similar to the ComboBoxes. But this is definitely a control you don’t want to implement yourself, as handling dates correctly for all cultures is tricky.
FIGURE 14.17 The modest-looking DatePicker control packs a lot of power, seen here on a PC.
By default, DatePicker shows the current date, but you can change it by setting its Date property to a DateTimeOffset. This is also the single property whose ...
Read now
Unlock full access