Skip to main content

How to: Customize Look And Feel of Specific Control(s)

DevExpress controls are rendered using the global look-and-feel settings the static Default LookAndFeel object exposes. This allows you to apply the same paint scheme to all forms in your application.

You can use a control’s LookAndFeel property to override the default look-and-feel settings:

  1. Set the control’s LookAndFeel.UseDefaultLookAndFeel property to false to ignore the default settings.
  2. Customize the control’s LookAndFeel settings as required.

The following code applies the “Seven Classic” skin to a ButtonEdit control:

// Disable the default look-and-feel settings.
buttonEdit1.Properties.LookAndFeel.UseDefaultLookAndFeel = false;
// Specify the skin.
buttonEdit1.Properties.LookAndFeel.SkinName = "Seven Classic";

The result is illustrated below.

CD_LookAndFeel_Example_ButtonEdit_Skin

Tip

The BaseEdit descendants expose the look-and-feel settings with the RepositoryItem.LookAndFeel property (it is available from Editor.Properties.LookAndFeel for standalone editors). Other controls allow you to access these settings with the Control.LookAndFeel property.

See Also