Skip to main content
A newer version of this page is available. .

Theme.CreateTheme(ThemePaletteBase, Theme, String, String, String, Uri, Uri, Uri) Method

Creates a new Theme with the specified settings.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v19.2.dll

Declaration

public static Theme CreateTheme(
    ThemePaletteBase palette,
    Theme baseTheme,
    string themeName = null,
    string fullThemeName = null,
    string category = null,
    Uri smallGlyph = null,
    Uri largeGlyph = null,
    Uri svgGlyph = null
)

Parameters

Name Type Description
palette ThemePaletteBase

A ThemePaletteBase that specifies the palette.

baseTheme Theme

A Theme that specifies the base theme.

Optional Parameters

Name Type Default Description
themeName String *null*

A String that specifies the theme name.

fullThemeName String *null*

A String that specifies the theme full name.

category String *null*

A String that specifies the name of the theme category.

smallGlyph Uri *null*

A Uri that specifies the uniform resource identifier of the theme small icon.

largeGlyph Uri *null*

A Uri that specifies the uniform resource identifier of the theme large icon.

svgGlyph Uri *null*

A Uri that specifies the uniform resource identifier of the theme vector (SVG) icon.

Returns

Type Description
Theme

A Theme that specifies the new theme.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateTheme(ThemePaletteBase, Theme, String, String, String, Uri, Uri, Uri) 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