Posted 6 November 2017, 9:30 am EST
I need to apply theme to the controls like ribbon, grid etc.However theme like “Office2007Silver” not rendering properly i.e. it is giving Blue color in ribbon. When visual style is used, the ribbon takes silver color.
The following code gives blue ribbon.
Dim themName As String = “Office2007Silver”
Dim theme As C1Theme = C1ThemeController.GetThemeByName(themName, False)
C1ThemeController.ApplyThemeToObject(C1Ribbon1, theme)
The following code gives silver ribbon.
C1Ribbon1.VisualStyle = C1.Win.C1Ribbon.VisualStyle.Office2007Silver