Concise, declarative C# UI markup for .NET browser / native UI frameworks
Concise, declarative C# UI markup for .NET browser / native UI frameworks
Concise next-gen C# Markup for .NET UI frameworks
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.
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 yesYou 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.
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.
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...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!
Looking for C# Markup 1? Find it here
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:
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:
ProgressBarTemplateSettingsTitleBar support, including strongly-typed access to all new Titlebar resources in ThemeResourceTextBoxExtensions allow to specify InputReturnTypeThe 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:
ScrollPresenterAutomationPeer, FauxGradientBorderPresenterNewFrameworkTemplateBuilder supportThe 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:
dotnet new unoapp templateDec 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-markup2template, and a newmcs-uno-viewtemplate.
dotnet new unoapp template or with the Uno solution wizard for Visual Studiomcs-uno-view template is used by the convenient New-View.ps1 script, which is included in mcs-uno-markup2Nov 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:
ThemeResources searchable in C# intellisense, strongly typedThe 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:
ThemeResources searchable in C# intellisense, strongly typedYou 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
No open issues yet, or sync has not completed.