corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-d42a1f4f.md
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
public static bool AllowThemePreload { get; set; }
Public Shared Property AllowThemePreload As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to enable the legacy Theme Preload; otherwise, false.
|
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
static App() {
CompatibilitySettings.AllowThemePreload = true;
PreloadThemes();
See Also