Back to Devexpress

StyleController Class

windowsforms-devexpress-dot-xtraeditors-fdf227f1.md

latest4.2 KB
Original Source

StyleController Class

Allows you to manage appearance settings and paint styles of multiple editors and controls in a centralized way. This component is deprecated.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public class StyleController :
    ComponentBase,
    ISupportInitialize,
    IStyleController
vb
Public Class StyleController
    Inherits ComponentBase
    Implements ISupportInitialize,
               IStyleController

Remarks

The StyleController component is deprecated.

See the following topics for information on how to manage the appearance settings of multiple controls:

Example

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

csharp
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;
vb
Imports DevExpress.XtraEditors

' Create and customize the Style Controller.
Dim styleController1 As StyleController = 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

Inheritance

Object MarshalByRefObject Component DevExpress.XtraEditors.ComponentBase StyleController

See Also

StyleController Members

Look and Feel

How to: Customize Look And Feel of All Controls within Application

How to: Customize Look And Feel of All Controls within Form

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

DevExpress.XtraEditors Namespace