ModernFormsNext 1.6.0

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

ModernFormsNext

.NET

Early-stage project. Use at your own risk.

See CHANGELOG.md for release notes and migration-relevant changes.

ModernFormsNext is a modern, code-first UI framework for .NET inspired by Modern.Forms and WinForms.

It focuses on performance, simplicity, and full control over UI without relying on XAML.

ModernFormsNext is not WPF, MAUI, WinUI, Avalonia, Uno, Blazor, Electron, or XAML. Framework UI is rendered by ModernFormsNext controls, not by native WinForms controls.

Features

  • WinForms-like API with no XAML
  • SkiaSharp-based rendering
  • Fully code-driven UI
  • WinForms-like data binding primitives
  • Notification area icon support through backend services
  • Extensible architecture
  • Custom controls support
  • Platform-neutral framework code with platform-specific backends

Getting Started

Requirements

  • .NET SDK 10.0.201 as configured by global.json.
  • SDK roll-forward is enabled for the latest installed .NET 10 feature band.
  • Windows is currently the primary and best-supported runtime target.

Use ModernFormsNext.slnx for solution-level restore and build commands.

Clone

git clone https://github.com/<your-username>/ModernFormsNext.git
cd ModernFormsNext

Restore

dotnet restore .\ModernFormsNext.slnx

Build

dotnet build .\ModernFormsNext.slnx --configuration Debug --no-restore /p:EnableWindowsTargeting=true

Run ControlGallery

samples/ControlGallery is the manual visual test app for controls, layout, rendering, focus, input, and theme behavior.

dotnet run --project .\samples\ControlGallery\ControlGallery.csproj

Run the Template Reference App

samples/ModernFormsNext.DemoApp is the reference application for the Visual Studio extension/template experience. Keep it small, beginner-friendly, and representative of the generated application structure. Do not use it as a playground for random control experiments.

dotnet run --project .\samples\ModernFormsNext.DemoApp\ModernFormsNext.DemoApp.csproj

Basic Code-First Example

using ModernFormsNext;

internal static class Program
{
    [STAThread]
    private static void Main()
    {
        Application.Run(new MainForm());
    }
}

public class MainForm : Form
{
    public MainForm()
    {
        Text = "Hello ModernFormsNext";
        Width = 800;
        Height = 600;
    }
}

Repository Structure

  • ModernFormsNext/ - shared framework code: controls, forms, rendering, layout, input, themes, and dialogs.
  • ModernFormsNext.WindowKit/ - platform-neutral windowing, dispatcher, input, storage, and service abstractions.
  • ModernFormsNext.WindowKit.Backend/ - shared backend bootstrap and interop infrastructure.
  • ModernFormsNext.WindowKit.Backend.Windows/ - Windows backend implementation and Win32 interop.
  • ModernFormsNext.Templates/ - project templates for generated user applications.
  • samples/ControlGallery/ - manual visual validation app for controls and rendering.
  • samples/ModernFormsNext.DemoApp/ - reference/template application generated for users, not a control playground.
  • docs/ - architecture, getting started, data binding, platform-specific features, samples, and screenshots.

Documentation

Templates and Packages

The repository contains NuGet package metadata and a ModernFormsNext.Templates template package project. For repository development, prefer project references and the solution commands above. For template validation, keep ModernFormsNext.Templates and samples/ModernFormsNext.DemoApp aligned so generated applications show the recommended startup pattern.

Project Direction

ModernFormsNext is:

  • not just a fork
  • a separate evolution path
  • a place for experimentation and new ideas

It may include:

  • architectural changes
  • performance improvements
  • new controls
  • platform-specific features

Third-Party Code and Licensing

This repository contains or may contain code derived from other MIT-licensed projects. See third-party-licenses.md for details. The original Modern.Forms files also document third-party sources such as Avalonia, Mono WinForms, and Microsoft WinForms.

License

This project is distributed under the MIT License. See license.md.

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.  net10.0-windows7.0 is compatible. 
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.6.0 97 6/27/2026
1.5.0 100 6/26/2026
1.4.0 96 6/25/2026
1.3.0 98 6/24/2026
1.2.0 96 6/22/2026
1.0.0 96 6/20/2026
0.1.0-preview.1 68 3/29/2026