Editing shipped themes and using them

2 posts, 1 answers
  1. Taylor
    Taylor avatar
    17 posts
    Member since:
    Oct 2009

    Posted 20 Jan 2010 Link to this post

    I am building a VB.NET WinForms app and am using Telerik Controls for Winforms 2009 Q3.  My users like the themes that ship with the controls with the exception of the fonts (which they want larger).  My solution was to edit the themes (so they would be larger at design-time as opposed to updating them at runtime).

    Here is what I did:


    1. Download the source code
    2. Update the font sizes (I just updated the font size of the Button, then changed the theme name to "TestAqua")
    3. Compile the theme
    4. Import the resulting dll into my app as a resource
    5. Set its build type to be embedded
    6. Build the app
    7. Add a RadThemeManager to a form (for now, RadThemeManager1)
    8. Add the theme to RadThemeManager1 (Change the location of the theme file, if needed)
    9. Build the app again


    Next I expected to do be able to set a RadButton's theme to TestAqua, but that theme was not available.  Nor would it work by setting it in code.  As I stepped through the code, I discovered that RadThemeManager1.InstalledThemeNames had a size of 1 (good), but that theme name was set to Nothing (that seems bad).

    One of the reasons we got Telerik controls was that we thought this would be easy to do (and it still seems like it should be easy), so I'm hoping that I'm just not leaning in the right direction when I hit enter, or something.  :-)


    PS  If my original post shows up, sorry -- somehow it has not yet made it to the forum....

  2. Answer
    Nikolay avatar
    1805 posts

    Posted 26 Jan 2010 Link to this post

    Hello Brandon Beam,

    Thank you for the question.

    The process of using a theme component is demonstrated in the following knowledge base article:
    Creating a theme component.

    Please note that if you use a theme component, you should set a reference to the theme component assembly, but not use it as a resource.

    In addition, when you use a theme component, you do not need to use RadThemeManager. RadThemeManager should be used only when you load an xml theme file in your project. This approach is demonstrated in the following article: Adding custom redistributable themes to your applications.

    I hope this helps. If you need additional assistance on this topic, please open a new support ticket and send me your sample application where your custom theme is not recognized. This will allow me to investigate your case in details and provide you with a more helpful response.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top