FmgLib.MauiMarkup 10.1.2

dotnet add package FmgLib.MauiMarkup --version 10.1.2
                    
NuGet\Install-Package FmgLib.MauiMarkup -Version 10.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FmgLib.MauiMarkup" Version="10.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FmgLib.MauiMarkup" Version="10.1.2" />
                    
Directory.Packages.props
<PackageReference Include="FmgLib.MauiMarkup" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FmgLib.MauiMarkup --version 10.1.2
                    
#r "nuget: FmgLib.MauiMarkup, 10.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FmgLib.MauiMarkup@10.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FmgLib.MauiMarkup&version=10.1.2
                    
Install as a Cake Addin
#tool nuget:?package=FmgLib.MauiMarkup&version=10.1.2
                    
Install as a Cake Tool

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, call InitializeHotReload(), and your Build() re-runs on every code edit (leak-free, crash-isolated, works with dotnet watch and IDE hot reload).
  • First-class bindings — string paths or compiled Getter expressions, inline converters, multi-binding.
  • ThemingOnLight/OnDark, OnPlatform, OnIdiom, DynamicResource on any property; strongly-typed Style<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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed