Calendar and Styling Issue

2 posts, 1 answers
  1. Olivier
    Olivier avatar
    2 posts
    Member since:
    Aug 2014

    Posted 25 Aug 2014 Link to this post


    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.

  2. Answer
    Masha avatar
    357 posts

    Posted 26 Aug 2014 Link to this post

    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.

    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.
Back to Top