O'Reilly logo

XAML Unleashed by Adam Nathan

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

TimePicker

TimePicker, shown in Figure 14.12, looks like a DatePicker and follows the same pattern. It has a Time property initialized to the current time, and a corresponding TimeChanged event. It has the standard Header property, so Figure 14.12 was created as follows:

<TimePicker Header="Choose a time"/>

Image

FIGURE 14.12 The TimePicker control looks and acts like a DatePicker.

TimePicker has only two properties for customizing the time display. One is MinuteIncrement, which can be set to an integer from 0–59. It controls how many choices appear in the minute ComboBox. By default, MinuteIncrement is 1, so the

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