You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotnet-desktop-guide/winforms/whats-new/net100.md
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,19 @@ title: What's new in WinForms for .NET 10 Preview
3
3
description: Learn about what's new in Windows Forms for .NET 10 Preview. New versions of Windows Forms are released yearly with .NET.
4
4
ms.topic: whats-new
5
5
ms.service: dotnet-desktop
6
-
ms.date: 04/09/2025
6
+
ms.date: 05/12/2025
7
7
#customer intent: As a developer, I want to know what's changed so that I can remain up-to-date.
8
8
---
9
9
10
10
# What's new in Windows Forms for .NET 10 Preview
11
11
12
12
This article provides a high-level overview about what's new with Windows Forms (WinForms) in .NET 10 Preview. For detailed information, see the [release announcements](#release-announcements).
@@ -29,6 +30,22 @@ Windows Forms is shipping new code for the clipboard API. The clipboard is redes
29
30
30
31
Several <xref:System.Drawing.Design.UITypeEditor> types have been ported from .NET Framework, including `ToolStripCollectionEditor` and several editors related to the <xref:System.Windows.Forms.DataGridView> control. These editors are now discoverable by the <xref:System.Windows.Forms.PropertyGrid> and the Windows Forms Designer Actions panel.
31
32
33
+
SnapLines were fixed for custom designers.
34
+
35
+
## Bug fixes
36
+
37
+
If the <xref:System.Windows.Forms.DataGridView> was in edit mode while the hosting dialog was closed, it would throw `InvalidOperationException`. The bug causing this has been fixed.
38
+
32
39
## Accessability
33
40
34
41
Improved NVDA screen reader support.
42
+
43
+
## Analyzer improvements
44
+
45
+
Existing analyzers have been fine-tuned to reduce false positives.
46
+
47
+
New analyzers have been added:
48
+
49
+
-[Warning WFDEV004 - `Form.OnClosing`, `Form.OnClosed` and the corresponding events are obsolete.](../wfdev-diagnostics/wfdev004.md)
50
+
-[Warning WFDEV005 - `GetData` methods are obsolete. Use `TryGetData<T>` methods instead.](../wfdev-diagnostics/wfdev005.md)
51
+
-[Warning WFDEV006 - Some controls are obsolete. They're provided for binary compatibility with .NET Framework.](../wfdev-diagnostics/wfdev006.md)
Copy file name to clipboardExpand all lines: dotnet-desktop-guide/wpf/whats-new/net100.md
+61-4Lines changed: 61 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: What's new in WPF for .NET 10 Preview
3
3
description: Learn about what's new in Windows Presentation Foundation (WPF) for .NET 10 Preview. New versions of WPF are released yearly with .NET.
4
4
ms.topic: whats-new
5
-
ms.date: 04/09/2025
5
+
ms.date: 05/12/2025
6
6
ms.service: dotnet-desktop
7
7
#customer intent: As a developer, I want to know what's changed so that I can remain up-to-date.
8
8
---
@@ -11,10 +11,11 @@ ms.service: dotnet-desktop
11
11
12
12
This article provides a high-level overview about what's new with Windows Presentation Foundation (WPF) in .NET 10 Preview. For detailed information, see the [release announcements](#release-announcements).
@@ -25,14 +26,36 @@ Performance was improved by replacing internal data structures with base .NET ty
25
26
26
27
Enhanced performance by optimizing cache operations, array handling, and migrating font collection loader to managed code.
27
28
29
+
Performance was optimized across font rendering, dynamic resources, input composition, trace logging, regex usage, and XAML parsing.
30
+
28
31
## Fluent style changes
29
32
30
33
Various bug fixes have been addressed in .NET 10, to improve the Fluent UI style support in WPF. Fluent UI style support is still in progress.
31
34
32
-
- Fluent styles added more controls, such as <xref:System.Windows.Controls.Label>, <xref:System.Windows.Documents.Hyperlink>, <xref:System.Windows.Navigation.NavigationWindow>, <xref:System.Windows.Controls.GroupBox>, and <xref:System.Windows.Controls.GridSplitter>.
- Fixed the animation for <xref:System.Windows.Controls.Expander>.
34
47
- Fixed crashes related to `HighContrast`.
35
48
- Added missing <xref:System.Windows.Controls.ContentPresenter.RecognizesAccessKey> for controls.
49
+
- Right-to-left layout issues have been fixed for <xref:System.Windows.Controls.MenuItem>, <xref:System.Windows.Controls.Expander>, <xref:System.Windows.Controls.TreeViewItem>.
50
+
51
+
> [!WARNING]
52
+
> .NET 10 Preview 4 introduced a bug related to fluent styles. For more information, see [.NET 10 Preview 4 release notes](https://aka.ms/dotnet/10/preview4).
53
+
54
+
## Clipboard changes
55
+
56
+
WPF and Windows Forms now use the same clipboard API. Both desktop technologies unify how they interact with the clipboard.
57
+
58
+
.NET 9 obsoleted `BinaryFormatter`, which is used in some clipboard operations. These clipboard operations required you to opt in to compatibility package, or work around the operation. To ease the pain of moving away from `BinaryFormatter`, .NET 10 is obsoleting certain clipboard methods to indicate that they shouldn't be used. More methods are being added to help JSON serialization with clipboard data, circumventing the need for `BinaryFormatter`.
36
59
37
60
## Bug fixes
38
61
@@ -52,7 +75,41 @@ Moving out of .NET Framework left behind unused Code Access Security (CAS) relat
52
75
- Remove unused CAS and XBAP code from `OleCmdHelper/ISecureCommand`.
53
76
- Remove unused CAS code from `FontSourceCollection/FontSource`.
54
77
55
-
Conducted extensive code cleanups, including syntax standardization and argument clarity, to improve code readability and maintainability.
78
+
Conducted extensive code cleanups, including syntax standardization and argument clarity, to improve code readability and maintainability. Debugging patterns were modernized and legacy constructs like `ArrayList` were phased out for maintainability.
79
+
80
+
## New APIs
81
+
82
+
Community contributor **bstordrup** enhanced the `MessageBox` with more button and result options. For more information, see [#9613](https://github.com/dotnet/wpf/issues/9613).
0 commit comments