ModernFormsNext 1.6.0
dotnet add package ModernFormsNext --version 1.6.0
NuGet\Install-Package ModernFormsNext -Version 1.6.0
<PackageReference Include="ModernFormsNext" Version="1.6.0" />
<PackageVersion Include="ModernFormsNext" Version="1.6.0" />
<PackageReference Include="ModernFormsNext" />
paket add ModernFormsNext --version 1.6.0
#r "nuget: ModernFormsNext, 1.6.0"
#:package ModernFormsNext@1.6.0
#addin nuget:?package=ModernFormsNext&version=1.6.0
#tool nuget:?package=ModernFormsNext&version=1.6.0
ModernFormsNext
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.201as configured byglobal.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 | 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-windows7.0 is compatible. |
-
net10.0
- ModernFormsNext.WindowKit (>= 1.6.0)
- ModernFormsNext.WindowKit.Backend (>= 1.6.0)
- Topten.RichTextKit (>= 0.4.167)
-
net10.0-windows7.0
- ModernFormsNext.WindowKit (>= 1.6.0)
- ModernFormsNext.WindowKit.Backend (>= 1.6.0)
- ModernFormsNext.WindowKit.Backend.Windows (>= 1.6.0)
- Topten.RichTextKit (>= 0.4.167)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.