Issues applying Windows11Compact theme as default for an entire application in App.config

1 Answer 107 Views
Form General Discussions Styling Themes and Visual Style Builder
F3M
Top achievements
Rank 2
Iron
F3M asked on 11 Apr 2024, 05:22 PM

I'm trying to use the Windows11Compact theme as default for an entire application, using the config below. 


This is a WinForms project in C#, I have the Windows11 theme dll added to the project, and I'm trying to automaticaly apply the Windows11Compact theme for all controls and all forms that will be added in the project. I don't want to set the theme in runtime because I need to see the theme during the design of the application.

With the config shown above the theme is not applied. It only uses the default Telerik theme.

However, if I change to the Windows11 theme the form updates automaticaly as well as any control I add. It also work's with the Fluent Theme for exemple.

The version of telerik I'm using is Telerik for WinForms 2024.1.312.40.

 

Thank you in advance for any answer.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 12 Apr 2024, 09:15 AM

Hello, 

I am sorry to hear that you are having difficulties while applying the Windows11Compact theme as default into the App.config file.

In order to test this I created a sample project and modify the App.config file accordingly to use the specified theme:

After closing and reopening againg the designer file, it loads correctly with the Windows11Compact theme:

Maybe there is something different on your side. I am providing my test project for your reference so that you can open it and see how it differes with the setup on your end. More information on this topic is available here: Default Theme - UI for WinForms Documentation - Telerik UI for WinForms

I hope this helps. Please let me know if I can assist you further.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

F3M
Top achievements
Rank 2
Iron
commented on 15 Apr 2024, 08:47 AM

Hii, Nadya | Tech Support Engineer,

The problem was in the license file, it was with the wrong versions of Theme.

Tanks for help.

Tags
Form General Discussions Styling Themes and Visual Style Builder
Asked by
F3M
Top achievements
Rank 2
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or