Back to Devexpress

UserLookAndFeel.SkinName Property

windowsforms-devexpress-dot-lookandfeel-dot-userlookandfeel-0a9bde5b.md

latest6.5 KB
Original Source

UserLookAndFeel.SkinName Property

Gets or sets the name of a skin style.

Namespace : DevExpress.LookAndFeel

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DefaultValue("Basic")]
[DXCategory("Appearance")]
public virtual string SkinName { get; set; }
vb
<DefaultValue("Basic")>
<DXCategory("Appearance")>
Public Overridable Property SkinName As String

Property Value

TypeDefaultDescription
String"Basic"

A string value specifying the skin style’s name.

|

Remarks

Use the SkinName property to specify which skin style should be used to paint the controls.

See galleries in the Skins article for skin names.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SkinName property.

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.

how-to-keep-a-look-and-feel-of-windows-forms-in-sync-e2243/CS/ThreadedSkinning/Form1.cs#L18

csharp
comboBoxEdit1.EditValue = DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName;
foreach(DevExpress.Skins.SkinContainer cnt in DevExpress.Skins.SkinManager.Default.Skins) {

how-to-save-a-current-skin-name-and-restore-it-at-the-next-application-run-e2897/CS/WindowsApplication1/Form1.cs#L21

csharp
SkinHelper.InitSkinGallery(galleryControl1);
    UserLookAndFeel.Default.SkinName = Settings.Default["ApplicationSkinName"].ToString();
}

winforms-filter-lookup-column-based-on-another-lookup-column/CS/DxSample/Program.cs#L20

csharp
SkinManager.EnableFormSkins();
UserLookAndFeel.Default.SkinName = "Seven Classic";
Application.Run(new MainForm());

winforms-save-restore-active-skin-palette/CS/DXApplication1/Form1.cs#L36

csharp
var settings = Properties.Settings.Default;
settings.SkinName = UserLookAndFeel.Default.SkinName;
settings.Palette = UserLookAndFeel.Default.ActiveSvgPaletteName;

winforms-dashboard-viewer-tab-navigation-buttons-tab-animation/CS/DashboardNextPrevTab/Program.cs#L11

csharp
static void Main() {
    DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = "The Bezier";
    Application.EnableVisualStyles();

how-to-keep-a-look-and-feel-of-windows-forms-in-sync-e2243/VB/ThreadedSkinning/Form1.vb#L15

vb
InitializeComponent()
comboBoxEdit1.EditValue = UserLookAndFeel.Default.SkinName
For Each cnt As DevExpress.Skins.SkinContainer In DevExpress.Skins.SkinManager.Default.Skins

how-to-save-a-current-skin-name-and-restore-it-at-the-next-application-run-e2897/VB/WindowsApplication1/Form1.vb#L17

vb
Call SkinHelper.InitSkinGallery(galleryControl1)
    UserLookAndFeel.Default.SkinName = Settings.Default(CStr("ApplicationSkinName")).ToString()
End Sub

winforms-filter-lookup-column-based-on-another-lookup-column/VB/DxSample/Program.vb#L24

vb
SkinManager.EnableFormSkins()
UserLookAndFeel.Default.SkinName = "Seven Classic"
Application.Run(New MainForm())

winforms-save-restore-active-skin-palette/VB/DXApplication1/Form1.vb#L31

vb
Dim settings = Properties.Settings.Default
settings.SkinName = UserLookAndFeel.Default.SkinName
settings.Palette = UserLookAndFeel.Default.ActiveSvgPaletteName

winforms-dashboard-viewer-tab-navigation-buttons-tab-animation/VB/DashboardNextPrevTab/Program.vb#L13

vb
Sub Main()
    DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = "The Bezier"
    Call Application.EnableVisualStyles()

See Also

WinForms Skins and Color Palettes

Create a Custom Skin Selector

UserLookAndFeel Class

UserLookAndFeel Members

DevExpress.LookAndFeel Namespace