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

Styling TabControl with Custom Theme

1 Answer 69 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Cosmin
Top achievements
Rank 1
Cosmin asked on 01 Feb 2012, 05:49 PM
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

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 06 Feb 2012, 12:51 PM
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 >>
Tags
TabControl
Asked by
Cosmin
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or