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

I get an error when setting theme for my radcontrols

2 Answers 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 2
Anthony asked on 12 Oct 2011, 04:29 AM
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 Answers, 1 is accepted

Sort by
0
Anthony
Top achievements
Rank 2
answered on 12 Oct 2011, 07:33 AM
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
0
Dani
Telerik team
answered on 12 Oct 2011, 07:37 AM
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 >>
Tags
General Discussions
Asked by
Anthony
Top achievements
Rank 2
Answers by
Anthony
Top achievements
Rank 2
Dani
Telerik team
Share this question
or