Create a Theme XML

5 posts, 0 answers
  1. Arul S V
    Arul S V avatar
    21 posts
    Member since:
    Mar 2010

    Posted 22 Jun 2010 Link to this post

    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
  2. Robert
    Robert avatar
    82 posts
    Member since:
    Jun 2009

    Posted 22 Jun 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Arul S V
    Arul S V avatar
    21 posts
    Member since:
    Mar 2010

    Posted 23 Jun 2010 Link to this post

    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.

  5. PRITESH
    PRITESH avatar
    1 posts
    Member since:
    Jul 2010

    Posted 03 Jul 2010 Link to this post

    What is the best event on the form to place these calls to set the themes?
  6. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 05 Jul 2010 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready