Edit this page

Themes

RadForm comes with a number of themes which can be easily applied by setting the ThemeName property. This topic demonstrates how to apply predefined themes.

Applying Themes to RadForm

TheĀ themes allow you to modify the look-and-feel of a RadForm instance by simply setting the ThemeName property.

This section shows how to apply the Office2007Black theme to a RadForm in the Visual Studio designer:

1. Add a RadForm item in your project or change the base class of an existing standard Windows Form to Telerik.WinControls.UI.RadForm.

forms-and-dialogs-form-themes 001

Changing WinForms form to Telerik RadForm

partial class Form1 : Telerik.WinControls.UI.RadForm

Partial Class Form1
    Inherits Telerik.WinControls.UI.RadForm

2. Open the Design View of the Form and open the Visual Studio Toolbox.

3. In the Visual Studio Toolbox find the Office2007BlackTheme component.

forms-and-dialogs-form-themes 002

4. Drag and drop the component onto your RadForm.

5. Open the Properties Window for the form and find the ThemeName property.

6. In order to apply the Office2007Black theme to RadForm, choose theĀ 'Office2007Black' option from the ThemeName drop-down:

forms-and-dialogs-form-themes 003

tip

You do not need to add multiple Theme Components on each form which you would like to customize. By adding one Theme Component on a form, the theme is loaded in the memory and it becomes available for all RadControls and RadForms in your project.

See Also