Styling TabControl with Custom Theme

2 posts, 0 answers
  1. Cosmin
    Cosmin avatar
    1 posts
    Member since:
    Jun 2011

    Posted 01 Feb 2012 Link to this post

    Hi there,

    I am trying to use the "Telerik way" of creating a custom theme. I was quite successfully doing this with some simpler and more complex controls (e.g. RadDateTimePicker, RadGridView), but I keep getting errors when I try to add RadTabControl (and RadRibbonBar) into my CustomTheme project.

    The error I get at runtime (because the build is successful) is quite vague and common for you, I guess, and it sound like this: Failed to assign to property 'System.Windows.Setter.Value'. [Line: 9 Position: 36].

    From my findings through the forum, and personal experience, this has to do with some missing references. Can you point me to what references do I have to add to my custom theme project to make this work?

    A demo project from your side to illustrate this would be very welcomed, but really, any help to solve the problem would be nice.

    Looking forward for your feedback!
    Cosmin
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 06 Feb 2012 Link to this post

    Hello Cosmin,

    I am not sure what is causing the issues when creating a custom theme for the RadTabControl and RadRibbonView controls. You can find the assemblies needed for those controls in our online documentation - TabControl required assemblies, RibbonView required assemblies.

    Please make sure you have all of them in your solution and that for each assembly you have defined a ResourceDictionary. Also, if you can send us a sample demonstrating the issues you experience while creating the custom theme, we will be able to further investigate the case.

    In the meantime I attached a sample solution demonstrating how to create a custom theme for the RadTabControl. I hope it helps.

    All the best,
    Tina Stancheva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
Back to Top