Skip to content

Commit e324839

Browse files
fix theme adding
1 parent 6c240dd commit e324839

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

CS/GridExportingWithReports/App.razor

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
<head>
2-
@DxResourceManager.RegisterTheme(Themes.Fluent)
3-
</head>
4-
<Router AppAssembly="@typeof(Program).Assembly">
1+
<Router AppAssembly="@typeof(Program).Assembly">
52
<Found Context="routeData">
63
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
74
</Found>

CS/GridExportingWithReports/Pages/_Layout.cshtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@using Microsoft.AspNetCore.Components.Web
2+
@using DevExpress.Blazor
23
@namespace GridExportingWithReports.Pages
34
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
45

@@ -8,8 +9,11 @@
89
<meta charset="utf-8" />
910
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1011
<base href="~/" />
12+
13+
@foreach(var file in Themes.Fluent.GetFilePaths()) {
14+
<link href="@file" rel="stylesheet" />
15+
}
1116
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
12-
1317
<link href="~/css/site.css" rel="stylesheet" />
1418
<link href="GridExportingWithReports.styles.css" rel="stylesheet" />
1519
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />

0 commit comments

Comments
 (0)