corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-6243c072.md
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
public static bool UseLightweightThemes { get; set; }
Public Shared Property UseLightweightThemes As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to use lightweight themes within the application; otherwise, false.
|
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
public App() {
CompatibilitySettings.UseLightweightThemes = true;
}
wpf-pivot-grid-visualize-data-in-chart/CS/WpfPivotChart/App.xaml.cs#L15
static App() {
CompatibilitySettings.UseLightweightThemes = true;
devexpress-ai-chat-samples/CS/DevExpress.AI.Samples.WPFBlazor/App.xaml.cs#L15
static App() {
CompatibilitySettings.UseLightweightThemes = true;
ApplicationThemeHelper.ApplicationThemeName = Theme.Win11Light.Name;
wpf-themes-use-palette-resources-in-custom-controls/VB/DXSample/App.xaml.vb#L10
Public Sub New()
CompatibilitySettings.UseLightweightThemes = True
End Sub
wpf-pivot-grid-visualize-data-in-chart/VB/WpfPivotChart/Application.xaml.vb#L9
Shared Sub New()
CompatibilitySettings.UseLightweightThemes = True
See Also