I get an error when setting theme for my radcontrols

3 posts, 0 answers
  1. Anthony
    Anthony avatar
    24 posts
    Member since:
    Feb 2011

    Posted 11 Oct 2011 Link to this post

    Hello Telerik Team,

    Here's my problem. I followed the instructions on your website on how to set a theme to radcontrols. I managed to get it work but its weird that it only works with Vista theme. Other theme generates an "Error HRESULT E_FAIL has been returned from a call to a COM component."

    I would like to know what is the problem, for info please see attached images from this post.
  2. Anthony
    Anthony avatar
    24 posts
    Member since:
    Feb 2011

    Posted 12 Oct 2011 Link to this post

    Hello again,

    Don't bother my question from above, I resolved it. The problem is I was setting the theme in the wrong place. Our project uses MVVM and Prism, the way to apply the theme is set it to the shell and adding the required theme reference to the project.

    Regards,

    Anthony
  3. Dani
    Admin
    Dani avatar
    848 posts

    Posted 12 Oct 2011 Link to this post

    Hello Anthony,

    The application-wide theming should work well. 
    Simply, try applying the theme before InitializeComponent():
    Public Sub New()
            StyleManager.ApplicationTheme = New SummerTheme()
            InitializeComponent()
    End Sub

    I hope this will be helpful.

    Regards,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top