TimePicker in Silverlight 4


Introduction

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.

1.gif 

In the toolbox you can see rightaway the control.

2.gif 

Drag and drop the control to the design area.

3.gif 

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. 

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

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

6.gif 

Hope this article helps.

Up Next
    Ebook Download
    View all
    Learn
    View all