Introducing Theme Studio for Syncfusion WinForms controls | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (174).NET Core  (29).NET MAUI  (207)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (40)Black Friday Deal  (1)Blazor  (215)BoldSign  (14)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (66)Flutter  (133)JavaScript  (221)Microsoft  (118)PDF  (81)Python  (1)React  (100)Streamlit  (1)Succinctly series  (131)Syncfusion  (914)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (36)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (147)Chart  (131)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (628)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (40)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (507)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (592)What's new  (332)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Theme Studio for Syncfusion WinForms controls

Introducing Theme Studio for Syncfusion WinForms controls

In the Essential Studio 2019 Volume 1 release, Syncfusion has included the Theme Studio (beta version) for WinForms controls. It helps users transform their visual presentation with a new theme in a few minutes, without any involvement of code or a designer.

Home screen of Theme Studio WinFormsHome screen of WinForms Theme Studio

Launching WinForms Theme Studio

For convenience, the Theme Studio application reserves a special place in the start-up panel for its launch. On launching the application, you can see a couple of panels. One for theme customization on the left and the other for the control’s preview on the right. The theme customization panel has the primary color brushes mapped to appropriate colors from the controls skin. The skin of the control on the right-hand side will get refreshed automatically on changing these colors.

Important Note:

  • Theme Studio showcases only the primary colors.
  • Limited controls are placed in the preview section. However, Theme Studio will apply new colors to all the selected controls.

Modifying colors using Theme Studio

Tapping on the color mapped to the primary brush will open a color picker control, which displays a range of standard colors.

Customizing WinForms controls skin using Theme Studio

If you want to choose a different color, use the More Colors… option.

Choosing a different color to apply to WinForms Theme SkinThe chosen color from the More Colors… section is included in the Recent Colors section for quick access in the future.

Recent color listed in the color pickerA modification made to a color will enable the Reset button in the bottom of the left pane. The user can use it to reset the color changes made to the control’s skin for a fresh start.
Reset color button to start over customization

Exporting color changes as theme dll

After making the necessary changes to a color, the user can export it in library format (*.dll). Click Export in the bottom of the left pane. In the export dialog that appears, all the controls are showcased based on their category. The user can click Select All to select all the listed controls, or choose individual controls as required. The size of the output assembly is proportional to the number and size of the selected controls.

Exporting the appearance changes as theme assembly using Theme StudioChoosing the controls to which to apply the appearance changes.

Important Note: The name used for applying the theme to the control should be same as the one used for saving the theme library.

Applying a theme to Syncfusion WinForms controls

To apply a theme to Syncfusion Windows Forms controls:

  • Add a reference to the exported theme library in the application.
  • Load the assembly using the SkinManager.
  • Set the ThemeName property of the appropriate controls to the name of the theme.

Now, run the application and experience the control’s rich user interface.

The following code demonstrates the application of a custom theme to the DataGrid control.

//Load Theme assembly into application using SkinManager
SkinManager.LoadAssembly(typeof(CustomTheme).Assembly);
//Apply theme to SfDataGrid
this.sfDataGrid.ThemeName = "CustomTheme";

Custom Theme applied to SfDataGrid controlCustom theme applied to SfDataGrid control

If you wish to override any part of the theme applied, you can set the CanOverrideStyle property of the appropriate control to false. Now, use the built-in appearance API under the ThemeStyle property to provide the desired color. For SF series controls, use the Style property instead of ThemeStyle.

For instance, here I don’t want to adopt Cell BackColor from the applied custom theme in the DataGrid control.

sfDataGrid.Style.CellStyle.BackColor = Color.LightGray;
//Restrict adopting colors from applied custom theme assembly in SfDataGrid, which is customized.
sfDataGrid.CanOverrideStyle = false;
sfDataGrid.ThemeName = "CustomTheme";

What’s next?

For the Theme Studio for WinForms controls, we are planning to provide a couple of additional themes, along with a few more controls like menus, a pivot grid, and a spreadsheet. One of the additional themes planned is high contrast, in order to provide a rounded user experience.

Conclusion

If you are an existing customer, please download the new version of Essential Studio from the download page and try the Theme Studio for WinForms and its features for yourself. If you are a new customer, you can try our 30-day free trial to check out this new application.

Please post your queries in the comments section below. You can also contact us through our support forum or Direct-Trac.

 

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed