aspxthemebuilder-10810-getting-started-creating-a-new-theme.md
This tutorial will help you learn how to create a new theme based on a DevExpress theme, customize this new theme and save it for further use in your ASP.NET applications.
The tutorial contains the following steps.
In this lesson, you will create a custom theme based on the DevEx theme. You will customize the presentation of the ASPxNavBar control by making the following adjustments.
Run ASPxThemeBuilder (see the Launching the Theme Builder topic to learn more).
In the Name box, you can enter the name of a newly created theme. In this lesson, type MyDevExTheme.
In the Based on combo box, select a DevExpress theme to be the base for the new theme. In this lesson, leave it set to the DevEx theme.
In the Products check box list, select the DevExpress products to which the created theme should be applied. Click to clear the All check box and select just the Navigation and Layout Controls check box.
Click OK to close the dialog.
The DevEx theme will be cloned for the selected products. The cloned copy will be placed into a temporary directory. Later on, you can save the theme files into a custom location by using the Save or Save As… menu item and specifying the path you desire.
In the leftmost Control Navigator Pane of the opened application window, select the control whose appearance should be modified. Click ASPxNavBar. In the Control Preview Pane, you can see a preview for the control you are customizing.
To change the font of all group headers to bold, do the following.
Change the left and right paddings of a group header using the text editor of the CSS Rules Tab.
To change the expand/collapse button images, do the following.
Some control properties cannot be specified in a CSS, so you should set them in a skin.
To change a navigation bar item hover color, do the following.
You can see the result in the image below.
You can open a previously saved theme to modify it.
To open a custom theme, do one of the following.
As a result, the Open Theme dialog will be displayed.
Note
We recommend that you use ASPxThemeBuilder to open custom themes, but not shipped DevExpress themes. If you wish to slightly modify one of the predefined DevExpress themes, do not open it directly. Instead, create a new custom theme based on the desired DevExpress one, and then make required changes within this custom theme.
To learn how to create a theme assembly, follow the Generating a Custom Theme Assembly topic.
To learn how to apply the created theme assembly, follow the Using a Custom Theme Assembly topic.