Telerik UI for Windows Phone by Progress

Getting started

Note

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

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

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

xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
CopyXAML
<telerikInput:RadCalendar x:Name="radCalendar" />
CopyVB.NET
Private radCalendar As RadCalendar = New RadCalendar
CopyC#
RadCalendar radCalendar = new RadCalendar();

Getting the Selected Date

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

CopyVB.NET
Dim selectedDate as DateTime = Me.radCalendar.SelectedValue
CopyC#
DateTime selectedDate = this.radCalendar.SelectedValue;

Setting the initially displayed month

By default RadCalendar will display the current month. If you want to display initially another month use the DisplayDate property to set the month you want to be displayed.

CopyVB.NET
Me.radCalendar.DisplayDate = DateTime.Now.AddMonths(1) ' this will display next month initially
CopyC#
this.radCalendar.DisplayDate = DateTime.Now.AddMonths(1);// this will display next
month initially