Skip to main content
A newer version of this page is available. .

StyleController Class

Provides centralized appearance and paint style management for editors and controls.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.1.dll

Declaration

[ToolboxBitmap(typeof(ToolboxIconsRootNS), "StyleController")]
[ToolboxTabName("DX.18.1: Components")]
public class StyleController :
    Component,
    ISupportInitialize,
    IStyleController

Remarks

The StyleController component allows you to manage the appearance and look-and-feel settings of multiple BaseControl descendants.

StyleController-Component.png

Customize the settings this component exposes and then assign it to the target controls using their BaseControl.StyleController properties.

StyleController-Component-applied-to-control.png

For more information see:

Example

The code below shows how to use the StyleController component to customize two editors’ look-and-feel settings.

CD_LookAndFeel_Example_StyleController_New

using DevExpress.XtraEditors;
// Create and customize the Style Controller.
StyleController styleController1 = new StyleController();
// Set the background color.
styleController1.Appearance.BackColor = Color.LightYellow;
// Customize the LookAndFeel settings.
styleController1.LookAndFeel.UseDefaultLookAndFeel = false;
styleController1.LookAndFeel.SkinName = "Office 2016 Colorful";
// Assign the StyleController to editors.
buttonEdit1.StyleController = styleController1;
lookUpEdit1.StyleController = styleController1;

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the StyleController class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also