In Silverlight 4 we have a control for Time Picking. We have already seen date picker control. In this article we will see how we can use Time Picker.
Create Silverlight Application
Fire up Visual Studio 2010 and create a Silverlight Application and name the solution as TimePickerSample.
In the toolbox you can see rightaway the control.
Drag and drop the control to the design area.
That's it. Run the application. For seeing the suggested times or a list of times click on the clock icon and the list would pop up.
The good thing about the Time Picker is click on any of the context such as hour, minute, or AM/PM. And then click on the up or down button you can set the time which is not listed in the suggested list.
Even you can type in the numbers and the Time Picker would format it for you. Just a note, it takes the time format 24HR or 12HR based on your system's settings.
Hope this article helps.