This tutorial will walk you through the creation of a sample application that contains a RadCalendar.
- Assembly References
- Adding RadCalendar to the Project
- Changing the number of shown months
- Hide Week Numbers and Weekdays
In order to use the RadCalendar control in your projects, you have to add references to the following assemblies:
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
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
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