Back to Devexpress

CompatibilitySettings.AllowThemePreload Property

corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-d42a1f4f.md

latest2.6 KB
Original Source

CompatibilitySettings.AllowThemePreload Property

Gets or sets whether to enable the legacy Theme Preload.

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 AllowThemePreload { get; set; }
vb
Public Shared Property AllowThemePreload As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to enable the legacy Theme Preload; otherwise, false.

|

Remarks

PreloadThemeResource and PreloadThemeResourceAsync methods execute the legacy theme preload mechanism.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowThemePreload 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-synchronous-theme-preload-with-splashscreen/CS/ThemePreloadwithSplashscreen/App.xaml.cs#L13

csharp
static App() {
    CompatibilitySettings.AllowThemePreload = true;
    PreloadThemes();

See Also

CompatibilitySettings Class

CompatibilitySettings Members

DevExpress.Xpf.Core Namespace