Majorsilence.Forms.Wpf
26.0.52
dotnet add package Majorsilence.Forms.Wpf --version 26.0.52
NuGet\Install-Package Majorsilence.Forms.Wpf -Version 26.0.52
<PackageReference Include="Majorsilence.Forms.Wpf" Version="26.0.52" />
<PackageVersion Include="Majorsilence.Forms.Wpf" Version="26.0.52" />
<PackageReference Include="Majorsilence.Forms.Wpf" />
paket add Majorsilence.Forms.Wpf --version 26.0.52
#r "nuget: Majorsilence.Forms.Wpf, 26.0.52"
#:package Majorsilence.Forms.Wpf@26.0.52
#addin nuget:?package=Majorsilence.Forms.Wpf&version=26.0.52
#tool nuget:?package=Majorsilence.Forms.Wpf&version=26.0.52
Majorsilence.Forms.Wpf
The WPF (System.Windows) platform backend for
Majorsilence.Forms — run a cross-platform
WinForms-style app on a real WPF Window, or embed Majorsilence.Forms controls inside an existing
WPF application one control at a time.
Majorsilence.Forms draws all of its own controls with SkiaSharp; this package is the host
underneath — a real WPF Window, the WPF Dispatcher message loop, the Microsoft.Win32 file
dialogs and System.Windows.Clipboard — with the Skia surface presented through a WriteableBitmap.
It is the WPF counterpart of Majorsilence.Forms.Avalonia, Majorsilence.Forms.Uno and
Majorsilence.Forms.WinForms, including their embedding direction (MajorsilenceFormsPresenter,
ToWpfElement(), ToWpfWindow()).
Windows-only at runtime, like WPF itself.
Target frameworks: net48 (classic .NET Framework 4.8 — pairs with the netstandard2.0 build of
Majorsilence.Forms), plus net8.0-windows and net10.0-windows for modern .NET.
Install
dotnet add package Majorsilence.Forms
dotnet add package Majorsilence.Forms.Wpf
// Program.cs — Majorsilence.Forms owns the app
[STAThread]
static void Main ()
{
Majorsilence.Forms.Backends.Platform.Backend = new Majorsilence.Forms.Wpf.WpfPlatformBackend ();
Majorsilence.Forms.Application.Run (new MainForm ());
}
Or embed in an existing WPF app:
myWpfGrid.Children.Add (myMfControl.ToWpfElement ());
// or set MajorsilenceFormsPresenter.Content directly
Why: migration in steps
- A WPF app can keep its shell and windows on WPF while individual screens move to
Majorsilence.Forms — each ported piece drops back in as a standard WPF
FrameworkElement. - When everything is ported, swap this package for
Majorsilence.Forms.AvaloniaorMajorsilence.Forms.Unoand the same code goes cross-platform. Nothing above the backend seam changes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- Majorsilence.Forms (>= 26.0.52)
-
net10.0-windows7.0
- Majorsilence.Forms (>= 26.0.52)
-
net8.0-windows7.0
- Majorsilence.Forms (>= 26.0.52)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.