Back to Devexpress

CompatibilitySettings.UseLightweightThemes Property

corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-6243c072.md

latest3.7 KB
Original Source

CompatibilitySettings.UseLightweightThemes Property

Gets or sets whether to use lightweight themes within the application.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Data.Desktop.v25.2.dll

NuGet Packages : DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

csharp
public static bool UseLightweightThemes { get; set; }
vb
Public Shared Property UseLightweightThemes As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to use lightweight themes within the application; otherwise, false.

|

Remarks

Refer to the following help topic for more information: Lightweight Themes.

The following code snippets (auto-collected from DevExpress Examples) contain references to the UseLightweightThemes 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.

wpf-themes-use-palette-resources-in-custom-controls/CS/DXSample/App.xaml.cs#L7

csharp
public App() {
    CompatibilitySettings.UseLightweightThemes = true;
}

wpf-pivot-grid-visualize-data-in-chart/CS/WpfPivotChart/App.xaml.cs#L15

csharp
static App() {
    CompatibilitySettings.UseLightweightThemes = true;

devexpress-ai-chat-samples/CS/DevExpress.AI.Samples.WPFBlazor/App.xaml.cs#L15

csharp
static App() {
    CompatibilitySettings.UseLightweightThemes = true;
    ApplicationThemeHelper.ApplicationThemeName = Theme.Win11Light.Name;

wpf-themes-use-palette-resources-in-custom-controls/VB/DXSample/App.xaml.vb#L10

vb
Public Sub New()
    CompatibilitySettings.UseLightweightThemes = True
End Sub

wpf-pivot-grid-visualize-data-in-chart/VB/WpfPivotChart/Application.xaml.vb#L9

vb
Shared Sub New()
    CompatibilitySettings.UseLightweightThemes = True

See Also

CompatibilitySettings Class

CompatibilitySettings Members

DevExpress.Xpf.Core Namespace