windowsforms-devexpress-dot-lookandfeel-dot-userlookandfeel-7a034bfe.md
Gets the Default LookAndFeel object to use for controls when the UserLookAndFeel.UseDefaultLookAndFeel property is set to true.
Namespace : DevExpress.LookAndFeel
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public static UserLookAndFeel Default { get; }
Public Shared ReadOnly Property [Default] As UserLookAndFeel
| Type | Description |
|---|---|
| UserLookAndFeel |
The Default LookAndFeel object.
|
A Default LookAndFeel object applies when the UserLookAndFeel.UseDefaultLookAndFeel property is set to true and the UserLookAndFeel.ParentLookAndFeel property is set to null.
We do not recommend that you manually change controls’ LookAndFeel settings. To select an active skin, use the Project Settings Page instead.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Default 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.
return;
var commonSkin = CommonSkins.GetSkin(UserLookAndFeel.Default);
const string aiPaletteNameBase = "AI Custom Palette";
how-to-keep-a-look-and-feel-of-windows-forms-in-sync-e2243/CS/ThreadedSkinning/Form1.cs#L37
ShowFormThreadData data = new ShowFormThreadData();
data.mainLookAndFeel = DevExpress.LookAndFeel.UserLookAndFeel.Default;
thread.Start(data);
winforms-overlay-form-display-custom-button/CS/ImageHelper.cs#L17
SvgBitmap svgBitmap = new SvgBitmap(data);
return svgBitmap.Render(SvgPaletteHelper.GetSvgPalette(skinProvider ?? UserLookAndFeel.Default, ObjectState.Normal), ScaleUtils.GetScaleFactor().Height);
}
protected virtual SkinElement GetCheckBoxImages() {
Skin skin = EditorsSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default);
SkinElement skinElement = skin["CheckBox"];
this.syntaxEditor = syntaxEditor;
syntaxColors = new SyntaxColors(UserLookAndFeel.Default);
how-to-keep-a-look-and-feel-of-windows-forms-in-sync-e2243/VB/ThreadedSkinning/Form1.vb#L36
Dim data As ShowFormThreadData = New ShowFormThreadData()
data.mainLookAndFeel = UserLookAndFeel.Default
thread.Start(data)
winforms-overlay-form-display-custom-button/VB/ImageHelper.vb#L14
Dim svgBitmap As SvgBitmap = New SvgBitmap(data)
Return svgBitmap.Render(SvgPaletteHelper.GetSvgPalette(If(skinProvider, UserLookAndFeel.Default), ObjectState.Normal), ScaleUtils.GetScaleFactor().Height)
End Function
Me.syntaxEditor = syntaxEditor
syntaxColors = New SyntaxColors(UserLookAndFeel.Default)
End Sub
End If
Call (New ReportDesignTool(labelReport)).ShowRibbonDesignerDialog(DevExpress.LookAndFeel.UserLookAndFeel.Default)
End Sub
rich-text-editor-highlight-syntax/VB/SyntaxHighlightApp/Form1.vb#L49
Me.syntaxEditor = syntaxEditor
syntaxColors = New SyntaxColors(UserLookAndFeel.Default)
End Sub
See Also
LookAndFeel.DefaultLookAndFeel