[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Collapse]Editors and Simple Controls
   [Collapse]Simple Editors
    [Expand]Included Components
    [Expand]Editors Structure
    [Collapse]Editors Features
      Text Editing Overview
     [Expand]Input Mask
     [Expand]Format and Parse Editor Values
     [Expand]Editor Buttons
     [Expand]Dropdown Editors Overview
      Image Editing Menu
     [Expand]Data Binding Overview
     [Collapse]Appearance Customization
       Look And Feel and Skin Support
       Appearance Settings
       Style Controller
       Border and Button Styles
     [Expand]Miscellaneous Features
    [Expand]Member Tables
   [Expand]Lookup Editors
   [Expand]Token Edit Control
   [Expand]Breadcrumb Edit Control
   [Expand]Range Control
   [Expand]Image Slider
    Camera Control
    Templated ListBox Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Style Controller

The StyleController component allows you to manage the look and feel and Appearance Settings of multiple BaseControl descendants (including editors). Add a StyleController component to a form, modify the settings it exposes and then assign the StyleController to the BaseControl.StyleController properties of target controls.

Expanded Override the Style Controller's Appearance Settings for Individual Editors

By default, all editors bound to a StyleController use the same appearance settings exposed by the StyleController. Modify the appearance settings an editor exposes to override the default appearance settings.


To learn how to customize the look-and-feel settings of controls, see Look And Feel and Skinning.

Expanded Example

Assume that a style controller should provide common appearance and look and feel settings for a text editor, button editor and listbox control. The style controller is customized as follows:

Next, the style controller should be assigned to the controls. In the following image it is assigned to a text editor:

Now, if you run the application the controls will look like those displayed in the image below:

Suppose the text color in the text editor should be different than the common color exposed by the style controller. To do this you only need to set the text editor's Appearance.ForeColor property to the required value:

The final result of the customization is shown below. Note that the background color of a text editor is not affected by the modification of the editor's Appearance.ForeColor property. The background color is still retrieved from the style controller.

For detailed information on the Appearance mechanism refer to the Appearances document.

The following code is equivalent to the design-time customization actions illustrated above:

Expanded See Also

Is this topic helpful?​​​​​​​