Custom Transparent Docking Theme

4 posts, 0 answers
  1. Ryan
    Ryan avatar
    18 posts
    Member since:
    Oct 2010

    Posted 16 Nov 2011 Link to this post

    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?
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 21 Nov 2011 Link to this post

    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 >>
  3. DevCraft banner
  4. Dani
    Admin
    Dani avatar
    848 posts

    Posted 02 Dec 2011 Link to this post

    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 >>
  5. Daniela
    Daniela avatar
    20 posts
    Member since:
    Jul 2011

    Posted 02 Dec 2011 Link to this post

    thanks a lot :)
Back to Top