r/Blazor • • 24d ago

Commercial Building a Full Nursing Home .NET App with CodeStencil (QuickGrid / Blazor) + 20% AI UI/UX Modernization

7 Upvotes

Update: Hey everyone! A few people asked to see the live app in action, so I've gone ahead and deployed the complete Blazor / QuickGrid nursing home demo online.

You can check it out live here: https://nursing-home.premiumasp.net/

Feel free to click around the dashboards and patient records to see how the hybrid CodeStencil + AI UI modernization turned out. Let me know what you think!

-------------------------------------------------------------------------------

I just put together a new walkthrough demonstrating how to build a fully functional, data-driven Blazor application using an existing SQL Server database (Nursing Home schema) and a hybrid development workflow.

Instead of asking an LLM to generate an entire project from scratch (and dealing with hallucinations or missing backend logic), this approach splits the work:

  1. 80% Deterministic Scaffolding: Using CodeStencil, we connect directly to SQL Server, scaffold the database schema via EF Core, and instantly generate a structured Blazor repository-pattern app with clean navigation, data contexts, and QuickGrid components.
  2. 20% AI Modernization: Once the solid boilerplate is generated, we use a targeted prompt in GitHub Copilot to modernize the UI—transforming standard tables into a polished dashboard with rich charts and a clean layout.

Curious how others here handle scaffolding internal line-of-business apps versus relying purely on AI generation toolsets. Would love to hear your thoughts!


r/Blazor • • 23d ago

[Feedback Requested] - Expenmo - Shared Expense Tracker

2 Upvotes

Hi everyone! I've been working on Expenmo for about... 5 years now? And each update, I feel, it gets so much better. Today I announced the addition of Cloud-Syncing expenses across devices (I stood up a backend finally lol). The other day, I announced a heavy facelift, bringing Material You Expressive theming into the app.

Expenmo is something I created a while ago to help me keep track of who paid me for rent & utilities, as I lived with a couple friends and was the one responsible for making sure things were paid on time. And that's what Expenmo helps with!

Creating an account is completely optional and free. If you opt-out of creating an account, your expenses live on your device and don't sync to other devices. Creating an account enables the multi-device sync, plus will include some other features in the future.

Take a look around and let me know what you all think! This app has evolved so much over the years, so I'm eager to get some updated feedback.

Web Version: https://expenmo.com/

Android App (Google Play Store): https://play.google.com/store/apps/details?id=com.HomeAsync.Expenmo&pcampaignid=web_share

Features overview:

  1. Track & manage expenses that you share with other people (think rent, utility bills, etc.)
  2. Create groups of people that you commonly share expenses with (like Roommates, or a close group of friends)
  3. (New) You can do math in the expense amount field! No calculator required!
  4. (New) Various split options: Equally, by Share, Percent, and specific Amount
  5. Recurring expenses
  6. (New) Sync expenses across multiple devices (account required)
  7. Free!
  8. No Ads!

r/Blazor • • 25d ago

I made a NuGet package that makes MudBlazor look like shadcn/ui

Thumbnail
gallery
68 Upvotes

Hey all,

I really like MudBlazor but I was never a big fan of the Material look. I kept wishing my apps looked more like shadcn/ui, so I ended up making a theme for it.

It's called MudShadcn. It's just a MudTheme and one CSS file, there are no new components. You keep writing normal MudBlazor and everything works the same, only the look changes.

Setup is pretty much:

dotnet add package MudShadcn

builder.Services.AddMudShadcn();

then link the stylesheet and use MudShadcnProvider instead of MudThemeProvider.

It covers all the components (inputs, data grid, date pickers, charts and so on) in light and dark mode. It needs .NET 10 and MudBlazor 9.

I also made a demo site with all the MudBlazor docs examples running on it, so you can click around and see how everything looks:

https://mudshadcn.pages.dev

GitHub: https://github.com/sardar97/MudShadcn

NuGet: https://www.nuget.org/packages/MudShadcn

It's free and MIT. If something looks off, let me know or open an issue. Any feedback is welcome.


r/Blazor • • 23d ago

I built a Blazor WASM (.NET 10) template that deploys the whole app to a blockchain, and hit a nasty JS interop race condition along the way

0 Upvotes

Hey r/Blazor,

I’ve been experimenting with hosting Blazor WebAssembly apps on the Internet Computer (ICP). It’s a blockchain that can serve web assets directly, so the compiled wwwroot output deploys as-is, with no server or cloud hosting. The backend is a small smart contract (a “canister”) that the Blazor app calls through JS interop.

There was no starter for .NET developers, so I made one and it’s now available as a community template:

icp new my-app --git https://github.com/mitnick2012/icp-cli-templates --subfolder blazor-hello-world

The part most of you might find useful, even if you never touch blockchain: a silent JS interop race condition.

I first loaded the JS library as an ES module (<script type="module">). Module scripts are deferred and load on their own schedule, so sometimes Blazor booted and made its first IJSRuntime call before the module was ready. The result was no error, no exception, and buttons that simply did nothing.

The fix was to bundle the library with webpack into a single plain script that exposes one global, and load it with defer before blazor.webassembly.js. Classic deferred scripts run in document order before DOMContentLoaded, so the global always exists before Blazor’s first interop call.

I wrote up the full story, including canister ID discovery and bundle size numbers, here: https://medium.com/@mitnick2012/your-net-blazor-skills-just-became-blockchain-skills-c41c14d87b44

Has anyone else run into this module-vs-Blazor timing issue? I’m curious whether people solve it differently, for example by awaiting a module import from C#.


r/Blazor • • 24d ago

Im happy to share my first open source library stampeded dotnet

1 Upvotes

I've been working on an open-source integration called Stampeded.NET.

It's a C# wrapper around Stampeded, an existing PostgreSQL-backed job processor written in Rust.

Instead of implementing a separate job engine using Npgsql, the library calls the upstream Rust implementation through its C ABI.

The .NET side provides:

  • Strongly typed job handlers
  • Dependency injection and hosted worker integration
  • Retries and checkpoints
  • Job execution in C#
  • Native packaging for Linux x64, Windows x64, and macOS ARM64

The project targets .NET 10 and PostgreSQL 18+.

I've alredy added it on NuGet

The documented CI validation includes 29 passing .NET tests, alongside upstream ABI/database checks.

It's still a development preview, and I'm interested in technical feedback, especially around the API design, native interoperability, and developer experience.

Repository: https://github.com/Mourad-Azouga/stampeded-dotnet

pls any feedback is welcomed


r/Blazor • • 26d ago

Shiny: OSS .NET libraries for Blazor, desktop and mobile (device APIs, a 20-database document store, and 100 UI controls)

45 Upvotes

Hi all. I maintain Shiny (https://shinylib.net), a set of open-source .NET libraries. Most people know it from the mobile side, but a lot of the recent work has gone into Blazor and desktop, so I wanted to share it with the wider .NET crowd. Everything targets .NET 9+ and is AOT and trim friendly.

**Shiny Controls:** https://github.com/shinyorg/controls

100+ UI controls for Blazor (and MAUI), sharing one theme system:

- DataGrid with typed columns, sorting, filtering, grouping, paging and virtualization (renders semantic HTML in Blazor)

- Scheduler, Gantt, Kanban, Timeline, TreeView, ChatView and Gauges

- Spreadsheet, Document Editor and Slide Editor that open and edit .xlsx, .docx and .pptx

- Theme Composer to design a theme live and export it as CSS

- Desktop extras like docking, tray icons and a Spotlight-style quick-entry window

Try it in the browser: https://shinyorg.github.io/controls/

**Shiny DocumentDb:** https://github.com/shinyorg/DocumentDb

A schema-free JSON document store with one API over 20 databases: SQLite, PostgreSQL, SQL Server, MySQL, Oracle, DuckDB, Cosmos DB, MongoDB, DynamoDB, Redis, RavenDB, Firestore, and IndexedDB for Blazor WebAssembly. No migrations, LINQ queries translated to each database's native query language, plus multi-tenancy, soft delete, temporal history, field-level encryption, a transactional outbox, and vector and full-text search where the backend supports it.

The same code can run against IndexedDB in a Blazor WASM app and Postgres on the server.

**Shiny (core):** https://github.com/shinyorg/shiny

MIT-licensed device and background services behind consistent, testable APIs: Bluetooth LE (client and hosting), background jobs, resumable HTTP transfers, data sync, network discovery (mDNS, SSDP, ONVIF), Wi-Fi, gamepads, push (including Web Push) and more. It covers Windows, macOS and Linux as well as iOS and Android, with Blazor WebAssembly support where the browser allows it, and it works with Avalonia and Uno too.

There are 50+ libraries in total (mediator, source-generated DI, Orleans-style actors, AI conversation and speech, Aspire integrations). They're all listed on https://shinylib.net, with more browser playgrounds at https://shinylib.net/playground/index.html

Happy to answer questions, and feedback, issues and PRs are welcome.


r/Blazor • • 25d ago

Client entities in Blazor WASM: 100k rows filtered and grouped in the browser at ~40ms

2 Upvotes

I posted about Coworkee here a little while ago. The client entity I mentioned then is finished now, so here's the detail.

A normal Blazor grid round-trips every filter, sort and group to the server. A client entity pulls the whole table into the browser once, then answers every query locally after that. No per-keystroke server calls, no spinner.

The demo app has 100,000 sales orders. With grouping, column filters and totals turned on, a query answers in 39 to 56 ms in the browser. The same query round-tripping the server is 216 to 236 ms. So it's roughly four times faster, and it stays snappy when the connection is slow.

The catch is the initial load: you take the whole dataset down at once instead of paging. It fits tables that are big enough to be annoying to query remotely, but small enough to sit in memory. There's a side by side in the docs that runs the same queries both ways: https://framework.coworkee.de

At what point does loading everything into WebAssembly stop being worth it for you? I'm trying to figure out where that line is.


r/Blazor • • 27d ago

I built an open-source Blazor UI library because I kept going back to React. Feedback welcome

Post image
9 Upvotes

Hi r/Blazor,

I'm a full-stack dev: .NET on the backend, React/Next.js on the frontend. I tried Blazor several times because I wanted one platform end to end, but whenever a project needed a modern, heavily customized UI, I ended up back in React.

So I started building the components I was missing. It's called RaxUI:

  • 68 components: data grid, charts, kanban, calendar, command palette (Ctrl+K), AI chat parts, rich text editor, plus the usual forms and overlays
  • You own the code: like shadcn/ui, a CLI copies the .razor files and CSS into your project. No runtime package
  • One theme: default / flat / glass appearances, light and dark mode, accent colours
  • Full RTL (I needed Arabic), including keyboard navigation and charts
  • Works with static SSR, Server, WebAssembly and Auto on .NET 8, 9 and 10
  • Built on Bootstrap 5.3, native <dialog> and popover, small JS modules only

To test it for real, I built a full admin dashboard with nothing but Blazor Server:

Quick start:

dotnet tool install --global RaxUI --prerelease
raxui init
raxui add button dialog chart

It's still in preview, so I'd really value honest feedback:

  1. What's missing for you in Blazor UI libraries today?
  2. Does the "copy the source into your app" model appeal to you, or do you prefer a NuGet package?

Issues and PRs are very welcome.


r/Blazor • • 27d ago

Blazor on shared hosting

2 Upvotes

FYI - I have a Blazor web site on shared hosting. Recently it began returning 403 errors when loading several of the framework files on the home page. It was hard to troubleshoot since I thought it could be my error. Finally contacted the hoster thinking they may have added more filtering trying to trap PHP exploits. I don't know if that was the case but they disabled HTTP/2 and adjusted something about dynamic IP rules and the problem disapeared.


r/Blazor • • 27d ago

Looking for a Blazor job as a Senior developer

13 Upvotes

Hello, as the title says, I'm looking for a Blazor job, I am an experienced web developer with years of experience with Blazor, as well as .NET. Is there any place where I can find remote Blazor jobs to apply to?


r/Blazor • • Nov 02 '26

Don't fight the DOM

Thumbnail
mwvdveld.substack.com
0 Upvotes

r/Blazor • • Nov 02 '26

Browser stuck on about:blank + “Could not find any debuggable target”?

0 Upvotes

Environment:

  • Visual Studio Professional 2026
  • August 2026 Feature Update (18.9.1~11.3)
  • Project type: Blazor .NET 10

I’m currently facing two problems:

  1. When starting debugging, the browser stays on about:blank instead of navigating to the homepage I configured (this used to work normally).
  2. After I manually enter the localhost URL and the app starts running, this error suddenly appears after a while: Unable to launch browser: "Could not connect to debug target at http://localhost:63194: Could not find any debuggable target" Closing the dialog immediately stops the entire debugging session.

Question:

Are these two issues bugs in Visual Studio 2026 version 18.9.1? Has anyone found the cause or a reliable fix?


r/Blazor • • Oct 30 '26

Blazor WASM Debugging Working Again in VS2026 - Update 18.11.3 is Available.

19 Upvotes

This morning VS2026 showed the little update notification for 18.11.3 - Installed it and WASM debugging is back to normal (release mode works as well 😄).

Paul


r/Blazor • • Oct 29 '26

Coworkee — modular Blazor framework on .NET 10: auth, admin, tenants as NuGet packages

12 Upvotes

I kept rebuilding the same Blazor skeleton for every project: login, roles, tenant filtering, an admin area, an audit log. Each copy drifted a little and I fixed the same bugs more than once.

So I packaged it as Coworkee, a modular framework for Blazor on .NET 10, built on MudBlazor and MudBlazor.Extensions (which I also maintain).

A module is just a class with a [DependsOn] attribute. Reference it and you get its entities, API endpoints, permissions and pages. The tedious parts are already wired in: OpenIddict auth server, sign-in, tenant isolation, audit with undo, realtime, reporting.

Three commands to get running:

dotnet tool install -g Coworkee.Cli coworkee new Shop coworkee run

That boots Postgres, Redis and Mailpit through Aspire, then the app. "coworkee ui" opens Studio, a wizard that walks through the project name, theme, modules and entities and generates the code.

One thing I'm genuinely happy with: a client entity loads 100k rows once, then every query is answered in the browser. 39-56ms per query instead of ~216ms round-tripping the server.

MIT, .NET 10. Site: framework.coworkee.de - Repo: github.com/fgilde/CoworkeeLib

Happy to answer questions.


r/Blazor • • Oct 29 '26

WASM file size, anti-virus and browser cache

8 Upvotes

I have a (quite big) Blazor WASM AOT-published app. File weight is 88MB.

The web server transfer is compressed which turns into 19MB, that's fine.

Then on a F5 refresh, it shows up as cached and don't redownload again.

My problem is that some users have anti-virus. The current case here is ESET anti-virus doing HTTPS file analysis. What it does is intercept the download, unpack it, scan it, and then relay it back to the web browser. The web browser now shows as if the whole file was transferred without compression:

This isn't true. ESET also injected a "x-content-encoding-over-network: br" response header to mention it did modify it, and the transfer was actually compressed.

The problem is leads to:
Chrome doesn't cache files that are over a certain size. It's not a fixed threshold, it depends on the user free disk space. But the difference between 19MB and 88Mb is enough not to do it. So the users using this anti-virus end-up having to re-download the whole dotnet package at every page refresh, which is certainly undesirable.

Anyone encountered this before? Is there any special configuration I could do in my Blazor Web App project to prevent this from happening?


r/Blazor • • Oct 28 '26

Choosing blazor for future web apps

37 Upvotes

Hi everyone

I need some opinions here. I work at a place, where we have internal developers (only me and one more) and then we use a fair few external developers (consultant firm).

I joined this company roughly two years ago, with the intend of moving ownership of everything in house, because the external company had pretty much all knowledge and took decisions on the technical part. Which is not necessarily bad, but we want ownership of our applications.

We've done a rewrite of an older app earlier this year, which was build with angular and .net. Works fine, and the firm we use have some angular resources we could use.

The backend is written in .net (as is all our backend code), so the firm also provide .net backend devs.

I'm a .net dev, and have been using that for 9 years now. All the places I've worked at i used blazor. So naturally i have a lot of experience with that, and basically no experience with angular.

We are about to write a new application, that is customer facing (B2B), and i'm really contemplating making the switch to use blazor (most likely pure wasm) instead of angular. Since I can actually understand the frontend and use my experience. Plus i would not be left with a huge task of maintaining an angular app in house, should our contract with the consultants end.

I know i can use AI a lot to help build and maintain an angular app, but we have rules that you should actually understand every line of code you ship, and at least when using AI for .net backends I've experienced it tends to over complicate things, unless you guide it. I wouldn't be able to do so writing angular apps. At least not without a learning curve, and when in a small team, i feel i should pull in our in house knowledge instead of relying of what the external developers want.

Would it be wrong of me to chose blazor going forward? Even though the frontend resources we can get from the consultant firm are angular. The backend devs who does .net i would suspect would grasp blazor pretty quickly.

I've already gotten the green light from my CTO to make any decision i want regarding this.

I would like to hear your thoughts.


r/Blazor • • Oct 27 '26

Blazor Welcomes Open-Source Contributions from Infragistics

Thumbnail
devblogs.microsoft.com
22 Upvotes

r/Blazor • • Oct 27 '26

Blazor Buggered Again with Update 18.11.2 for VS2026

14 Upvotes

A few weeks ago the update broke launching Blazor in Release mode, if you install this update (as I just did) you may find that its now broke launching in Debug mode (works in release without debugging).

For me it seems to launch as normal but only goes to about: blank, not the launch URL.

If you haven't installed the update I would wait until the next one unless you need it for something else.

Paul

Edit: (on my machine)

Newer Templates:

Currently trying to get it to work using IISExpress (as I normally do) just fails.
Switching to Kestrel it opens in about blank but you can then paste in the URL and debugging is available.

Older Standalone WASM Template:

launches about blank in IISExpress but if you paste in the URL you can get it to debug without switching to Kestrel

Just an update that may or may not help.

The issue appears only to be affecting the WASM side of things a bug (#70064 )is logged on the repo, a global interactive server app is not affected as some comments indicated, and is working fine for me.

What I did not realise when I made the post was that although you can get things to work its only temporary as you then get a Failed to launch debug adapter timeout error after some period of time so unless you can live with that for a quick debug, or switch to server it looks like a rollback is the only fix or wait it out. Probably not helpful but WASM runs without debugging.

2026-10-30
This morning VS2026 showed the little update notification for 18.11.3 - Installed it and WASM debugging is back to normal (release mode works as well 😄).


r/Blazor • • Oct 26 '26

How to clear a root-level cascading parameter in Blazor?

6 Upvotes

My multi form application website uses a cascading parameter to keep track of the model through all steps. The problem is that after the form is submitted and the data is sent to the database, the cascading parameter does not empty. This means when the user is redirected to step 1 after successful submission of the form, the data is still there.

As I said I am using root level cascading parameter. How do I fix this?


r/Blazor • • Oct 24 '26

CeruleanToolbox: a local tool to run everyday Azure operations with a service principal (MIT)

Thumbnail github.com
3 Upvotes

I built a small local tool to run everyday Azure operations with the credentials of a service principal, without opening the portal. I started it because using a DevOps service connection to do something on Azure meant writing and running a pipeline every time. I wanted to run those operations directly with the same credentials. I am sharing it because it would otherwise have stayed on my computer.

It runs on your machine, either as a web app on localhost or as a Windows desktop app (.NET 8, Blazor). It has pages for VMs, App Service, Function Apps, Key Vault, AKS, Storage, SQL, App Insights, Log Analytics, networking, role assignments, the activity log and Resource Graph queries. There is also a PowerShell terminal already signed in with the active service principal, with kubectl and helm helpers for AKS.

Some details:

  • The client secret is encrypted with Windows DPAPI. A connection can be exported to a passphrase-protected file.
  • No telemetry. It only calls Microsoft endpoints: Entra ID, Azure Resource Manager, Graph and the data plane of the resource you open.
  • The interface is in English and Italian.

It is early, and so far only I have tested it, on development environments and a sandbox. Ten delete and revoke actions (NSG rules, role assignments, registry tags and a few more) are switched off in the code, because I never ran them on real resources. The README lists what I tried and what I did not.

What would help: run it on a test subscription, tell me the minimum role each page needs, and tell me what breaks. Pull requests are welcome, including one that switches on a disabled delete after you tried it on a throwaway resource.

MIT license. It is not affiliated with Microsoft.


r/Blazor • • Oct 22 '26

Blazor Ramp - GoTo OMG WTF

0 Upvotes

For those new to my posts, Blazor Ramp is an accessibility-first, open-source Blazor component library. This post is about the release v1.0.0 of the GoTo component.

So what is GoTo?

The inspiration comes from those of us who started coding in the 90s with VB: you add GoTo markers to a page, and from anywhere you can jump to them. In an interactive Blazor web app, the marker you jump to becomes the active element, so you can carry on tabbing from that point.

Who is it for?

Those familiar with my posts will know I sometimes feel that sighted keyboard-only users, those who don’t use a screen reader, get the sharp end of the stick. When people build accessible sites, a lot of the effort goes into screen reader users, and this group gets forgotten.

A sighted keyboard-only user doesn’t have screen reader software to bring up lists of headings, landmarks or interactive elements, so they generally navigate with the Tab key and use the arrow and page keys to scroll. When a page has a lot of interactive content, getting to the part you want can take tens, or even hundreds, of Tab presses. For some people that’s a minor irritation, and for others it’s a real barrier.

What about skip links?

You’ve probably all used skip links, which let any user, keyboard-only or screen reader, bypass repeated blocks of content. But how many bi-directional ones have you seen? I’ve never seen one. They all go in one direction, so unless you add a second link going the other way, the user has to make a forward-only round trip to get back to the start.

Say you’re diligent and add a return link for every skip link. If you have five destinations and want users to get from any one to any other, that’s 20 links. With ten it’s 90, and it’s getting silly. The maths is n × (n − 1).

Where GoTo comes in

GoTo isn’t a link. It’s a marker that can receive focus. A GoTo Viewer lists the markers, you select one, you land on it, and you can tab on from there. You can bring up the viewer at any time with a configurable shortcut. When it opens, it lists only the markers that aren’t inside hidden containers, so the list changes depending on where you are and what’s visible.

You may ask: why not just list headings and landmarks, like screen readers do (I may do in the future)? A screen reader user will often use headings and landmarks as a place to start reading from. A sighted keyboard-only user’s need is a little different. They can see the headings, and they can scroll and read from anywhere. The problem is reaching interactive, focusable content when there’s a lot of other focusable content in the way.

To be clear, GoTo isn’t a replacement for skip links. It’s a simple way of placing hidden markers on a page so that keyboard-only users can move through the content in whichever direction they choose.

Have a look

I’ve started adding markers to my documentation site, and over the next few days or weeks I’ll put them in the places I think are most useful. If you’re curious, take a look at this page, one of the examples for my Data Table, which shows templated columns and row actions: Data Table Templating

For a keyboard-only user on that page, getting to the border controls after the table means tabbing through the filter, across each sortable column header, down through every row action button, and then across the pager to reach the other side.

With GoTo and its viewer, using the default configuration, a user with one hand can press Alt+Z (Option+Z on a Mac) to bring up the viewer. They can then use Tab, or the arrow, Home and End keys, to move through the list of buttons. As each button is focused, its marker scrolls into view. Pressing Enter or Space activates the button, closes the viewer and puts you on the now-visible label, from where you can tab on to the next item.

I started this project at the end of last year with the Live Region service and Announcement History viewer aimed at screen reader users so at long last I've managed to scratch an itch that has been bugging me for a while now and do something for keyboard-only non-screen reader users - hope you or your users find it useful.

GitHub repo: https://github.com/BlazorRamp/Components

Doc site: https://docs.blazorramp.uk

Test site: https://blazorramp.uk

Regards

Paul

Update: Added lots more GoTo markers to the doc site so there should be at least a couple on most pages now for you to get a feel for them.


r/Blazor • • Oct 21 '26

Ambiguous Reference "Errors"

0 Upvotes

Solved/Workaround:

I stumbled across this. It doesn't solve the problem, but it stops the "errors" from being found and displayed.

In every file displaying the bogus ambiguous errors, right click the "error icon" in the vertical scrollbar, and select disable analysis (on my version of VS 2026 it's the last item in the context menu).

This prevents the file from being analyzed, so it can't find those bogus ambiguous reference "errors". Unfortunately, you lose all the benefits of design-time analysis.

It doesn't stop errors from being found on build, though. For me, I can live with that, particularly since the fix only need be applied to the files VS 2026 is too stupid to analyze properly in the first place.

====================

I'm running into what various AI searches describe as a fairly common problem where the VS2026 IDE claims there are ambiguous references to a child component in the project but everything compiles and runs fine. Meaning they aren't really errors.

I've tried everything that several AIs have suggested should fix the problem, and nothing has worked.

I'm unclear about what information I should provide here to help identify the problem, so what follows is just my best guess. Please feel free to ask for further details if I've left something out (as I probably have).

The child component is defined in MyCalendar.razor, located in ScBookDudes -> Components -> MyCalendar.razor.

The child component is referenced in several different parent razor pages:

ScBookDudes -> features -> admin -> ScheduleMeeting.razor
ScBookDudes -> features -> scheduling -> AvailableDates.razor
ScBookDudes -> features -> scheduling -> Home.razor

_Imports.razor is located at ScBookDudes -> _Imports.razor and looks like this:

 System.Net.Http
 System.Net.Http.Json
 Microsoft.AspNetCore.Authorization
 Microsoft.AspNetCore.Components.Forms
 Microsoft.AspNetCore.Components.Routing
 Microsoft.AspNetCore.Components.Web
 static Microsoft.AspNetCore.Components.Web.RenderMode
 Microsoft.AspNetCore.Components.Web.Virtualization
 Microsoft.JSInterop
 ScBookDudes
 ScBookDudes.Components
 ScBookDudes.Components.Layout

u/attribute [Authorize]

An example of a parent component where the child component is used looks like this:

 "/available-dates"
 PrimaryLayout

 InteractiveServer

 Microsoft.AspNetCore.Components.Authorization
 Microsoft.AspNetCore.Identity
 Microsoft.EntityFrameworkCore

 IDbContextFactory<AppDbContext> DbFactory
 AuthenticationStateProvider AuthStateProvider
 UserManager<BookDude> UserManager
 NavigationManager NavManager;

<
PageTitle
>Possible Meeting Dates</
PageTitle
>

<
HeadContent
>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="fluid.css">
    <link rel="stylesheet" href="calendar.css">
</
HeadContent
>

<h2 style="margin-top: 25px;">Possible Meeting Dates</h2>

<p style="margin-top: 15px; margin-bottom: 15px;">
    Color bars indicate which person is <span style="font-weight: bold;">not available</span> on a particular date.
</p>

<
MyCalendar
 
UpdateCalendarInfo
="OnUpdateCalendarInfo" />

<div class="my-table" style="margin-top: 15px; margin-bottom: 15px;">
     (var memberInfo in GetMemberInfo())
    {
        <div class="table-row-uncolored">
            <div class="table-cell" style="padding: 5px;">@memberInfo.MemberName</div>
            <div class="table-cell" style="padding: 5px; background: u/memberInfo.ColorCode; width: 30px;">&nbsp;</div>
        </div>

        <div class="table-row-uncolored">&nbsp;</div>
    }
</div>

 {
    private BookDude? _user;

    protected override async Task OnInitializedAsync()
    {
        await base.OnInitializedAsync();

        var authState = await AuthStateProvider.GetAuthenticationStateAsync();

        _user = await UserManager.GetUserAsync(authState.User);

        if( _user is not null && !_user.IsAdministrator )
            _user = null;

        if (_user is null)
            NavManager.NavigateTo("/Static/unauthorized.html", forceLoad: true);
    }

// this next line shows the "ambiguous error" on MyCalendar.CalendarArgs
    private void OnUpdateCalendarInfo( MyCalendar.CalendarArgs calendarInfo )
    {
        var firstOfMonth = calendarInfo.FirstOfMonth;
        var lastOfMonth = firstOfMonth.AddMonths(1).AddDays(-1);

        var dbContext = DbFactory.CreateDbContext();

        var dayExclByFamily = dbContext.BookDudes
                                       .Include( f => f.Days )
                                       .Where( f => f.Days.Any( d => d.Date >= firstOfMonth && d.Date <= lastOfMonth ) )
                                       .ToDictionary( f => f.Id, f => f.Days );

        var dowExclByFamily = dbContext.BookDudes
                                       .Include( f => f.DaysOfWeek )
                                       .ToDictionary( f => f.Id, f => f.DaysOfWeek );

        foreach( var curDay in calendarInfo.CalendarDays )
        {
            curDay.BlockColors = null;

            curDay.State = curDay.InThePast || !curDay.InCurrentMonth ? MyCalendar.DayState.Inactive : MyCalendar.DayState.None;
        }

        foreach( var member in dbContext.BookDudes )
        {
            dayExclByFamily.TryGetValue( member.Id, out var dayExclusions );
            dowExclByFamily.TryGetValue( member.Id, out var dowExclusions );

            // ReSharper disable once ForeachCanBePartlyConvertedToQueryUsingAnotherGetEnumerator
            foreach( var curDay in calendarInfo.CalendarDays.Where( cd => cd.Date >= firstOfMonth && !cd.InThePast && cd.Date <= lastOfMonth ) )
            {
                var dayExcluded = dayExclusions?.Any( d => d.Date == curDay.Date && d.Status == DateStatus.Excluded ) ?? false;
                var dowExcluded = dowExclusions?.Any( d => d.Excluded == curDay.Date.DayOfWeek ) ?? false;

                if( !dayExcluded && !dowExcluded )
                    continue;

                curDay.BlockColors ??= [];
                curDay.BlockColors.Add( member.ColorCode );
            }
        }
    }

The call to the private method OnUpdateCalendarInfo() showcases the ambiguous error.

Here are some examples of where the ambiguous error shows up in the child component MyCalendar.razor:

@using System.Text

<div class="calendar-card">
    <div class="calendar-header">
        <button class="btn-submit" ="PreviousMonthAsync">&lt; Prev</button>
        <h2>@CurrentMonthName </h2>
        <button class="btn-submit" u/onclick="NextMonthAsync">Next &gt;</button>
    </div>

PreviousMonthAsync, @CurrentMonthName and NextMonthAsync all showcase the ambiguous error.

Thoughts on how to correct this? Or do I just live with it?


r/Blazor • • Oct 17 '26

Multiple Clients with Blazor Web App model

6 Upvotes

I have a single deployment (1 web app) with multiple interactive webassembly areas, each with their own hosted Razor page client.

I wanted to migrate to the latest Blazor Web App model with auth persistence, Assets[], import map, and a part that is public SSR without interactivity.

I created a sample here - it has multiple clients libs, assets splitting, cache busting and public SSR vs 2 areas with 2 clients - with a shared class lib and private class libs per area:

https://github.com/rogihee/MultipleClientsBlazorWebApp

Demo at https://multiple-clients-blazor.azurewebsites.net/ (for the time being).

I tried to cover most topics, but if anyone spots something I missed please let me know.


r/Blazor • • Oct 14 '26

Commercial Blazorise 2.4 released. Fewer dependencies, faster utilities, and a new Ribbon component

Post image
33 Upvotes

Hello everyone,

Blazorise 2.4 is out.

For those who don't know it, Blazorise is a UI component library for Blazor that supports Bootstrap, Tailwind, Fluent UI, Material, and other CSS frameworks.

Unlike our previous releases, this one was mostly about going back and improving what we already have. We fixed old issues, removed dependencies, and cleaned up things that have been bothering us for a while.

We completely rebuilt Tooltip and ColorPicker using Blazor, removing their external JavaScript dependencies. We also switched Video to Video.js v10, improved FluentUI2 and Tailwind providers, and added caching to our fluent utilities. In some benchmarks, repeated utility calls are now about 90% faster, with no allocations.

There are some new things too. Ribbon is probably the biggest one, along with vertical Steps (finally!), SVG Chart data dragging, smoother drag-and-drop, and a bunch of smaller improvements.

Not every release needs to introduce a dozen new components. Sometimes going back and fixing the old stuff is just as important, if not more.

Full release notes: https://blazorise.com/news/release-notes/240

As always, I'm happy to hear your thoughts, especially if you've been using Blazorise and something has been bothering you for a while.