SIGN UP MEMBER LOGIN:    
ARTICLE

TimePicker in Silverlight 4

Posted by Diptimaya Patra Articles | Silverlight June 21, 2010
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.
Reader Level:
Download Files:
 

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.

share this article :
post comment
 

thanks a lot...!

Posted by dipali mayekar May 04, 2012

Can we use seconds?

Posted by Dmitriy Boyko Sep 23, 2011

hi. Do you know how to hide the small popup with time that prompt the user the current time ? as you have shown in the last figure above "12:34 PM" how to hide that prompt ?

Posted by sam Mar 18, 2011

Hi, I am using the TimePicker control in one of my applications. Some of my customers have requested the TimePicker control up/down buttons function without first having to click in one of the context areas (hour/min/am-pm). I've tried to derive from TimePicker and also TimeUpDown but neither has methods to override that are called when clicking up/down buttons with no context area having focus. How can I modify the behavior of the TimePicker control to work the way my customers would like? Thanks in advance, Kevin

Posted by Kevin Job Feb 23, 2011

Is there any way to make the width of timePicker little narrow? I have trouble to get the TimePicker width<100...

Posted by George Shoa Jul 31, 2010
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Gauge for SharePoint
Become a Sponsor