3 Answers, 1 is accepted
Hi Arjun,
Thank you for the question.
There are two ways to change the style of the calendar header:
-
Via implicit styling: you have to define a style that targets the CalendarNavigationControl (defined in the Telerik.UI.Xaml.Controls.Input.Calendar namespace) in the Resources of your calendar:
<telerikInput:RadCalendar><telerikInput:RadCalendar.Resources><StyleTargetType="telerikInputCalendar:CalendarNavigationControl"><SetterProperty="Foreground"Value="Red"/></Style></telerikInput:RadCalendar.Resources></telerikInput:RadCalendar> -
Alternatively, you can change the style of the calendar header globally in your application. Here are several articles from our online documentation that you can read in the order they are listed to see how to use the Telerik named brushes to change the appearance of the calendar header.
- Resolving Telerik named resources - note that the resources are resolved differently in Windows 8 and 8.1 versions of the controls.
- How to use Telerik named brushes
- Telerik named brushes that affect the RadCalendar control
I hope this was useful. Please, let us know if you have further questions.
Rositsa Topchiyska
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thank you for contacting us.
I have attached a sample project with a RadCalendar control and all styles that affect the header (CalendarNavigationControl) are added to the calendar's resources, so you can customize them. Please, note that I have added two dictionaries to the Application resources in order to use the default Telerik resources as described in this article.
I hope this helps. Please, let us know if you have any other questions.
Regards,
Rosy Topchiyska
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.