HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
VincentH-Net
CSharpForMarkup
C#2021–2024
VincentH-Net / CSharpForMarkup

CSharpForMarkup

Concise, declarative C# UI markup for .NET browser / native UI frameworks

3Distinct people
4Mentions
0Explicit recommenders
843GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Concise, declarative C# UI markup for .NET browser / native UI frameworks

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year4 dated mentions

Observed mentions: 2021-08-20 15:33:31 UTC to 2024-11-19 18:13:15 UTC.

0122021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC202

What Hacker News says

4 sources
Interestingly enough, in practice, there are various declarative SwiftUI-style nuget packages for Avalonia[0][1][2] and Uno[3]. You don't actually have to touch XML if you don't want to. Edit: as someone else noted, the website itself links to a built-in option to do so as well - https://platform.uno/c-markup/ [0] https://github.com/AvaloniaUI/Avalonia.Markup.Declarative [1] https://github.com/wieslawsoltes/NXUI [2] (F#) https://github.com/fsprojects/Avalonia.FuncUI [3] https://github.com/VincentH-Net/CSharpForMarkup
In Uno: Create Beautiful Cross Platform .NET Apps Faster
To manage mental mapping of what is being drawn, I keep methods that create widget trees short. My rule of thumb is that whole method has to comfortably fit the screen at once. For each section of the main tree I create a static function that returns a branch of the tree. These functions have descriptive names that help you visualize what element each function builds. If a tree inside a function is long, it is broken down in the same way. There are some fluent extensions (for Xamarin.Forms and probably future MAUI) that help you build UI in declarative fashion with C#. Same extensions could be created for other frameworks. https://devblogs.microsoft.com/xamarin/c-sharp-markup-for-xa... https://github.com/VincentH-Net/CSharpForMarkup For reusable custom widgets that can't be done with a static function, I create new classes with their own
Read the rest
widget trees. Try to keep widgets composable and avoid inheritance if possible. Hot reload is coming in .NET 6, so waiting for rebuild will soon be history. I have no experience with QML so I can't really comment on that.
In Performance Improvements in .NET 6

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.