Skip to main content Skip to footer

How to Set a Centralized Theme Property in C1Ribbon with C1ThemeController

This article will explain how to set a common application-wide theme for all the controls/forms to follow.

To do so, you can use the C1ThemeController.ApplicationTheme static property via the designer, as shown in the detailed screenshot below:

After setting the above property, you can use the C1ThemeController.SetTheme() method to set the "(default)" theme to all the controls/forms that should follow the ApplicationTheme. Please see the code below for an example:

//whenever creating a child form, set its theme to "(default)" and it will follow the application-wide theme
//In case you want a Form/Control to follow a different theme, you can specify the name of the theme instead
ChildForm childForm = new ChildForm() { MdiParent = this };
c1ThemeController1.SetTheme(childForm, "(default)");
childForm.Show();

Hunter Haaf