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:
- Set the control’s LookAndFeel.UseDefaultLookAndFeel property to false to ignore the default settings.
- 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.
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