Telerik UI for Windows Phone by Progress

Getting started


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

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

<telerikInput:RadCalendar x:Name="radCalendar" />
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.

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.

// this will display next month initially
this.radCalendar.DisplayDate = DateTime.Now.AddMonths(1);