Skip to main content
All docs
V25.1
  • ApplicationThemeHelper.Preload(PreloadCategories[]) Method

    Preloads theme resources for the specified controls.

    Namespace: DevExpress.Xpf.Core

    Assembly: DevExpress.Xpf.Core.v25.1.dll

    NuGet Package: DevExpress.Wpf.Core

    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