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

Calendar and Styling Issue

1 Answer 39 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Olivier
Top achievements
Rank 1
Olivier asked on 25 Aug 2014, 09:17 AM
Hello,

I am experiencing a problem with the Calendar when applying a custom style : when any style is applied on an instance of the RadCalendar, the Calendar UI is not correctly updating when switching from a month to another, and selected values become inconsistent.

This can be easilly reproduced by adding a RadCalendar such as : 

<telerik:RadCalendar HorizontalAlignment="Left" Height="299" Margin="10,10,0,0" VerticalAlignment="Top" Width="497" Style="{DynamicResource RadCalendarStyle1}"/>

, RadCalendarStyle1 beeing a copy of the unmodified original RadCalendar Template (created via Blend "Edit a Template" -> "Edit a Copy" menu).

I can provide the project files if needed.

Regards,

1 Answer, 1 is accepted

Sort by
0
Accepted
Masha
Telerik team
answered on 26 Aug 2014, 07:41 AM
Hi Oliver,

We are aware of this issue which is cause by Blend is not extracting correctly the control template.

What you need to is to remove the following TemplateBindings from the ContentPresenter named Content located inside of the Templates in DayButtonStyle, MonthButtonStyle, YearButtonStyle and DecadeButtonStyle:
‚Äč

ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
ContentStringFormat="{TemplateBinding ContentStringFormat}"

I hope this information will be helpful.

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.
 
Tags
Calendar
Asked by
Olivier
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or