Posted 29 April 2022, 10:02 am EST
They have a library that allows you to easily change the styles of all the controls (design and color)
Forums Home / ComponentOne / WinForms Edition
Posted by: ismayorgav on 29 April 2022, 10:02 am EST
Posted 29 April 2022, 10:02 am EST
They have a library that allows you to easily change the styles of all the controls (design and color)
Posted 1 May 2022, 3:20 pm EST
Hi,
As per our understanding, you want to customize the design and colors of the ComponentOne WinForms controls. The C1 WinForms edition comes with a library C1.Win.C1Themes that has a control called C1ThemeController that you can use to easily apply and change the Themes on the C1 controls. Please refer to the link below for information related to C1Themes.
https://www.grapecity.com/componentone/docs/win/online-themes/overview.html
You can also use the C1ThemeDesigner application to easily design custom themes for your application according to your requirements. You can find the application at the location [b]C:\Program Files (x86)\ComponentOne\Apps\vX.X.X[/b] in your system. You can refer to the link below for information on the C1ThemeDesigner application.
https://www.grapecity.com/componentone/docs/win/online-themes/ThemeDesignerAppOverView.html
Please let us know if you meant something else or if you need any other information.
Kind Regards,
Kartik
Posted 2 May 2022, 1:15 am EST
Thank you very much for your answer, by any chance do you have a tutorial on how to implement it?
Posted 3 May 2022, 4:18 pm EST
Hi,
We have created a sample showing a simple implementation of the C1ThemeController which includes a CustomTheme created using the C1ThemeDesigner application in addition to the built-in themes. Please refer to the attached sample (ThemesSample.zip). You can also refer to the C1Themes product samples at location [b]\Documents\ComponentOne Samples\WinForms\v4.5.2\Themes[/b] in your system.
Please refer to the documentation link below which is a quick-start guide for using the C1Themes in your application.
https://www.grapecity.com/componentone/docs/win/online-themes/QuickStartIntro.html
Kind Regards,
Kartik
Posted 4 May 2022, 11:31 pm EST
Ok, thank you very much for the information
Posted 5 May 2022, 1:15 am EST
one last question, the only way to change the themes is with the c1ThemeController? Or is there a way to do it by code and apply it to all ComponentOne controls?
Posted 5 May 2022, 3:25 pm EST
Hi,
The only way to apply and change themes is using a C1ThemeController. If you want to change the themes through code, you can easily use the available properties and methods in the C1ThemeController. Please refer to the attached sample showing the same.
Kind Regards,
Kartik