Skip to content

Commit ba3b1de

Browse files
authored
Update default-theme.md
1 parent f4744bc commit ba3b1de

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

styling-and-appearance/default-theme.md

+12-16
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,23 @@ As of **R1 2021**, Telerik UI for WinForms starts using **Fluent** theme as defa
5151
All Telerik themes that Telerik UI for WinForms offers, can be used as default theme in the application either at design time and run time. You can check other themes styles [here](https://docs.telerik.com/devtools/winforms/styling-and-appearance/themes-style).
5252

5353
To use any Telerik theme you should follow these two steps below :
54+
5455
1. Add the relevant theme assembly to the project references. For example, if you prefer using the Windows11Compact theme in your application, you should add a reference to the **Telerik.WinControls.Themes.Windows11** in your project. You can do this by either drag-drop the theme from the Toolbox or reference it from your installation folder.
5556

56-
>note When you use the **UI.for.WinForms.AllControls** Telerik NuGet package, all the available themes are included in the package.
57+
>note When you use the **UI.for.WinForms.AllControls** Telerik NuGet package, all the available themes are included in the package.
5758
5859
2. Specify the TelerikWinFormsThemeName in the **App.config** file:
5960

60-
````XML
61-
62-
<?xml version="1.0" encoding="utf-8" ?>
63-
<configuration>
64-
<startup>
65-
66-
</startup>
67-
<appSettings>
68-
<add key="TelerikWinFormsThemeName" value="Windows11Compact" />
69-
</appSettings>
70-
</configuration>
71-
72-
````
61+
````XML
62+
63+
<?xml version="1.0" encoding="utf-8" ?>
64+
<configuration>
65+
<appSettings>
66+
<add key="TelerikWinFormsThemeName" value="Windows11Compact" />
67+
</appSettings>
68+
</configuration>
69+
70+
````
7371

7472
Once, the two steps are completed, you can close and reopen the designer file again to ensure the theme is applied:
7573

@@ -101,8 +99,6 @@ Let's say there is a custom **Windows11CompactLightBlue** theme created, which i
10199

102100
<?xml version="1.0" encoding="utf-8" ?>
103101
<configuration>
104-
<startup>
105-
</startup>
106102
<appSettings>
107103
<add key="TelerikWinFormsThemeName" value="Windows11CompactLightBlue" />
108104
<add key="TelerikWinFormsThemeType" value="Windows11LightBlueClassLibrary.Windows11LightBlue"/>

0 commit comments

Comments
 (0)