Back to Devexpress

DxTheme(String, List<String>) Constructor

blazor-devexpress-dot-blazor-dot-dxtheme-dot-ctor-x28-system-dot-string-system-dot-collections-dot-generic-dot-list-system-dot-string-x29.md

latest1.5 KB
Original Source

DxTheme(String, List<String>) Constructor

Initializes a new instance of the DxTheme class with specified settings.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.Resources.v25.2.dll

NuGet Package : DevExpress.Blazor.Resources

Declaration

csharp
public DxTheme(
    string name,
    List<string> paths
)

Parameters

NameTypeDescription
nameString

Specifies the theme name that serves as a unique theme identifier.

| | paths | List<String> |

Specifies theme stylesheet paths.

|

Remarks

You can create and register a custom theme using the DxTheme constructor and a RegisterTheme(ITheme) method call:

razor
<head>
    @*...*@
    @DxResourceManager.RegisterTheme(customTheme)
</head>
@code{
    ITheme customTheme = new DxTheme("MyCustomTheme", ["css/theme.css", "css/theme-color.css"]);
}

See Also

DxTheme Class

DxTheme Members

DevExpress.Blazor Namespace