Any theme that I try to apply during runtime only results to the default theme being applied.

2 posts, 0 answers
  1. George Adam
    George Adam avatar
    2 posts
    Member since:
    Oct 2018

    Posted 04 Nov 2018 Link to this post

    I tried ThemeResolutionService.ApplyThemeToControlTree(this, "ThemeName") it didn't work.
  2. Dimitar
    Dimitar avatar
    2918 posts

    Posted 05 Nov 2018 Link to this post

    Hello George,

    You need to either drop the theme from the toolbox on the form or manually create an instance. In addition, it would be better to set the ApplicationThemeName property:
    var theme = new FluentDarkTheme();
    ThemeResolutionService.ApplicationThemeName = "FluentDark";

    I hope this will be useful. Let me know if you have additional questions.

    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top