Skip to main content
A newer version of this page is available. .

Attach a Custom Theme Assembly

To apply a theme from a custom theme assembly created with the ASPxThemeBuilder tool, you will need to reference the assembly within your project.

  • In the Solution Explorer window, right click the site’s References folder and click Add Reference…

    Web Forms_Themes_AddReference

  • Click the Browse… button, select the required theme assembly, and click Add.

    MVC_Browse_Reference

    This adds the assembly to the project’s References folder. Set this assembly’s Copy Local property value to true - to copy this assembly to the web server when deploying.

  • Assign the assembly name to the customThemeAssemblies option in the devExpress web.config section.

    <devExpress>
         <themes customThemeAssemblies="MyThemeAssembly" ... />
         ...
    </devExpress>
    

You can now apply the custom theme to your project .

Note

A custom theme assembly’s version (major and minor versions) should match other DevExpress assemblies used within the project. If the version is different, upgrade the theme assembly’s source code, rebuild the assembly, and upgrade corresponding references in the target application. See the following topic for more information: How to Update a Custom Theme to a Newer Version.

See Also