Back to Devexpress

UserLookAndFeel.SetSkinStyle(SkinStyle) Method

windowsforms-devexpress-dot-lookandfeel-dot-userlookandfeel-dot-setskinstyle-x28-devexpress-dot-lookandfeel-dot-skinstyle-x29.md

latest6.3 KB
Original Source

UserLookAndFeel.SetSkinStyle(SkinStyle) Method

Applies the desired DevExpress skin to the application.

Namespace : DevExpress.LookAndFeel

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public void SetSkinStyle(
    SkinStyle skinStyle
)
vb
Public Sub SetSkinStyle(
    skinStyle As SkinStyle
)

Parameters

NameTypeDescription
skinStyleDevExpress.LookAndFeel.SkinStyle

A static field of the DevExpress.LookAndFeel.SkinStyle class that specifies the skin name.

|

Remarks

The sample below illustrates how to apply the bonus “Blueprint” skin to the current form and all its controls.

csharp
this.LookAndFeel.SetSkinStyle(SkinStyle.Blueprint);
vb
Me.LookAndFeel.SetSkinStyle(SkinStyle.Blueprint)

The following code snippets (auto-collected from DevExpress Examples) contain references to the SetSkinStyle(SkinStyle) method.

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.

winforms-pivot-grid-display-kpi-graphics/CS/WindowsFormsApp_RegularDataSourceKPI/Program.cs#L13

csharp
static void Main() {
    UserLookAndFeel.Default.SetSkinStyle(SkinStyle.WXI);
    Application.EnableVisualStyles();

connect-winforms-grid-to-dotnetcore-service/CS/WinForms.Client/Program.cs#L15

csharp
WindowsFormsSettings.SetPerMonitorDpiAware();
WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXI);
Application.EnableVisualStyles();

connect-winforms-grid-to-webapi-service/CS/WinForms.Client/Program.cs#L12

csharp
WindowsFormsSettings.SetPerMonitorDpiAware();
WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXI);
Application.EnableVisualStyles();

connect-winforms-grid-to-dotnetcore-service-enable-editing/CS/WinForms.Client/Program.cs#L15

csharp
WindowsFormsSettings.SetPerMonitorDpiAware();
WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXI);
Application.EnableVisualStyles();

connect-winforms-grid-to-dotnetcore-service-enable-pbac/CS/WinForms.Client/Program.cs#L15

csharp
WindowsFormsSettings.SetPerMonitorDpiAware();
WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXI);
Application.EnableVisualStyles();

winforms-pivot-grid-display-kpi-graphics/VB/WindowsFormsApp_RegularDataSourceKPI/Program.vb#L14

vb
Sub Main()
    UserLookAndFeel.Default.SetSkinStyle(SkinStyle.WXI)
    Call Application.EnableVisualStyles()

connect-winforms-grid-to-dotnetcore-service/VB/WinForms.Client/Program.vb#L15

vb
Call WindowsFormsSettings.SetPerMonitorDpiAware()
WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXI)
Application.EnableVisualStyles()

connect-winforms-grid-to-dotnetcore-service-enable-editing/VB/WinForms.Client/Program.vb#L15

vb
Call WindowsFormsSettings.SetPerMonitorDpiAware()
WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXI)
Application.EnableVisualStyles()

connect-winforms-grid-to-backend-using-middletier-server/VB/WinForms.Client/Program.vb#L23

vb
Call WindowsFormsSettings.SetPerMonitorDpiAware()
WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXI)
Application.EnableVisualStyles()

winforms-reporting-add-ai-options-to-report-wizard/VB/Program.vb#L36

vb
Application.SetCompatibleTextRenderingDefault(False)
UserLookAndFeel.Default.SetSkinStyle(SkinStyle.WXI)
Call Application.Run(New CustomXRDesignRibbonForm())

See Also

UserLookAndFeel Class

UserLookAndFeel Members

DevExpress.LookAndFeel Namespace