New to Telerik UI for WinForms? Download free 30-day trial

Load Themes from an External File

RadThemeManager cannot load the theme if it is saved as package (tssp file). This is shown in the following article: Using Custom Themes

Changing Themes at Run Time with Telerik UI for WinForms
In this video, you will learn how to give your users the ability to choose between Telerik themes and custom themes at run time. (Runtime: 08:42)
tools-visual-style-builder-adding-custom-themes-to-your-application-load-themes-from-an-external-file 003

Themes can be saved as XML files using the VisualStyleBuilder tool: Saving and Loading Theme Files To load a theme from an external file into a Theme Manager, follow these steps:

  1. Add a RadThemeManager control to your form.

  2. Select the RadThemeManager control, and then open its Smart Tag menu.

    tools-visual-style-builder-adding-custom-themes-to-your-application-load-themes-from-an-external-file 001

  3. Select Load Theme From File.

  4. Find your theme in the Open File dialog box, and then click Open.

    tools-visual-style-builder-adding-custom-themes-to-your-application-load-themes-from-an-external-file 002

If the form with the theme manager will be opened multiple time in the life cycle of the application, the theme manager needs to be diposed explicitly. A suitable place to call its Dispose method is the Closing event of the form.

It is up to you to choose a theme that makes sense for the controls on the form that you are customizing. Theme Manager does not check the theme to make sure that its customizations apply to the controls currently on the form.

See Also

In this article