Skip to main content
All docs
V23.2

ApplicationThemeHelper.Preload(PreloadCategories[]) Method

Preloads theme resources for the specified controls.

Namespace: DevExpress.Xpf.Core

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

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

Declaration

public static void Preload(
    params PreloadCategories[] preloadCategories
)

Parameters

Name Type Description
preloadCategories PreloadCategories[]

A collection of DevExpress WPF controls.

Remarks

The following code sample preloads Data Grid and Layout Control resources while the Splash Screen Manager is displayed:

using DevExpress.Xpf.Core;
using System.Windows;

public partial class App : Application {
    static App() {
        SplashScreenManager.CreateThemed().ShowOnStartup();
        ApplicationThemeHelper.Preload(() => new MyControl().Populate());
    }
}

Refer to the following help topic for more information: Preload Theme Resources.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Preload(PreloadCategories[]) method.

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.

See Also