FmgLib.MauiMarkup
10.1.2
dotnet add package FmgLib.MauiMarkup --version 10.1.2
NuGet\Install-Package FmgLib.MauiMarkup -Version 10.1.2
<PackageReference Include="FmgLib.MauiMarkup" Version="10.1.2" />
<PackageVersion Include="FmgLib.MauiMarkup" Version="10.1.2" />
<PackageReference Include="FmgLib.MauiMarkup" />
paket add FmgLib.MauiMarkup --version 10.1.2
#r "nuget: FmgLib.MauiMarkup, 10.1.2"
#:package FmgLib.MauiMarkup@10.1.2
#addin nuget:?package=FmgLib.MauiMarkup&version=10.1.2
#tool nuget:?package=FmgLib.MauiMarkup&version=10.1.2
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, multi-binding. - 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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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.60)
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.1.2 | 97 | 7/20/2026 |
| 10.0.1 | 155 | 5/5/2026 |
| 10.0.1-preview2 | 121 | 2/11/2026 |
| 10.0.1-preview1 | 142 | 2/10/2026 |
| 10.0.0 | 388 | 11/25/2025 |
| 9.0.2 | 823 | 5/1/2025 |
| 9.0.1 | 477 | 1/27/2025 |
| 9.0.0 | 336 | 1/4/2025 |
| 8.9.0 | 692 | 3/27/2025 |
| 8.8.9 | 635 | 12/14/2024 |
| 8.8.8 | 270 | 12/7/2024 |
| 8.8.7 | 339 | 11/25/2024 |
| 8.8.6 | 446 | 11/17/2024 |
| 8.8.5.1 | 359 | 10/21/2024 |
| 8.8.5 | 258 | 10/20/2024 |
| 8.8.4 | 408 | 10/19/2024 |
| 8.8.3 | 334 | 10/2/2024 |