Hello there,
I meet the following issue.. I've created a custom theme in Visual Style Builder and I am trying to apply it in runtime using the following line:
Telerik.WinControls.ThemeResolutionService.LoadPackageFile("C:/.../CustomTheme.tssp");
Telerik.WinControls.ThemeResolutionService.ApplicationThemeName = "CustomTheme";
The theme is being applied to most of the controls but not to all. I have solved this issue by subscribing to "Telerik.WinControls.ThemeResolutionService.ApplicationThemeChanged" event and there I reset manually the properties that are not being overridden by the theme.
But I guess that it's not necessary and I am doing something wrong.
I will give an example of my issue:
If I add a new RadButton to my Form and leave its Fill.BackColor to 'Transparent', then the theme is being applied properly in runtime. But if I change its BackColor from WinForms Designer, then the theme does not override its value and needs reset in ApplicationThemeChanged event with the method:
MyRadButton.ButtonElement.Fill.ResetValue(Telerik.WinControls.Primitives.FillPrimitive.BackColorProperty);
Any ideas?