Skip to main content
All docs
V25.1
  • LightweightTheme.Create(String, String, LightweightThemeAssembly, Func<LightweightTheme, ResourceDictionary>) Method

    Creates a new lightweight theme.

    Namespace: DevExpress.Xpf.Core

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

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    public static LightweightTheme Create(
        string name,
        string categoryName,
        LightweightThemeAssembly assembly,
        Func<LightweightTheme, ResourceDictionary> createPalette
    )

    Parameters

    Name Type Description
    name String

    The new theme name.

    categoryName String

    The new theme category name.

    assembly LightweightThemeAssembly

    The new theme assembly.

    createPalette Func<LightweightTheme, ResourceDictionary>

    The method that creates a color palette.

    Returns

    Type Description
    LightweightTheme

    The new lightweight theme.

    See Also