Category "blazor"

Blazor WebAssembly debug Program.cs

I've tried debugging in both vs code and vs.net 2019 and in both cases debugging everything bug Program.cs works. I'm trying to figure out why configuration isn

Blazor Animation - set div to display: none after animation ends

Recently I have implemented some animations but I am having some problems when the animation ends. I have a div structure for responsiveness, that shows a menu

How can I navigate from Blazor Page to Xaml page in .net Maui Blazor hybrid?

as the title says . if I have a .razor page and a xaml page and I want to navigate from razor to xaml and vice versa.

Blazor WASM doesn't hit breakpoint

I have a Blazor WASM Project with version 5 assemblies and tried to activate debugging according to this article: https://docs.microsoft.com/en-us/aspnet/core/b

Blazor WASM doesn't hit breakpoint

I have a Blazor WASM Project with version 5 assemblies and tried to activate debugging according to this article: https://docs.microsoft.com/en-us/aspnet/core/b

Blazor Cannot provide a value for property 'ScopeFactory' on type 'MyComponent' because the property has no setter

I'm writing Blazor WASM app in .NET 6. The app works as it should in Debug when running from Visual Studio 2022, but when I deploy it as a static site using dot

GRPC-Web + Blazor CORS Issue

I'm trying to create a Blazor WASM application that will call a GRPC gateway using grpc-web. The description of the Gateway Service is: syntax = "proto3"; impor

Blazor Server App MVVM-Pattern: Get notifyed in parent from child component change of App-State via a serviceclass in Startup.cs

I work on a Blazor-Server-App and try to follow MVVM pattern. My problem is, that I don't understand why a parentpage is not 'auto refreshed' after a property i

Blazor wait for ef core to finish request

So right now I get a Error: System.InvalidOperationException: A second operation was started on this context before a previous operation completed. Because bla

.Net Core Blazor How to pass multiple parameters?

Click the a TAB to pass multiple parameters. How to receive <a href="../navigatetopage?id="1"&key="img"></a> In the page you want to navigate

Blazor: How to use the onchange event in <select> when using @bind also?

I need to be able to run a function after a selection in made in a <select>. The issue is I'm also binding with @bind and I get a error when I try to use

C# Blazor: Countdown Timer

I'm new to C# and trying to create a simple countdown timer using System.Timer.Timers. It didn't work as expected and I searched the internet for a solution but

Embedding a Leaflet map on a Blazor SPA

How to Embed a Leaflet map on a Blazor SPA, using JSInterop, what objects should be defined, and how to pass data that represents the location clicked on the ma

Detecting navigation events blazor webassembly [closed]

How can I detect when URL is changed? I need the event (URL change event) to perform some specific action based on the URL.

In Blazor, how can I dynamically change an HTML tag?

Let's say I have the following markup in my Blazor component: <div @attributes=Attributes data-myattr="something"> @ChildContent </div> I'd lik

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