Category "blazor"

Why my program in blazor run so slow in my IDE?

I'm using blazor - components blazor, and visual studio community like IDE. And my program is so slow to run and build. Is normal?

Static styles.css issues after renaming Blazor project

If I start a Blazor server from scratch. Then right-click the project and click rename. All the namespaces change(EditedProjectName.Pages) but the using stateme

How to get access token in LeftNavigation in Shared folder that was returned through using AddMsalAuthentication in program.cs for authentication

In Blazor WASM, I want to display or hide some of the menu based on user roles. For that I need Access Token once user authenticate and I will pass that token t

Blazor WebAssembly InvalidCastException when running Published version on IIS

I have a Blazor WebAssembly application that works fine when debugging, but throws an exception when running on IIS (Published): blazor.webassembly.js:1 crit: M

Dark/light Theme Blazor

i have tied so many ways for switching Between Dark and Light Mode in Blazor.with different packages and Even Manually with css. but they never workedout For Me

toggle MudTable inline editing via an edit button

I am trying to get the mudtable to enter inline mode when you click on an icon. Currently it happens when you click on any row. <MudSwitch @bind-Checked="@ro

Why is my Blazor Server App waiting to render until data has been retrieved, even when using async?

I'm building a Blazor Server app using .NET 6. As an example I have a list of customers that I retrieve from a Sqlite db using Entityframework Core. I want to s

Blazor Attempting to reconnect - use web assembly, or...?

I am being plagued with the dreaded "Attempting to reconnect" message. The problem only occurs when the application is published on Azure, never when run locall

Exception: '<' is an invalid start of a value

I have a Blazor Webassembly project with a controller method as follows: [HttpGet] public async Task<List<string>> GetStatesForProfile() {

How to reset custom validation errors when using editform in blazor razor page

I have an editform using an editcontext: <EditForm OnValidSubmit="HandleValidSubmit" EditContext="_editContext" Context="auth"> <DataAnnotat

Blazor.ChartJs Mouse Click Handler not working correctly

I am writing a Blazor app using the ChartJs Blazor (Blazor.ChartJs.Fork 2.0.2) library. I am creating a bar chart with a need to determine on which bar the user

AutoMapper .NET6 C#10 Blazor WASM PWA

I had a problem that the AutoMapper worked in .NET5 with in Program.cs -> services.AddAutoMapper(typeof(Startup)); New Blazored WASM PWA do not have a Startu

Blazor Re-Ordering A list With Drag And Drop

I am learning Blazor having come from a WinForm UWP background. I have a list of Game: public class Game { public string ID { get; set; } public string

Blazor server not scaling (zoomed) on mobile

I made a small sensor application in Blazor server. However, when I view the app on my phone, it shows these scrolling bars (I always need to pinch/zoom out my

Best way to use multiple awaits C# .NET Blazor

In a Blazor app I have a file uploader that can take multiple files. When the user clicked 'upload' I used something like this: private async Task HandleFileUpl

How to load .gltf in a Blazor application

I am trying to load .gltf model using three.js into my Blazor application. However the server does not serve this type of files. I am aware that MIME type m

add class to element on hover in blazor

Note I can't just use CSS :hover because I'll also need to modify the class property on these elements based on keydown on a different element, and even if the

Is there a way to alter ChildContent in Blazor

I'd like to alter ChildContent my component receives from the parent like this: <Markdown> # Title Some _Content_ </Markdown> To interpret t

Embed JavaScript files inside a .NET class library for Blazor project

I'm working on a Blazor project and I'm trying to move one of the JavaScript files to a class library, I've read the following guides: https://docs.microsoft.co

Call method in MainLayout from a page component in Blazor

I have a Blazor app with a MainLayout page, which has a @Body to load the actual page content. In my case Index.razor is loaded inside the MainLayout page. Is