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

Custom Transparent Docking Theme

3 Answers 38 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 16 Nov 2011, 08:52 PM
Hello,

I'm trying to modify the transparent theme. I tried copying the transparent theme and changing the namespace, project name, etc. and using the newly compiled .dll file in my main project. I've also created a brand new project and followed the instructions here: http://www.telerik.com/help/silverlight/common-styling-apperance-themes-custom-theme-project-telerik-approach.html but using the Docking.xaml file rather than the Slider.xaml file.

Both of these projects, when applied to my main project, throw a KeyNotFoundException in the MainPage.g.i.cs file (MainPage.xaml has my raddock control in it). I get the error message "The given key was not present in the dictionary." This then bubbles up to the next error which is "Error HRESULT E_FAIL has been returned from a call to a COM component."

Do you have any suggestions on how to diagnose what might be causing this issue, or how to fix it?

3 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 21 Nov 2011, 11:24 AM
Hello Ryan,

When you create a custom theme using the Telerik approach, you have to make sure you have a resource dictionary for each Telerik assembly included in the project. For example, if you want to customize RadDocking control, you need to have a Themes folder containing a Telerik.Windows.Controls.xaml resource dictionary, as well as Telerik.Windows.Controls.Navigation.xaml and Telerik.Windows.Controls.Docking.xaml resource dictionaries, even if some of them need to be left blank.

Please, check the attached screenshot for reference.

We will update the help article on that  topic to include this note as soon as possible.

I hope this will help solve your issue.

Regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Dani
Telerik team
answered on 02 Dec 2011, 11:59 AM
Hello Daniela,

Please, accept my apologies on deletion of your post, it was deleted by mistake.
 
As per your request I attach here a sample project demonstrating how to create a custom theme (based on MetroTheme) in Silverlight using the approach described in the article discussed here earlier.

I hope the sample will be helpful.

Kind regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Daniela
Top achievements
Rank 1
answered on 02 Dec 2011, 01:08 PM
thanks a lot :)
Tags
Docking
Asked by
Ryan
Top achievements
Rank 1
Answers by
Dani
Telerik team
Daniela
Top achievements
Rank 1
Share this question
or