Breaking changes in Windows Presentation Foundation for .NET Core 3.0
Windows Forms support was added to .NET Core in version 3.0. This article lists breaking changes for Windows Forms by the .NET version in which they were introduced. If you're upgrading a Windows Forms app from .NET Framework or from a previous version of .NET Core (3.0 or later), this article applies to you.
The following breaking changes are documented on this page:
Breaking change | Version introduced |
---|---|
Altered drag-and-drop behavior on text editors | 3.0 |
.NET Core 3.0
Altered drag-and-drop behavior on text editors
.NET Core 3.0 introduced a change in how text editor controls create a System.Windows.DataObject when dragging text to another control. The change disabled autoconversion, causing the operation to keep the data as DataFormats.Text or DataFormats.UnicodeText instead of converting it to DataFormats.StringFormat.
Version introduced
.NET Core 3.0
Category
Windows Presentation Foundation
Previous behavior
The data type on System.Windows.DataObject when dragging text from a text editor control was DataFormats.StringFormat.
New behavior
The data type on System.Windows.DataObject when dragging text from a text editor control is DataFormats.Text or DataFormats.UnicodeText.
Type of breaking change
This change is a behavioral change.
Reason for change
The change was unintentional.
Recommended action
This change was reverted in .NET 7. Upgrade to .NET 7 or later.