Refactor rendering and add PDF resource

Removed `@rendermode="InteractiveAuto"` from `<HeadOutlet />` and `<Routes />` in `App.razor` to adjust rendering mode. Updated `EnvelopeReceiverPage_DxPdfViewer.razor` to use `DevExpress.Blazor.PdfViewer` instead of `DevExpress.Blazor`. Added `@using DevExpress.Blazor` to `_Imports.razor` for project-wide access to DevExpress components. Embedded `Resources\Invoice.pdf` in `EnvelopeGenerator.WebUI.csproj` and added the PDF file to the project.
This commit is contained in:
2026-06-22 10:44:34 +02:00
parent 030646f33d
commit 9a0837caa9
5 changed files with 8 additions and 3 deletions

View File

@@ -9,11 +9,11 @@
<link rel="stylesheet" href="css/app.css" />
<link rel="stylesheet" href="css/envelope-viewer.css" />
<link rel="stylesheet" href="EnvelopeGenerator.WebUI.styles.css" />
<HeadOutlet @rendermode="InteractiveAuto" />
<HeadOutlet />
</head>
<body>
<Routes @rendermode="InteractiveAuto" />
<Routes />
<script src="_content/DevExpress.Blazor.Resources/js/preload-script.js"></script>
<script src="js/typed.umd.js"></script>
<script src="js/receiver-signature.js?v=9"></script>

View File

@@ -1,8 +1,8 @@
@page "/envelope/DxPdfViewer"
@rendermode InteractiveServer
@using System.IO
@using DevExpress.Blazor
@using System.Reflection
@using DevExpress.Blazor.PdfViewer
<link href="_content/DevExpress.Blazor.Themes/blazing-berry.bs5.min.css" rel="stylesheet" />

View File

@@ -9,3 +9,4 @@
@using EnvelopeGenerator.WebUI
@using EnvelopeGenerator.WebUI.Client
@using EnvelopeGenerator.WebUI.Components
@using DevExpress.Blazor

View File

@@ -27,4 +27,8 @@
</Content>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Invoice.pdf" />
</ItemGroup>
</Project>