ApplicationThemeHelper.Preload(PreloadCategories[]) Method
Preloads theme resources for the specified controls.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
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.
Related GitHub Examples
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.