* Add toc entry * temp * Add whats new article * Minor updates * Update cards * Update cards * Update cards * Another link * Acro * Apply suggestions from code review Co-authored-by: Tom Dykstra <[email protected]> Co-authored-by: Tom Dykstra <[email protected]>
3.1 KiB
title, description, ms.date, ms.topic
| title | description | ms.date | ms.topic |
|---|---|---|---|
| What's new in Windows Forms | Learn about what's new in Windows Forms for .NET. Windows Forms. .NET provides new features and enhancements over .NET Framework. | 11/05/2020 | conceptual |
What's new (Windows Forms.NET)
Windows Forms for .NET 5.0 adds the following features and enhancements over .NET Framework.
There are a few breaking changes you should be aware of when migrating from .NET Framework to .NET 5.0. For more information, see Breaking changes in Windows Forms.
Enhanced features
-
Microsoft UI Automation patterns work better with accessibility tools like Narrator and Jaws.
-
Improved performance and reliability.
-
Better support for high DPI resolutions such as 4k monitors.
-
The default font matches the current Windows design recommendations.
Caution
This may impact the layout of apps migrated from .NET Framework.
New controls
The following controls have been added since Windows Forms was ported to .NET Framework:
-
xref:System.Windows.Forms.TaskDialog?displayProperty=fullName
A task dialog is a dialog box that can be used to display information and receive simple input from the user. Like a message box, it's formatted by the operating system according to parameters you set. Task dialog has more features than a message box. For more information, see the Task dialog sample.
-
xref:Microsoft.Web.WebView2.WinForms.WebView2?displayProperty=fullName
A new web browser control with modern web support. Based on Edge (Chromium). For more information, see Getting started with WebView2 in Windows Forms.
Enhanced controls
-
xref:System.Windows.Forms.ListView?displayProperty=fullName
- Supports collapsible groups.
- Footers
- Group subtitle, task, title images, and collapse/expand functionality.
-
xref:System.Windows.Forms.FolderBrowserDialog?displayProperty=fullName
This dialog has been upgraded to use the modern Windows experience instead of the old Windows 7 experience.
-
xref:System.Windows.Forms.FileDialog?displayProperty=fullName
-
Added support for xref:System.Windows.Forms.FileDialog.ClientGuid.
ClientGuidenables a calling application to associate a GUID with a dialog's persisted state. A dialog's state can include factors such as the last visited folder and the position and size of the dialog. Typically, this state is persisted based on the name of the executable file. WithClientGuid, an application can persist different states of the dialog within the same application.
-
-
xref:System.Windows.Forms.TextRenderer?displayProperty=fullName
Support added for xref:System.ReadOnlySpan%601 to enhance performance of rendering text.