Hi,
I've got a winform that inherits from "Inherits Telerik.WinControls.UI.RadRibbonForm" with a ribboncontrol on it, when designing in studio 2010 it looks great as it should be, but at runtime, the visual representation is weird. Did I forgot something? I've included both screenshots.
I used an existing project to start with.
Kind regards;
Philippe
I've got a winform that inherits from "Inherits Telerik.WinControls.UI.RadRibbonForm" with a ribboncontrol on it, when designing in studio 2010 it looks great as it should be, but at runtime, the visual representation is weird. Did I forgot something? I've included both screenshots.
I used an existing project to start with.
Kind regards;
Philippe
4 Answers, 1 is accepted
0

Richard Slade
Top achievements
Rank 2
answered on 10 Feb 2011, 06:35 PM
Hello,
My first impression is that you may have not provided the theme class name in the inherited control. Please take a look at this knowledge base article which details inheriting from RadControls
If you need more assistance though, please let me know
Richard
My first impression is that you may have not provided the theme class name in the inherited control. Please take a look at this knowledge base article which details inheriting from RadControls
If you need more assistance though, please let me know
Richard
0

Philippe
Top achievements
Rank 2
answered on 10 Feb 2011, 06:39 PM
Richard,
I've found the culprit, during testing I'd read somewhere that I had to set the themename after initializing with this line:
Thanks for a quick response !
Philippe
I've found the culprit, during testing I'd read somewhere that I had to set the themename after initializing with this line:
Telerik.WinControls.ThemeResolutionService.ApplicationThemeName = "thmWindows7"
With thmWindows7 being an instance of a theme I dragged on the form; this caused the freaky visual style. When I removed it, it works great. The Windows7 theme name is now only selected in the ThemeName Property of the form.Thanks for a quick response !
Philippe
0

Richard Slade
Top achievements
Rank 2
answered on 10 Feb 2011, 06:41 PM
No problem. Glad you have found a solution
Richard
Richard
0