Modern.Forms
Modern.Forms copied to clipboard
Cross-platform spiritual successor to Winforms for .NET 6+
What is Modern.Forms?
*** This framework is currently in its early stages. It is not intended for production use. ***
Modern.Forms is a cross-platform spiritual successor to Winforms for .NET 6, supporting Windows, Mac, and Linux.
This is accomplished with:
- Some infrastructure code from Mono's Winforms (like layouts):
- https://github.com/mono/mono/tree/master/mcs/class/System.Windows.Forms
- A port of Avalonia's native backends (for interacting with the operating system)
- https://github.com/AvaloniaUI/Avalonia
- SkiaSharp
- All controls are fully managed and drawn with SkiaSharp
Motivation
The goal is to create a spiritual successor to Winforms that is:
- Cross platform (Windows / Mac / Linux)
- Familiar for Winforms developers (ie: not XAML)
- Sample Form:
- Great for LOB applications and quick apps
- Updated with modern controls and modern aesthetics
How to Run
Sample Application
The quickest way to see Modern.Forms in action is through our ModernDecompiler
sample application,
which allows you to decompile .NET assemblies. (Source Code)
From a Windows, Mac, or Linux command line with .NET 6 installed:
dotnet tool install --global ModernDecompile
decompile
This will launch the sample application built with Modern.Forms.
Other Samples
Some smaller samples are available in the Modern.Forms repository:
-
ControlGallery
- Gallery of the controls included in Modern.Forms in action. -
Explore
- A Windows Explorer clone.
For information on building and running these samples, see Samples.
Getting Started
To create your own Modern.Forms application, see Getting Started.