Articles in this section
Category / Section

How to customize the theme colors and fonts in the WPF Skin Manager?

2 mins read

In WPF Skin Manager, you can customize the theme colors and fonts by using the RegisterThemeSettings method and pass the theme name and respective theme setting instance as parameters.

Each theme supported by the theme studio has its own theme settings class, which begins with the prefix of the themes’ name. You can see the example and sample for this in the following code sample.

       public MainWindow()
       {
           FluentDarkThemeSettings fluentDarkThemeSettings = new FluentDarkThemeSettings();
           fluentDarkThemeSettings.PrimaryBackground = new SolidColorBrush(Colors.Red);
           fluentDarkThemeSettings.PrimaryForeground = new SolidColorBrush(Colors.AntiqueWhite);
           fluentDarkThemeSettings.BodyFontSize = 15;
           fluentDarkThemeSettings.HeaderFontSize = 18;
           fluentDarkThemeSettings.SubHeaderFontSize = 17;
           fluentDarkThemeSettings.TitleFontSize = 17;
           fluentDarkThemeSettings.SubTitleFontSize = 16;
           fluentDarkThemeSettings.BodyAltFontSize = 15;
           fluentDarkThemeSettings.FontFamily = new FontFamily("Callibri");
           SfSkinManager.RegisterThemeSettings("FluentDark", fluentDarkThemeSettings);
           SfSkinManager.SetTheme(this, new Theme("FluentDark"));
           InitializeComponent();            
       }  

FluentThemeSettings.png

Documentation for the customize theme and font in the application

View GitHub sample

Conclusion

I hope you enjoyed learning about how to customize the theme colors and fonts in the WPF Skin Manager.

You can refer to our WPF Skin Manager feature tour page to know about its other groundbreaking feature representations. You can also explore documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied