yurkinh.slint.net.Markup 1.19.0-preview.13

This is a prerelease version of yurkinh.slint.net.Markup.
dotnet add package yurkinh.slint.net.Markup --version 1.19.0-preview.13
                    
NuGet\Install-Package yurkinh.slint.net.Markup -Version 1.19.0-preview.13
                    
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="yurkinh.slint.net.Markup" Version="1.19.0-preview.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="yurkinh.slint.net.Markup" Version="1.19.0-preview.13" />
                    
Directory.Packages.props
<PackageReference Include="yurkinh.slint.net.Markup" />
                    
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 yurkinh.slint.net.Markup --version 1.19.0-preview.13
                    
#r "nuget: yurkinh.slint.net.Markup, 1.19.0-preview.13"
                    
#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 yurkinh.slint.net.Markup@1.19.0-preview.13
                    
#: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=yurkinh.slint.net.Markup&version=1.19.0-preview.13&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=yurkinh.slint.net.Markup&version=1.19.0-preview.13&prerelease
                    
Install as a Cake Tool

Slint.Markup (Preview)

Write a Slint UI in C#, without a .slint file. The builders write .slint code, which Slint compiles once per page and caches on disk, so a window starts as fast as one from a .slint file.

using Slint.Markup;

using var app = new Counter();
app.Run();

class Counter : Component
{
    readonly Signal<int> count = 0;

    protected override Element Render() => new VerticalBox
    {
        new Text(() => $"Count: {count.Value}").FontSize(24),
        new Button("Add", () => count.Value++),
    };
}
  • A builder exists for each built-in element and standard widget, with their properties, callbacks, and enums.
  • A lambda, such as () => $"Count: {count.Value}", becomes a property that the page sets again after a change.
  • After a handler, or a change of a Signal<T> or SignalList<T> field, the component renders again. If and ForEach show and repeat parts without compiling another page.
  • Component<TState> has a State and SetState.
  • <SlintFile Include="ui/card.slint" Markup="true" /> generates builders for the components of your own .slint files.
  • Hot reload of the C# code renders the window again.

The package works with trimming and Native AOT. See the README of Slint for .NET for more.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.19.0-preview.13 0 11/10/2026