Almost 14 years ago, I had an idea: what if you could build a cross-platform desktop UI with HTML and CSS, but write all of its behavior in C#?
At the time, the missing piece was obvious. HTML and CSS are not just convenient ways to describe a UI; they come with a whole ecosystem of parsing, layout, rendering, browser APIs, and edge cases. "Let's just support the useful parts" sounds simple right up until you try to define what useful means.
So the idea stayed around, somewhere between "maybe one day" and "that would be a fun project."
Then AngleSharp started growing in a direction that made me ask a slightly uncomfortable question: don't we already have the pieces? And isn't Blazor already the C# component model for building UIs?
It turns out the answer is: mostly, yes. The result is BlazorSharp , a proof of concept that renders Blazor components into an AngleSharp DOM and paints that DOM in an Avalonia desktop application.
No Chromium. No embedded webview. No JavaScript renderer bridge.…