This is a migrated thread and some comments may be shown as answers.

Create a Theme XML

4 Answers 248 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Arul S V
Top achievements
Rank 1
Arul S V asked on 22 Jun 2010, 10:50 AM
Telerik Team:

How to create a single custom xml theme file for the following

1. Desert
2. Office 2010
3. Vista

Note: Now themes are creating a seperate xml file for an each controls.

I want all the controls theme in the single xml file. I am using "RadControls for WinForms Q1 2010 SP2".

Reply asp. Very urgent.

Thanks

4 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 22 Jun 2010, 06:51 PM
Hello Arul S V,

The latest version of Visual Style Builder actually includes an option that allows you to save several XML files as a single package (see attached screenshot). Once doing so, you can easily load this package into you application using the ThemeResolutionService.

ThemeResolutionService.LoadPackageFile("Desert.tssp"); 
ThemeResolutionService.ApplicationThemeName = "Desert"

- Robert
0
Arul S V
Top achievements
Rank 1
answered on 23 Jun 2010, 08:41 AM

Thanks for your reply.

Customer wants in the xml file format. Where they can edit the theme without VSB.

Any way i wrote a piece of code which will be converting all my xml theme files into a single xml theme file.

Format:-

 

 

 

 

<?xml version="1.0" encoding="utf-8"?>
<XmlTheme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ThemeName="AliasDesert" ThemeVersion="2.0"> 

<StyleRepository>
 <RepositoryItems>
 </RepositoryItems>
</StyleRepository>
<BuilderRegistrations>
 <XmlStyleBuilderRegistration> RadTextBox
 </XmlStyleBuilderRegistration>
 <XmlStyleBuilderRegistration> RadButton
 </XmlStyleBuilderRegistration>
</BuilderRegistrations>
</XmlTheme> 

 

 

 

 

 

 

Thanks.

0
PRITESH
Top achievements
Rank 1
answered on 03 Jul 2010, 11:36 PM
What is the best event on the form to place these calls to set the themes?
0
Vassil Petev
Telerik team
answered on 05 Jul 2010, 07:51 AM
Hi PRITESH,

Please, review the provided documentation for the answers to your questions. The online version can be located here: Visual Style Builder Overview


Best wishes,
Vassil
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Themes and Visual Style Builder
Asked by
Arul S V
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Arul S V
Top achievements
Rank 1
PRITESH
Top achievements
Rank 1
Vassil Petev
Telerik team
Share this question
or