Set a default theme to be used in the design view

5 posts, 1 answers
  1. Pavel
    Pavel avatar
    13 posts
    Member since:
    Oct 2009

    Posted 29 Sep 2016 Link to this post

    I am applying a consistent theme to my app by doing this ThemeResolutionService.ApplicationThemeName = "Office2013Light";

    But, since that happens at run time, my designer still shows a different theme. How can I change the default theme that's being used?

  2. Christine
    Christine avatar
    8 posts
    Member since:
    Jul 2016

    Posted 29 Sep 2016 in reply to Pavel Link to this post

    There is no quick solution to this. You have to drag the theme onto the designer and apply the theme to the form. Then can right click on the form and select to apply the theme to all controls. Sometimes it saves it for other forms but sometimes it loses it and you have to drag the theme onto the designer again.
  3. Answer
    Dess
    Admin
    Dess avatar
    2183 posts

    Posted 03 Oct 2016 Link to this post

    Hello guys,

    Thank you for writing.  

    Indeed, in order to apply the form's theme to all the controls at design time, you can right-click the form and select the "Apply current form's theme to controls." option. Please refer to the attached screenshot.

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
  4. Myoungsu
    Myoungsu avatar
    8 posts
    Member since:
    Jul 2015

    Posted 09 Jan in reply to Dess Link to this post

    I want to change theme in form load function under a few condition.

    Is there any function like "Apply currnet form's theme to controls."?

  5. Dess
    Admin
    Dess avatar
    2183 posts

    Posted 10 Jan Link to this post

    Hello Myoungsu,

    Thank you for writing.  

    In order to apply a theme to all controls at run time, you can use the ThemeResolutionService.ApplicationThemeName property. Please refer to the following help article which is quite useful on this topic: http://docs.telerik.com/devtools/winforms/themes/using-a-default-theme-for-the-entire-application

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top