Back to Devexpress

ThemeProperties.AddFilePaths(String[]) Method

blazor-devexpress-dot-blazor-dot-themeproperties-dot-addfilepaths-x28-system-dot-string-x29.md

latest3.4 KB
Original Source

ThemeProperties.AddFilePaths(String[]) Method

Adds stylesheets to a theme and loads them when applying the theme.

Namespace : DevExpress.Blazor

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

NuGet Package : DevExpress.Blazor.Resources

Declaration

csharp
public void AddFilePaths(
    params string[] paths
)

Parameters

NameTypeDescription
pathsString[]

An array of CSS file paths.

|

Remarks

Refer to the ThemeProperties or ThemeFluentProperties class description for additional information and an example.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddFilePaths(String[]) 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.

blazor-editable-grid-with-expandoobject/CS/Expando/Services/DxThemes.cs#L19

csharp
public static void AddBootstrapTheme(ThemeProperties properties) {
    properties.AddFilePaths($"css/theme-bs.css");
}

blazor-grid-customize-group-summaries/CS/GroupSummaries/Services/DxThemes.cs#L19

csharp
public static void AddBootstrapTheme(ThemeProperties properties) {
    properties.AddFilePaths($"css/theme-bs.css");
}

blazor-use-devextreme-diagram/CS/DiagramBlazorApp/Services/DxThemes.cs#L19

csharp
public static void AddBootstrapTheme(ThemeProperties properties) {
    properties.AddFilePaths($"css/theme-bs.css");
}

blazor-grid-disable-selection-checkboxes-by-condition/CS/GridDisabledCheckboxes/Services/DxThemes.cs#L19

csharp
public static void AddBootstrapTheme(ThemeProperties properties) {
    properties.AddFilePaths($"css/theme-bs.css");
}

blazor-richedit-place-control-in-edit-form/CS/Services/DxThemes.cs#L22

csharp
{
    properties.AddFilePaths($"css/theme-bs.css");
}

See Also

ThemeProperties Class

ThemeProperties Members

DevExpress.Blazor Namespace