What's new in Windows Forms
Each .NET release introduces a new version of Windows Forms (WinForms). This article gives you a summery of what's new in each release.
This section describes the main changes to WinForms for each .NET 10 Preview.
- .NET 10 Preview 1
WinForms in .NET 9 introduces several modern improvements. The asynchronous forms functionality provides APIs to help run UI-related operations asynchronously, making it easier to integrate with contemporary asynchronous programming patterns. The removal of BinaryFormatter eliminates a long-standing security risk by preventing unsafe deserialization practices. Additionally, experimental dark mode support has been added, allowing applications to adapt their color schemes to better suit dark environments.
- Async forms
- BinaryFormatter no longer supported
- Dark mode
- FolderBrowserDialog enhancements
- System.Drawing new features and enhancements
- ToolStrip
In .NET 8, Windows Forms has again enhanced DPI support, notably through Visual Studio DPI improvements. This enhancement allows the Windows Designer to run in a DPI-unaware mode independently from Visual Studio, ensuring that your app’s design remains sharp while Visual Studio itself stays at its native DPI setting. Another key focus area was data binding improvements and button commands.
- Data binding improvements
- Button commands
- Visual Studio DPI improvements
- High DPI improvements
- Miscellaneous improvements
In .NET 7, significant improvements have been made to High DPI rendering. These enhancements ensure that nested controls, such as buttons within panels on tab pages, scale correctly according to the current monitor's DPI settings. This feature, which is opt-in for .NET 7, will be enabled by default in .NET 8.
- Overview of WinForms on .NET 7
- High DPI improvements
- Accessibility improvements and fixes
- Data binding improvements (preview)
- Miscellaneous improvements
- See also
The focus of .NET 5 for WinForms included updated templates for C# that use global directives, file-scoped namespaces, and nullable reference types. A new application bootstrap was introduced, which simplifies the configuration of Windows Forms applications by using the ApplicationConfiguration.Initialize
method.
- Overview of WinForms on .NET 6
- Updated templates for C#
- New application bootstrap
- Change the default font
- Visual Studio designer improvements
- High DPI improvements for PerMonitorV2
- New APIs
- Updated APIs
- Improved accessibility
The focus of .NET 5 for WinForms was to introduce enhanced features, new controls, and improved existing controls.
Commentaires sur .NET Desktop feedback
.NET Desktop feedback est un projet open source. Sélectionnez un lien pour fournir des commentaires :