Back to Devexpress

UserLookAndFeel.Default Property

windowsforms-devexpress-dot-lookandfeel-dot-userlookandfeel-7a034bfe.md

latest7.2 KB
Original Source

UserLookAndFeel.Default Property

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

Declaration

csharp
public static UserLookAndFeel Default { get; }
vb
Public Shared ReadOnly Property [Default] As UserLookAndFeel

Property Value

TypeDescription
UserLookAndFeel

The Default LookAndFeel object.

|

Remarks

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.

winforms-generate-skin-palettes-with-ai/CS/DevExpress.AI.WinForms.AIGeneratePalette/UI/GeneratePaletteUIViewModel.cs#L113

csharp
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

csharp
ShowFormThreadData data = new ShowFormThreadData();
data.mainLookAndFeel = DevExpress.LookAndFeel.UserLookAndFeel.Default;
thread.Start(data);

winforms-overlay-form-display-custom-button/CS/ImageHelper.cs#L17

csharp
SvgBitmap svgBitmap = new SvgBitmap(data);
    return svgBitmap.Render(SvgPaletteHelper.GetSvgPalette(skinProvider ?? UserLookAndFeel.Default, ObjectState.Normal), ScaleUtils.GetScaleFactor().Height);
}

winforms-tokenedit-checked-tokens/CS/TokenEdit_Glyph_InEndOfToken/CustomTokenEdit/RepositoryItemCustomTokenEdit.cs#L28

csharp
protected virtual SkinElement GetCheckBoxImages() {
    Skin skin = EditorsSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default);
    SkinElement skinElement = skin["CheckBox"];

syntax-highlighting-for-c-and-vb-code-using-devexpress-codeparser-and-syntax-highlight-tokens/CS/SyntaxHighlightSimple/MainWindow.xaml.cs#L50

csharp
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

vb
Dim data As ShowFormThreadData = New ShowFormThreadData()
data.mainLookAndFeel = UserLookAndFeel.Default
thread.Start(data)

winforms-overlay-form-display-custom-button/VB/ImageHelper.vb#L14

vb
Dim svgBitmap As SvgBitmap = New SvgBitmap(data)
    Return svgBitmap.Render(SvgPaletteHelper.GetSvgPalette(If(skinProvider, UserLookAndFeel.Default), ObjectState.Normal), ScaleUtils.GetScaleFactor().Height)
End Function

syntax-highlighting-for-c-and-vb-code-using-devexpress-codeparser-and-syntax-highlight-tokens/VB/SyntaxHighlightSimple/MainWindow.xaml.vb#L54

vb
Me.syntaxEditor = syntaxEditor
    syntaxColors = New SyntaxColors(UserLookAndFeel.Default)
End Sub

reporting-winforms-label-report-in-code/VB/Reporting_how-to-create-a-label-report-at-runtime-t473792/Form1.vb#L33

vb
End If
    Call (New ReportDesignTool(labelReport)).ShowRibbonDesignerDialog(DevExpress.LookAndFeel.UserLookAndFeel.Default)
End Sub

rich-text-editor-highlight-syntax/VB/SyntaxHighlightApp/Form1.vb#L49

vb
Me.syntaxEditor = syntaxEditor
    syntaxColors = New SyntaxColors(UserLookAndFeel.Default)
End Sub

See Also

LookAndFeel.DefaultLookAndFeel

ParentLookAndFeel

UseDefaultLookAndFeel

WindowsFormsSettings.DefaultLookAndFeel

UserLookAndFeel Class

UserLookAndFeel Members

DevExpress.LookAndFeel Namespace