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

issue changing style daybutton

5 Answers 77 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 30 Jun 2014, 12:37 PM
Hey,

I'm creating a proof of concept to test the telerik calendar control. We designed a design for this control but we're having a problem with styling the DayButtonStyle.
We like to change the looks of the buttonchrome in this control because it looks awfull with our design. It is no problem to change this style but when we change the style and we are going to the next month, the days are not refreshing. The days are in the same place as the month before what isn't correct in this new month.

Is there something I am missing? Or is there a solution for this issue? There is not much to find about styling these buttons or issues with it.

5 Answers, 1 is accepted

Sort by
0
Accepted
Masha
Telerik team
answered on 01 Jul 2014, 06:38 AM
Hi Rob,

We aware of such behavior when extracting the RadCalendar Template trough VS Designer or Blend. To fix it you would need to add the folowing line to the ContentControl named Content located in the Template of DayButtonStyle, DecadeButtonStyle, MonthButtonStyle and YearButtonStyle :

ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"

You can also find more information in this KB article about how to customize the ButtonChrome.


I've attached a sample demo project where the DayButton is customize using implicit styles approach.

I hope this helps.

Regards,
Masha
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Rob
Top achievements
Rank 1
answered on 01 Jul 2014, 06:50 AM
Hi Masha,

Thanks for the answer to my question.
I found the KB article you are refering to earlier but somehow I only see the headings or tags when I open it (chrome and IE). 
What is visible of the article over here, is shown in the attached screenshot.

I will go try further. Thanks for the sample project.
0
Rob
Top achievements
Rank 1
answered on 01 Jul 2014, 08:45 AM
Hi Masha,

We have added the theme like in the sample project. But it tells us that the referenced assembly isnĀ“t found for the merged dictionary.

"Could not load file or assembly 'Telerik.Windows.Themes.Office_Black, Culture=neutral' or one of its dependencies. The system cannot find the file specified.":"Telerik.Windows.Themes.Office_Black, Culture=neutral"

0
Rob
Top achievements
Rank 1
answered on 01 Jul 2014, 10:11 AM
Fixed it. Was a bug in visual studio. Thanks for the help.
0
Kalin
Telerik team
answered on 01 Jul 2014, 02:08 PM
Hello Rob,

We are glad you have managed to achieve the required. If you have any other questions or concern, please let us know.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Calendar
Asked by
Rob
Top achievements
Rank 1
Answers by
Masha
Telerik team
Rob
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or