FmgLib.MauiMarkup
10.2.0
See the version list below for details.
dotnet add package FmgLib.MauiMarkup --version 10.2.0
NuGet\Install-Package FmgLib.MauiMarkup -Version 10.2.0
<PackageReference Include="FmgLib.MauiMarkup" Version="10.2.0" />
<PackageVersion Include="FmgLib.MauiMarkup" Version="10.2.0" />
<PackageReference Include="FmgLib.MauiMarkup" />
paket add FmgLib.MauiMarkup --version 10.2.0
#r "nuget: FmgLib.MauiMarkup, 10.2.0"
#:package FmgLib.MauiMarkup@10.2.0
#addin nuget:?package=FmgLib.MauiMarkup&version=10.2.0
#tool nuget:?package=FmgLib.MauiMarkup&version=10.2.0
FmgLib.MauiMarkup
FmgLib.MauiMarkup is a fluent C# markup library for .NET MAUI: build your entire UI in pure C# — no XAML. Every bindable property of every MAUI control gets a chainable extension method with the same name, and every event gets an On<EventName> method, with full IntelliSense, refactoring and compile-time safety.
public partial class MainPage : ContentPage, IFmgLibHotReload
{
int count = 0;
public MainPage() => this.InitializeHotReload();
public void Build() =>
this.Content(
new VerticalStackLayout()
.Spacing(25)
.Padding(30)
.Center()
.Children(
new Label()
.Text("Hello, World!")
.FontSize(32)
.CenterHorizontal(),
new Button()
.Text("Click me")
.OnClicked(b => b.Text = $"Clicked {++count} times")
.CenterHorizontal()
)
);
}
Quick Start
New project (recommended):
dotnet new install FmgLib.MauiMarkup.Template
dotnet new fmglib-mauimarkup-app -o MyApp
Existing MAUI project:
dotnet add package FmgLib.MauiMarkup
No registration call needed. XAML and FmgLib pages coexist, so you can migrate incrementally.
Key Features
- Every control, every property, every event — fluent methods for the whole MAUI surface, always in sync with the referenced MAUI version.
- Third-party controls too —
[MauiMarkup(typeof(...))]or<MauiMarkupSourceGenerator>true</MauiMarkupSourceGenerator>generates the same fluent API for Syncfusion, UraniumUI, SkiaSharp, ZXing, DevExpress, InputKit… - Hot reload built in — implement
IFmgLibHotReload, callInitializeHotReload(), and yourBuild()re-runs on every code edit (leak-free, crash-isolated, works withdotnet watchand IDE hot reload). - First-class bindings — string paths or compiled
Getterexpressions, inline converters, typed multi-bindings. - Theming —
OnLight/OnDark,OnPlatform,OnIdiom,DynamicResourceon any property; strongly-typedStyle<T>with triggers and visual states. - Localization — JSON or RESX based, with instant runtime language switching.
📚 Documentation
Complete documentation with detailed explanations and examples for every feature:
https://github.com/FmgLib/FmgLib.MauiMarkup/tree/master/docs
Highlights: Getting Started · From XAML to C# · Fluent Properties · Property Bindings · Styling · Hot Reload · Third-Party Controls · Complete Examples
🇹🇷 Türkçe dokümantasyon: https://github.com/FmgLib/FmgLib.MauiMarkup/tree/master/docs/tr
Samples
Complete sample applications live in the repository's sample/ folder.
Third-party notices
Certain core property-building and styling components were originally based on Sharp.UI and have since been developed for FmgLib.MauiMarkup. The applicable MIT notice is included in THIRD-PARTY-NOTICES.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Maui.Controls (>= 10.0.90)
-
net9.0
- Microsoft.Maui.Controls (>= 9.0.120)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on FmgLib.MauiMarkup:
| Package | Downloads |
|---|---|
|
FAFA.MAUI.Bootstrap
Basic library containing styles taken from web bootstrap components applied to .NET MAUI components. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.3.0 | 82 | 8/12/2026 |
| 10.2.1 | 85 | 8/8/2026 |
| 10.2.0 | 88 | 8/7/2026 |
| 10.1.4 | 91 | 7/29/2026 |
| 10.1.3 | 97 | 7/29/2026 |
| 10.1.2 | 117 | 7/20/2026 |
| 10.1.1 | 147 | 7/15/2026 |
| 10.1.0 | 143 | 7/15/2026 |
| 10.0.1 | 160 | 5/5/2026 |
| 10.0.1-preview2 | 127 | 2/11/2026 |
| 10.0.1-preview1 | 145 | 2/10/2026 |
| 10.0.0 | 392 | 11/25/2025 |
| 9.0.2 | 829 | 5/1/2025 |
| 9.0.1 | 481 | 1/27/2025 |
| 9.0.0 | 340 | 1/4/2025 |
| 9.0.0-pre1.0.0 | 143 | 1/10/2025 |
| 8.9.0 | 706 | 3/27/2025 |
| 8.8.9 | 636 | 12/14/2024 |
| 8.8.8 | 273 | 12/7/2024 |
| 8.8.7 | 345 | 11/25/2024 |