Change style chrome button in the schedular

11 posts, 0 answers
  1. lieke
    lieke avatar
    5 posts
    Member since:
    Jun 2014

    Posted 30 Jun 2014 Link to this post

    I have changed the style of the Radschedular. 

    But I can not adjust DayButton style. How does this work? 
    See attached file: I would like to change the colors of the orange button.

    I work with version 2012 Q3
  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 02 Jul 2014 Link to this post

    Hi Lieke,

    You need to modify the ButtonChrome VisualStates in order to change the Selected and MouseOver states of RadCalendar.

    Please take a look at the attached project where is included the ButtonChrome style where the Selected state is modified.

    I hope it 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. DevCraft banner
  4. lieke
    lieke avatar
    5 posts
    Member since:
    Jun 2014

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

    Thank you for your replay, If I use the style thats been used in the attatched file I will get the following error:

    The Name "ButtonChrome" does not exist in the namespace "Clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls

    what does that mean?

    Regards,

    Lieke
  5. Masha
    Admin
    Masha avatar
    355 posts

    Posted 03 Jul 2014 Link to this post

    Hi Lieke,

    Can you please share more details on which theme has you used.

    Please, keep in mind that some themes do not have ButtonChromes. This may be possible reason for the described error. The themes without ButtonChrome are  ExpressionDark, Windows8, Windows8Touch, Office2013 and VisualStudio2013 theme.

    Also can you confirm you are using NoXaml binaries in the project?


    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.
     
  6. Vincent
    Vincent avatar
    9 posts
    Member since:
    Dec 2013

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

    how to apply visualstudio2013 theme ? StyleManager.ApplicationTheme = new ????????????????
  7. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 07 Jul 2014 Link to this post

    Hello Vincent,

    The VisualStudio2013 theme can be only applied using Implicit Styles. For more details about the theme you can check the following article from our online help documentation:
    http://www.telerik.com/help/silverlight/common-styling-appearance-visualstudio2013-theme.html

    Hope this helps.

    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.
     
  8. lieke
    lieke avatar
    5 posts
    Member since:
    Jun 2014

    Posted 22 Jul 2014 in reply to Kalin Link to this post

    I think I use ExpressionDark but I'm not sure because whenn I change the theme I can see the changes in blend but they dissapear whenn I build the entire solution.
  9. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 24 Jul 2014 Link to this post

    Hello Lieke,

    Can you share a screenshot of the ScheduleView theme so we confirm what is the used theme? The sample Masha sent you was created for the Office Black theme - if you are using another theme you would need extract the needed Styles and Templates from the used theme and modify them the way Masha has demonstrated in the sample project.

    Hope this helps.

    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.
     
  10. lieke
    lieke avatar
    5 posts
    Member since:
    Jun 2014

    Posted 25 Jul 2014 Link to this post

    this is a screenshot of the scheduleView
  11. lieke
    lieke avatar
    5 posts
    Member since:
    Jun 2014

    Posted 25 Jul 2014 Link to this post

    o sorry din't add the attachment ;)
  12. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 29 Jul 2014 Link to this post

    Hi Lieke,

    The theme from the screenshot you provided is OfficeBlack - the example we attached in the previous post is using the same theme. So you should be able to use the code from the example and modify it as Masha explained you. Alternatively you could manually extract the Template of the ButtonChrome in Blend, remove the x:Key and modify the VisualStates Masha mentioned.

    Hope this helps.

    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
DevCraft banner