Back to Devexpress

UserLookAndFeel.SetSkinStyle(SkinSvgPalette) Method

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

latest3.0 KB
Original Source

UserLookAndFeel.SetSkinStyle(SkinSvgPalette) Method

Applies the specified skin and palette.

Namespace : DevExpress.LookAndFeel

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public void SetSkinStyle(
    SkinSvgPalette palette
)
vb
Public Sub SetSkinStyle(
    palette As SkinSvgPalette
)

Parameters

NameTypeDescription
paletteDevExpress.LookAndFeel.SkinSvgPalette

A SkinSvgPalette object specifying the skin and palette to apply.

|

Remarks

Using the palette parameter, you can apply a specific swatch to the vector skin.

csharp
this.LookAndFeel.SetSkinStyle(SkinSvgPalette.Bezier.LeafRustle);
vb
this.LookAndFeel.SetSkinStyle(SkinSvgPalette.Bezier.LeafRustle)

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetSkinStyle(SkinSvgPalette) 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-how-to-use-zoom-transition-effect/CS/dxSample/Program.cs#L18

csharp
WindowsFormsSettings.ForceDirectXPaint();
UserLookAndFeel.Default.SetSkinStyle(SkinSvgPalette.Office2019Colorful);
Application.EnableVisualStyles();

winforms-how-to-use-zoom-transition-effect/VB/dxSample/Program.vb#L16

vb
Call WindowsFormsSettings.ForceDirectXPaint()
UserLookAndFeel.Default.SetSkinStyle(SkinSvgPalette.Office2019Colorful)
Call Application.EnableVisualStyles()

See Also

WinForms Skins and Color Palettes

UserLookAndFeel Class

UserLookAndFeel Members

DevExpress.LookAndFeel Namespace