Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

CSharpForMarkup

> 数据库
Open source

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

831 stars0 likes2 views
WebsiteGitHub

About

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

C# Markup 2

Concise next-gen C# Markup for .NET UI frameworks

C# Markup 2 for Uno Platform and WinUI

C# Markup 2 supports multiple UI frameworks, including the excellent Uno Platform.

[!TIP] You can get agentic engineering support to let agents use this library in .NET Agentic Engineering

If you don't know Uno, I recommend you check them out; Uno is one of the best and most mature .NET UI frameworks, it offers an impressive breadth of features that will have your back when you need to create real-world production apps end2end, fast.

Quick play-around

bash
dotnet new install Uno.Templates
dotnet new install Modern.CSharp.Templates

mkdir MyApp && cd MyApp

dotnet new unoapp -presentation mvvm -renderer skia -platforms desktop -preset recommended
dotnet new mcs-uno-markup2 --presentation mvvm --renderer skia --allow-scripts yes

You can use dotnet new unoapp -h or the online Uno Platform Live Wizard to quickly discover and select parameters for unoapp; use the same presentation and renderer values for unoapp and mcs-uno-markup2.

Markup options at a glance - good for everyone!

Uno Platform supports both XAML and C# UI with Uno C# Markup. C# Markup 2 adds another option that goes above and beyond what gen-1 C# Markup variants offer.

It's good to have options - everyone wins: devs get the experience that they like best, and the UI framework gains more adoption. Check it out and pick what you like!

As a first impression, here's a quick side-by-side comparison:

Enjoy a Flutter-like UI development experience with C# Markup 2:

  • Build .NET applications fully in C#

  • Unclutter your markup - while reading and writing.

    • C# Markup 2 goes above and beyond gen 1 C# Markup approaches (e.g. Maui or Uno) to eliminate a lot of verbosity: no more endless repetitions of new , HorizontalAlignment = HorizontalAlignment.Center, () => or nameof(), no more specifying for each and every TextBlock binding that yes, you want to bind to the Text property...
    • Separated markup namespaces eliminate intellisense pollution, allow quick discovery and encourage clean separation of markup and logic: no more intellisense lists where you have to search in a sea of irrelevant options for the few that you are interested in. See only Markup API's while editing MyPage.cs, see UI framework and other API's while editing MyPage.logic.cs.
  • Target browsers and native desktop / mobile

  • Use existing UI frameworks: WPF or WinUI for Windows App SDK and Uno Platform. Coming: AvaloniaUI, Maui, possibly Blazor.

  • Use the built-in MVVM support - or any other update model that supports your UI framework (e.g. Uno's MVUX or ReactiveUI)

  • Use for part or all of your application UI

  • Designed to handle large UI fast: practically allocation-free, no reflection, efficient C#

No XAML / HTML / JavaScript / CSS required. No engine or layers to get in your way.

NuGet

Chat (if needed, join DotNetEvolution first)

The best place to ask questions or help!

Getting Started

  • Uno Platform / WinUI 3: Getting started with C# Markup 2 for WinUI 3 and Windows App SDK / Uno Platform
  • WPF: Getting started with C# Markup 2 for WPF

Looking for C# Markup 1? Find it here

News

March 31, 2026

C# Markup 4.0 is out! .NET 10, Uno Platform 6.5 and more

This updates all C# Markup 2 libraries to C# 14, .NET 10 and/or .NET 9, and the latest stable technology versions:

  • All Uno Platform libraries are updated to the latest .NET version supported by the corresponding Uno SDK 6.5 libraries (.NET 10 and/or .NET 9).
  • LiveCharts2 is now out of beta, and updated to 2.0 stable and .NET 10
  • Mapsui 5 is now out of beta, and updated to 5.0 stable and .NET 9.
  • ScottPlot.NET is updated to 5.1 and .NET 10

July 14, 2025

Mapsui 5 support added!

Mapsui 5 - currently in beta, and one of the best OSS .NET libraries for maps - now has full support in C# Markup 3.1 for Uno Platform 6.0!

See the samples source for what you can build with this.

July 4, 2025

ScottPlot 5 support added!

ScottPlot.NET - one of the best OSS .NET libraries for graphs and charts - now has full support in C# Markup 3.1 for Uno Platform 6.0!

An example page using ScottPlot is added to the example app in this repo, demonstrating how to use ScottPlot with C# Markup 2. Use the excellent ScottPlot 5.0 Cookbook to create beautiful graphs!

May 12, 2025

New C# Markup 3.1 for Uno Platform 6.0

Hot on the heels of the game-changing Uno 6.0 release, today's release adds full support for Uno SDK 6.0 / Windows App SDK 1.7 to all CSharpMarkup.WinUI NuGets.

Includes support for all API improvements in Uno SDK 6.0:

  • 20+ WinUI API's are no longer marked unsupported
  • Add support for ellipse shape to ProgressBarTemplateSettings
  • New TitleBar support, including strongly-typed access to all new Titlebar resources in ThemeResource
  • New TextBoxExtensions allow to specify InputReturnType

The example app in the repo is also updated to Uno 6.0 / Windows App SDK 1.7.

May 5, 2025

New C# Markup 3.0 for Uno Platform 5.6 and .NET 9

Today's release adds full support for Uno SDK 5.6 / Windows App SDK 1.6 and .NET 9 / .NET 8 to all CSharpMarkup.WinUI NuGets.

Includes support for all improvements in Uno SDK 5.6:

  • 80+ WinUI API's are no longer marked unsupported
  • new ScrollPresenterAutomationPeer, FauxGradientBorderPresenter
  • new NewFrameworkTemplateBuilder support

The example app in the repo is also updated to .NET 9 plus Uno 5.6 / Windows App SDK 1.6 and demonstrates how to use C# partial properties with MVVM Community Toolkit to support AOT.

May 7, 2024

New C# Markup 2.4 for Uno Platform 5.2 incl .NET Single Project

Today's release is fully updated to Updated to Uno 5.2 including Uno's .NET Single Project and uno.sdk!

Plus:

  • Added support for latest dotnet new unoapp template
  • Updated to Uno.Extensions.* 4.1
  • Updated to Microsoft.WindowsAppSDK 1.5

Dec 21, 2023

New C# Markup 2 templates for Uno Platform 5

In addition to some new C# Markup 2 methods, today's release adds support for the new C# Markup 2 templates for Uno Platform 5: an updated mcs-uno-markup2 template, and a new mcs-uno-view template.

  • Enjoy improved frictionless startup for both existing and new Uno solutions - whether created with Uno's dotnet new unoapp template or with the Uno solution wizard for Visual Studio
  • Full support for .NET 8 / .NET 7, as well as model types MVUX / MVVM / none
  • The new mcs-uno-view template is used by the convenient New-View.ps1 script, which is included in mcs-uno-markup2
  • Templates are now pre-structured in accordance with best practices for maintainability and code reuse of C# Markup 2 UI.

Nov 18, 2023

2.3 Release is GA - adds support for .NET 8, Uno 5 plus 5 Uno Libraries!

This release is fully updated to the awesome Uno 5 release and .NET 8 GA. You can use the Uno Solution Wizard for Visual Studio and add a C# Markup 2 project to it at any time with one command. All Uno wizard customizations are supported: combine C# Markup 2 with MVUX or MVVM, XAML or Uno C# Markup, use Uno Navigation extensions, and target .NET 8 or .NET 7. All Uno target platforms are supported.

A brand new dotnet new C# Markup 2 project template gets you going in no time - carefully optimized for an optimal developer experience: uncluttered solution explorer view, automatic file grouping of markup and logic files, uncluttered markup source, focused intellisense, clear starting points for markup extensions in your code, plus fast hot reload - both automatic and with a hot reload button overlay in debug mode, for the platforms that your IDE can hot reload but cannot (yet) update the UI automatically.

Enjoy general C# Markup 2 improvements, plus C# Markup 2 API's for 5 additional Uno libraries:

  • Support for Uno's UI Toolkit, Reactive / MVUX extension and Navigation extensions
  • Support for the awesome LiveCharts2
  • All ThemeResources searchable in C# intellisense, strongly typed

The getting started is fully up to date. Examples in this repo and this readme will be updated soon to show off the new features.

NJoy concise C# Markup!

Nov 1, 2023

2.3 Preview Release adds 5 Uno Libraries!

Enjoy general C# Markup 2 improvements, plus C# Markup 2 API's for 5 additional Uno libraries:

  • Support for Uno's UI toolkit, Reactive and Navigation extensions
  • Support for the awesome LiveCharts2
  • All ThemeResources searchable in C# intellisense, strongly typed
  • Automatic UI update on C# hot reload
  • A development tools overlay

You can try this today - see the NuGets listed above. Documentation of the new features plus a new getting started guide is coming with the next release - soon!

June 27, 2023

2.2 Release & start of .NET MAUI support

  • Release 2.2 is out! Enjoy this polished release for Windows App SDK, Uno Platform and WPF.

  • As the poll results indicated, C# Markup 2 support for .NET MAUI is most wanted.

    Implementation has started!

March 25, 2023

Poll results are in! And the winner is...

The March 2023 poll results on what to build next for C# Markup 2 are in!

A surprise addition was the ask for C# Markup 2 for Avalonia UI in the replies; it got a big response that catapulted it into a very close 2nd place.

Here are the results for the poll including the likes for "Other" options [Blazor](https://twitter.com/vincenth_n

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#csharpide-supportmauireadability

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库