Skip to main content

SkinManager.Default Property

Provides access to the default skin manager.

Namespace: DevExpress.Skins

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public static SkinManager Default { get; }

Property Value

Type Description
SkinManager

A SkinManager object that represents the default skin manager.

Example

The following code shows how to populate a combo box editor with names of available skins. When a specific item is selected from the editor’s dropdown, the corresponding skin is applied to controls.

To get the available skin names, the SkinManager.Skins property is used.

In this example, the selected skin is applied via the DefaultLookAndFeel object. It specifies look and feel settings used by all Developer Express controls and forms by default.

using DevExpress.XtraEditors;
using DevExpress.Skins;

// Handle the SelectedIndexChanged event to respond to selecting the skin name.
comboBoxEdit1.SelectedIndexChanged += new EventHandler(comboBoxEdit1_SelectedIndexChanged);
// Add available skin names to the combo box.
foreach(SkinContainer cnt in SkinManager.Default.Skins) {
    comboBoxEdit1.Properties.Items.Add(cnt.SkinName);
}

//...

void comboBoxEdit1_SelectedIndexChanged(object sender, EventArgs e) {
    ComboBoxEdit comboBox = sender as ComboBoxEdit;
    string skinName = comboBox.Text;
    DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = skinName;
}
See Also