.NET Core 3.0 supports Windows desktop applications using Windows Presentation Foundation (WPF) and Windows Forms. These frameworks also support using modern controls and Fluent styling from the Windows UI XAML Library (WinUI) via XAML islands.
The Windows Desktop component is part of the Windows .NET Core 3.0 SDK.
You can create a new WPF or Windows Forms app with the following dotnet commands:
dotnet new wpf
dotnet new winforms
Visual Studio 2019 adds New Project templates for .NET Core 3.0 Windows Forms and WPF.
In .NET Core 3.0, the MSI installer for Windows has changed. The SDK installers will now upgrade SDK feature-band releases in place.
.NET Core Windows Forms applications can set high DPI mode with Application.SetHighDpiMode(HighDpiMode)
. The SetHighDpiMode
method sets the corresponding high DPI mode unless the setting has been set by other means like App.Manifest
or P/Invoke
before Application.Run
.
The possible highDpiMode values, as expressed by the System.Windows.Forms.HighDpiMode
enum is as follows.