Telerik UI for Windows Phone by Progress

The RadTimePicker control provides the user with an interactive UI, that allows him to select a time value through his phone. In order to use the RadTimePicker control in your application you have to reference the following assemblies in your project:

  • Telerik.Windows.Controls.Input.dll
  • Telerik.Windows.Controls.Primitives.dll

After adding references to the aforementioned dlls, you can declare a new RadTimePicker instance as any normal Silverlight control.

Note

To use the RadTimePicker control in the XAML you have to add the following namespace declaration:

xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
CopyXAML
<telerikInput:RadTimePicker x:Name="radTimePicker" />
CopyC#
RadTimePicker radTimePicker = new RadTimePicker();

Getting the Selected Time

In order to get the time selected by the user, the only thing you have to do is to access the value of the Value property. Here is an example.

CopyC#
DateTime selectedTime = this.radTimePicker.Value;

Configuring the RadTimePicker

You are able to make the following configurations to the RadTimePicker control: