Skip to main content
All docs
V24.1

DxResourceManager Class

Contains methods that allow you to register DevExpress resources.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public static class DxResourceManager

Remarks

When you create a Blazor application on .NET 8 or .NET 9 with a Microsoft Template, call the DxResourceManager.RegisterScripts method in the Components/App.razor file to register scripts required by DevExpress components.

@using Microsoft.AspNetCore.Mvc.ViewFeatures
@inject IFileVersionProvider FileVersionProvider

<head>
    @*...*@
    <link @AppendVersion("_content/DevExpress.Blazor.Themes/blazing-berry.bs5.css") rel="stylesheet" />
    @DxResourceManager.RegisterScripts()
    @*...*@
</head>

@* .NET 8 and .NET 9 *@
@code {
    private string AppendVersion(string path) => FileVersionProvider.AddFileVersionToPath("/", path);
}
@* .NET 6 *@
@{
    string AppendVersion(string path) => FileVersionProvider.AddFileVersionToPath("/", path);
}

Inheritance

Object
DxResourceManager
See Also