How to get themes working?

6 posts, 0 answers
  1. Morten Nilsen
    Morten Nilsen avatar
    32 posts
    Member since:
    Jun 2010

    Posted 01 Mar 2012 Link to this post

    Hi, I have this old winforms application that I am updating.
    I want the RadGridView I have just added to it to use a different theme than default, but whatever I do, nothing happens..

    I tried setting the ThemeName on the grid to "TelerikMetro", I also tried;
    ThemeResolutionService.ApplicationThemeName = "TelerikMetro";
    That sounded like the right thing to do after googling a bit - didn't work either from Program.cs or main.cs (the form with the grid)

    I just don't get it.. how the heck do you get themes to work?

    I've added references to Telerik.WinControls, t.w.gridview, t.w.themes.telerikmetro,t.w.ui,,,, t.w.c.datavisualization, t.w.c.gridview

    This is driving me off the edge at the moment :(

      // Regards, Morten
  2. Boryana
    Boryana avatar
    330 posts

    Posted 06 Mar 2012 Link to this post

    Hi Morten,

    Thank you for writing.

    To use a theme, other than ControlDefault, you will need to make the following steps:

    1. Find the theme in your toolbox and drop it on your form. This will automatically insert the needed references in your project.
    2. Set the ThemeName property of the controls you would like use the theme. Alternatively, if you would like the theme to be applied to the whole application, you can use the ThemeResolutionService.ApplicationThemeName.

    You will be able to find detailed information and screenshots on how to use our themes in the following article:

    I hope my answer is helpful. Please let me know whether the issue persists.

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. Manesh
    Manesh avatar
    24 posts
    Member since:
    Feb 2012

    Posted 03 Jul 2012 Link to this post

    Hey friends, this themes are driving me to edge, on the form load() the theme is not applied or i've added a RibbonBar and set tab in it and in that tab i've added 6 groups and each group on click i've applied 6 diffrent themes in the tool box but nothing is working
  4. Jack
    Jack avatar
    2333 posts

    Posted 03 Jul 2012 Link to this post

    Hi Manesh,

    Have you checked the help article mentioned in the previous post in this thread? It demonstrates how to apply a theme. Please, note that you should load the respective theme assembly before setting a theme. You can do this with code, for example:
    new Telerik.WinControls.Themes.Office2010Theme();

    You should know that the ApplicationThemeName property has a greater priority than locally set ThemeName properties.

    If this does not help, please send us your application and we will try to find a proper solution.

    I am looking forward to your reply.

    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  5. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jan 2014

    Posted 14 Jan 2014 Link to this post

    I realize that this is dated, but it was causing me problems as well (and this was googles first hit).

    You have to set the inheritance of the "RadForm" for your winforms in order for the form itself to use the themes on the forms themselves.  I think that was the missing link (it was for me).

        public partial class Form1 : Telerik.WinControls.UI.RadForm
            public Form1()
  6. Dimitar
    Dimitar avatar
    2655 posts

    Posted 17 Jan 2014 Link to this post

    Hi Ryan,

    Thank you for writing.

    Indeed you cannot apply our themes to the default .NET forms, they are designed to work with the Telerik Presentation Framework elements, hence they are applicable to RadControls only.

    If you want the theme to be applied to the Form, you should use RadForm, which is our wrapper of a form and supports theming. 

    If you have any questions, please do not hesitate to contact us.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top