Windows7 Theme in Ribbon distorted at runtime

5 posts, 0 answers
  1. Philippe
    Philippe avatar
    2 posts
    Member since:
    Feb 2011

    Posted 10 Feb 2011 Link to this post

    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
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 10 Feb 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Philippe
    Philippe avatar
    2 posts
    Member since:
    Feb 2011

    Posted 10 Feb 2011 Link to this post

    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
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 10 Feb 2011 Link to this post

    No problem. Glad you have found a solution
    Richard
  6. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 11 Feb 2011 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready