DxTheme(String, List<String>) Constructor
Initializes a new instance of the DxTheme class with specified settings.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public DxTheme(
string name,
List<string> paths
)
Parameters
Name | Type | Description |
---|---|---|
name | String | 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:
<head>
@*...*@
@DxResourceManager.RegisterTheme(customTheme)
</head>
@code{
ITheme customTheme = new DxTheme("MyCustomTheme", ["css/theme.css", "css/theme-color.css"]);
}
See Also