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

Windows7 Theme in Ribbon distorted at runtime

4 Answers 137 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Philippe
Top achievements
Rank 2
Philippe asked on 10 Feb 2011, 06:22 PM
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

4 Answers, 1 is accepted

Sort by
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
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:

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
0
Peter
Telerik team
answered on 11 Feb 2011, 05:23 PM
Hello,

I am happy to hear that you guys managed to resolve the issue. You can read more about the ApplicationTheme name here.

Kind regards,
Peter
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
RibbonBar
Asked by
Philippe
Top achievements
Rank 2
Answers by
Richard Slade
Top achievements
Rank 2
Philippe
Top achievements
Rank 2
Peter
Telerik team
Share this question
or