Getting Started

This tutorial will walk you through the creation of a sample application that contains a RadCalendar.

Assembly References

In order to use the RadCalendar control in your projects, you have to add references to the following assemblies:

  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Input

Adding RadCalendar to the Project

Example 1 demonstrates how you can add a RadCalendar in xaml.

Example 1: RadCalendar definition

<telerik:RadCalendar VerticalAlignment="Center" HorizontalAlignment="Center"  /> 

Figure 1: Result from Example 1 in the Office2016 Theme

RadCalendar Getting Started

Changing the number of shown months

You can control how many months are shown by setting the Columns property of the RadCalendar. Its default value is one and the maximum is four. Example 2 demonstrates how you can achieve that.

Example 2: RadCalendar showing four months

<telerik:RadCalendar VerticalAlignment="Center" HorizontalAlignment="Center" Columns="4" ViewsHeaderVisibility="Visible"/> 

Figure 2: Result from Example 2 in the Office2016 Theme

RadCalendar with four months

Hide Week Numbers and Weekdays

You have the option to hide the week numbers, as well as the weekdays. This can be done by setting the AreWeekNumbersVisible and AreWeekNamesVisible properties to False. Example 3 demonstrates this:

Example 3: RadCalendar without week numbers and weekdays

<telerik:RadCalendar VerticalAlignment="Center" HorizontalAlignment="Center" AreWeekNumbersVisible="False" AreWeekNamesVisible="False" /> 

Figure 3: Result from Example 3 in the Office2016 Theme

RadCalendar without week numbers and weekdays

See Also

In this article
Not finding the help you need? Improve this article