We are looking to alter one of the standard themes, changing some of the details as well as the colours. Once complete, it will be necessary to make other themes that are the same but based on different colours.
I'm well aware of the usage of Visual Builder, so creating an initial theme is not a problem. I also have code that finds a theme in the currently loaded application, extracts all the images and alters the colours. I believe I can then create a clone of the theme and replace the images with the re-coloured versions, assuming the following code works
What I'm stuck with, is how to save the altered theme back to a tssp file.
Any help would be appreciated.
Thanks
Jason
I'm well aware of the usage of Visual Builder, so creating an initial theme is not a problem. I also have code that finds a theme in the currently loaded application, extracts all the images and alters the colours. I believe I can then create a clone of the theme and replace the images with the re-coloured versions, assuming the following code works
foreach
(Telerik.WinControls.StyleRepository repository
in
theme.Repositories)
{
if
(repository.ItemType ==
"Image"
)
{
foreach
(Telerik.WinControls.PropertySetting setting
in
repository.Settings)
{
if
(setting.Name ==
"Image"
)
{
Bitmap bmp = GetBitMap(repository.Key);
setting.Value = bmp
}
}
}
}
What I'm stuck with, is how to save the altered theme back to a tssp file.
Any help would be appreciated.
Thanks
Jason