This is a migrated thread and some comments may be shown as answers.

[Solved] Change Style Of Calender Control In Windows 8 Apps?

3 Answers 67 Views
Calendar for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Arjun
Top achievements
Rank 1
Arjun asked on 17 Jan 2014, 09:53 AM
Hi All,

Am Using Telerik Calender Control in my windows 8 Apps I Need to Change Header Background Color ?



3 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 17 Jan 2014, 03:20 PM

Hi Arjun,

Thank you for the question.

There are two ways to change the style of the calendar header:

  1. 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>
            <Style TargetType="telerikInputCalendar:CalendarNavigationControl">
                <Setter Property="Foreground" Value="Red"/>
            </Style>
        </telerikInput:RadCalendar.Resources>
    </telerikInput:RadCalendar>
  2. 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.

I hope this was useful. Please, let us know if you have further questions.


Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Christopher
Top achievements
Rank 1
answered on 31 May 2014, 12:17 AM
I am trying to style the calendar header as well. I would like to change the font and remove the thick bottom grid line. I followed Rosy Topchiyska's advice for implicit styling, but it has no effect. Any help would be appreciated.
0
Rosy Topchiyska
Telerik team
answered on 04 Jun 2014, 07:54 AM
Hello Christopher,

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.

 
Tags
Calendar for XAML
Asked by
Arjun
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Christopher
Top achievements
Rank 1
Share this question
or