TelerikWinFormsThemeName without app.config

1 Answer 92 Views
Themes and Visual Style Builder
Darko
Top achievements
Rank 1
Darko asked on 01 Nov 2022, 07:38 PM | edited on 01 Nov 2022, 07:40 PM

Hi,

default behavior when creating a new WinForms project is that this setting is generated in app.config:

<appSettings>
    <add key="TelerikWinFormsThemeName" value="VisualStudio2022Light" />
  </appSettings>

Since I am using .net 6 and appsettings.json, I would love to eliminate app.config entirely.

Is there a way to move this setting to appsettings.json or implement it in code globally (without adding the code in every form or user control) and still maintain the design time functionality?

regards,
Darko

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Nov 2022, 05:47 AM

Hello, Darko,

It is possible to set a theme to the entire application by setting the ThemeResolutionService.ApplicationThemeName property. Please have a look at the following help article: 

https://docs.telerik.com/devtools/winforms/styling-and-appearance/using-a-default-theme-for-the-entire-application 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Themes and Visual Style Builder
Asked by
Darko
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or