issue changing style daybutton

6 posts, 1 answers
  1. Rob
    Rob avatar
    16 posts
    Member since:
    May 2014

    Posted 30 Jun 2014 Link to this post

    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.
  2. Answer
    Masha
    Admin
    Masha avatar
    355 posts

    Posted 01 Jul 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Rob
    Rob avatar
    16 posts
    Member since:
    May 2014

    Posted 01 Jul 2014 in reply to Masha Link to this post

    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.
  5. Rob
    Rob avatar
    16 posts
    Member since:
    May 2014

    Posted 01 Jul 2014 Link to this post

    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"

  6. Rob
    Rob avatar
    16 posts
    Member since:
    May 2014

    Posted 01 Jul 2014 Link to this post

    Fixed it. Was a bug in visual studio. Thanks for the help.
  7. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 01 Jul 2014 Link to this post

    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.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready