Article directory
foreword
Our current mainstream pages are all single-page layouts, that is, one page has a sidebar, a header, a lower sidebar, and a central theme.
BootstrapBlazor UI, Blazor Server mode configuration
layout
custom layout
Inject LayoutComponentBase
@inherits LayoutComponentBase
<h1>我是EmptyLayout布局</h1>
<main> @Body</main>
@code {
}
default layout
Default layout is set in App.razro
Layout settings by adding @layout in Razor Pages file
@layout EmptyLayout//point to the EmptyLayout layout