The requested page is not available for the requested platform. You are viewing the content for Default platform.

Creating and Opening Themes

  • 2 min to read

This topic describes how to create a theme in the Theme Editor.

The Theme Editor allows you to clone a built-in DevExpress theme and edit a copy, leaving the original theme unchanged.

Create a New Theme via Cloning

As an alternative to editing built-in themes, you can clone them and edit the copies. This allows you to apply your changes to only specific applications, while preserving the visual style of applications that use built-in themes.

Note

As opposed to the predefined themes, Theme Editor does not sign the newly created ones. If your application requires using strong-named assemblies, you should then sign the theme assembly manually.

To create a new theme from a built-in one, follow the steps below:

  1. Run Theme Editor. Open the File menu and click New.

    GettingStarted_NewThemeMenuItem

    The New Theme dialog will be displayed.

    GettingStarted_NewThemeDialog

  2. Specify a name for the new theme in the Name field.
  3. Select a DevExpress theme that should be cloned. Enter the path to the theme project file in the Base theme field, or click the Browse button to invoke the Open File dialog.

    Note

    DevExpress themes are located in the C:\Program Files (x86)\DevExpress 18.1\Components\Sources\DevExpress.Xpf.Themes\ directory.

  4. Specify a location where the new theme will be created. Enter the path to the desired directory in the Target location field, or click the Browse button to invoke the Browse for Folder dialog.

    Note

    The new theme will be created in the %TargetLocation%\DevExpress.Xpf.Themes.%ThemeName%\ directory.

  5. Click OK to close this dialog. Theme Editor will clone the specified theme and open the copy for edit. For further instructions, see Editing Themes.

To learn how to apply a newly created theme to a WPF application, see Applying Themes.