Posted 6 October 2020, 10:29 am EST
I like to apply theme only to the docking tab, not the grids. Is this possible? The examples seem to apply to the entire application.
Thanks,
Hai
Forums Home / ComponentOne / WinForms Edition
Posted by: hdle on 6 October 2020, 10:29 am EST
Posted 6 October 2020, 10:29 am EST
I like to apply theme only to the docking tab, not the grids. Is this possible? The examples seem to apply to the entire application.
Thanks,
Hai
Posted 6 October 2020, 10:31 am EST
Actually, I also like to change the scrollbar style of the grid, but not the grid style itself. This is because I have different grids with different styles in use.
Posted 7 October 2020, 4:35 am EST
Hello Hai,
>>I like to apply theme only to the docking tab, not the grids. Is this possible?
You can apply the Theme to the specific control as shown in the below given code:
string theme = C1ThemeController.RegisterTheme("NewTheme.c1themez");
C1ThemeController.ApplyThemeToObject(ControlName, C1ThemeController.GetThemeByName(theme, true));
>>Actually, I also like to change the scrollbar style of the grid, but not the grid style itself.
This has been replied on the given link:
https://www.grapecity.com/forums/winforms-edition/c1flexgrid-scrollbar-style_1#helloplease-know-that-to-m
If you still face any issue then please share a stripped-down sample replicating the issue so that we can assist you accordingly.
Regards,
Prabhat Sharma.