Skip to content

Using SplashScreen during startup? #3989

Answered by fkitsantas
fkitsantas asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out Blazr.RenderState on Routes.razor to be a more straightforward way to get the result I wanted.

@using Microsoft.FluentUI.AspNetCore.Components
@using Blazr.RenderState
@inject IBlazrRenderStateService RenderState

@if (RenderState.IsPreRender)
{
    <div style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);" >
        <FluentCard AreaRestricted="false" MinimalStyle="false">
            <FluentStack Orientation="Orientation.Vertical" HorizontalAlignment="HorizontalAlignment.Center">
                <img src="images/SplashScreen-logo.png" style="margin-bottom: 2.5rem;" />
                <FluentProgress Width="70%" />
                <FluentLabel Typo=…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fkitsantas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants