Skip to content

[Breaking change]: WPF for .NET Core 3.0 altered how the text editor controls set data objects for drag operations #43282

@adegeo

Description

@adegeo

Description

.NET Core 3.0 introduced a change for how the text editor controls would create a System.Windows.DataObject when grabbing text to drag to another control. The code disabled autoconversion, which caused the operation to not convert the data to DataFormats.StringFormat and instead keep it as DataFormats.Text or DataFormats.UnicodeText. This was a change

Version

Other (please put exact version in description textbox)

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

  • Binary incompatible: Existing binaries might encounter a breaking change in behavior, such as failure to load or execute, and if so, require recompilation.
  • Source incompatible: When recompiled using the new SDK or component or to target the new runtime, existing source code might require source changes to compile successfully.
  • Behavioral change: Existing binaries might behave differently at run time.

Reason for change

Unintentional change.

Recommended action

This change was reverted in .NET 7. Upgrade to .NET 7 or later.

Feature area

Windows Presentation Foundation (WPF)

Affected APIs

No response


Associated WorkItem - 340207

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.breaking-changeIndicates a .NET Core breaking changein-prThis issue will be closed (fixed) by an active pull request.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions