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.
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
0
Accepted
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 :
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
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
![](/forums/images/avatarimages/default.gif)
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.
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
![](/forums/images/avatarimages/default.gif)
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"
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
![](/forums/images/avatarimages/default.gif)
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
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
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.