Skip to content

Commit 50f2577

Browse files
committed
Add breaking changes for WPF
1 parent dc3f03f commit 50f2577

File tree

5 files changed

+113
-0
lines changed

5 files changed

+113
-0
lines changed

docs/core/compatibility/3.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,14 @@ If you're migrating to version 3.0 of .NET Core, ASP.NET Core, or EF Core, the b
380380

381381
***
382382

383+
## WPF
384+
385+
| Title | Type of change |
386+
|----------------------------------------------------------------------------------------------------------|-------------------|
387+
| [Drag-and-drop behavior changed when dragging text from a text editor control](wpf/3.0/drag-and-drop.md) | Behavioral change |
388+
389+
***
390+
383391
## See also
384392

385393
- [What's new in .NET Core 3.0](../whats-new/dotnet-core-3-0.md)

docs/core/compatibility/7.0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ If you're migrating an app to .NET 7, the breaking changes listed here might aff
156156
| [Obsoletions and warnings](windows-forms/7.0/obsolete-apis.md) | ✔️ ||
157157
| [Some APIs throw ArgumentNullException](windows-forms/7.0/apis-throw-argumentnullexception.md) || ✔️ |
158158

159+
## WPF
160+
161+
| Title | Type of change |
162+
|----------------------------------------------------------------------------------------|-------------------|
163+
| [Restored drag-and-drop operations behavior on text editors](wpf/7.0/drag-and-drop.md) | Behavioral change |
164+
159165
## XML and XSLT
160166

161167
| Title | Binary compatible | Source compatible |

docs/core/compatibility/wpf.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: WPF breaking changes
3+
description: Lists the breaking changes in Windows Presentation Foundation for .NET
4+
ms.date: 11/04/2024
5+
---
6+
# Breaking changes in Windows Presentation Foundation
7+
8+
Windows Presentation Foundation (WPF) support was added to .NET Core 3.0, and has continued to evolve with the latest releases of .NET. This article lists the breaking changes for WPF.
9+
10+
The following breaking changes are documented on this page:
11+
12+
| Breaking change | Version introduced |
13+
| - | :-: |
14+
| [Restored drag-and-drop operations behavior on text editors](wpf/7.0/drag-and-drop.md) | 7.0 |
15+
| [Drag-and-drop behavior changed when dragging text from a text editor control](wpf/3.0/drag-and-drop.md) | 3.0 |
16+
17+
## .NET 7
18+
19+
- [Restored drag-and-drop operations behavior on text editors](wpf/7.0/drag-and-drop.md)
20+
21+
## .NET Core 3.0
22+
23+
- [Drag-and-drop behavior changed when dragging text from a text editor control](wpf/3.0/drag-and-drop.md)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "Breaking change: 'Text drag-and-drop operations'"
3+
description: Learn about a breaking change in Windows Presentation Foundation (WPF) and .NET Core 3.0. Drag-and-drop behavior changed when dragging text from a text editor control.
4+
ms.date: 11/4/2024
5+
ai-usage: ai-assisted
6+
---
7+
8+
# .NET Core 3.0 altered drag-and-drop behavior on text editors
9+
10+
.NET Core 3.0 introduced a change in how text editor controls create a <xref:System.Windows.DataObject?displayProperty=fullName> when dragging text to another control. The change disabled autoconversion, causing the operation to keep the data as <xref:System.Windows.DataFormats.Text?displayProperty=nameWithType> or <xref:System.Windows.DataFormats.UnicodeText?displayProperty=nameWithType> instead of converting it to <xref:System.Windows.DataFormats.StringFormat?displayProperty=nameWithType>.
11+
12+
## Version introduced
13+
14+
.NET Core 3.0
15+
16+
## Previous behavior
17+
18+
The data type on <xref:System.Windows.DataObject?displayProperty=fullName> when dragging text from a text editor control was <xref:System.Windows.DataFormats.StringFormat?displayProperty=nameWithType>.
19+
20+
## New behavior
21+
22+
The data type on <xref:System.Windows.DataObject?displayProperty=fullName> when dragging text from a text editor control is <xref:System.Windows.DataFormats.Text?displayProperty=nameWithType> or <xref:System.Windows.DataFormats.UnicodeText?displayProperty=nameWithType>.
23+
24+
## Type of breaking change
25+
26+
This change is a [behavioral change](../../categories.md#behavioral-change).
27+
28+
## Reason for change
29+
30+
The change was unintentional.
31+
32+
## Recommended action
33+
34+
This change was reverted in .NET 7. Upgrade to .NET 7 or later.
35+
36+
## Affected APIs
37+
38+
- <xref:System.Windows.DataObject?displayProperty=fullName>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "Breaking change: 'Revert behavior with text drag-and-drop operations'"
3+
description: Learn about a breaking change in Windows Presentation Foundation (WPF) and .NET 7. Drag-and-drop behavior was reverted to .NET Framework behavior behavior when dragging text from a text editor control.
4+
ms.date: 11/4/2024
5+
ai-usage: ai-assisted
6+
---
7+
8+
# .NET 7 restored drag-and-drop operations behavior on text editors
9+
10+
.NET 7 addresses a regression introduced in .NET Core 3.0 concerning drag operations in text editor controls. This update restores the behavior to match that of the .NET Framework, ensuring consistency in how data is set during drag operations.
11+
12+
## Version introduced
13+
14+
.NET 7
15+
16+
## Previous behavior
17+
18+
The data type on <xref:System.Windows.DataObject?displayProperty=fullName> when dragging text from a text editor control is <xref:System.Windows.DataFormats.Text?displayProperty=nameWithType> or <xref:System.Windows.DataFormats.UnicodeText?displayProperty=nameWithType>.
19+
20+
## New behavior
21+
22+
The data type on <xref:System.Windows.DataObject?displayProperty=fullName> when dragging text from a text editor control is <xref:System.Windows.DataFormats.StringFormat?displayProperty=nameWithType>.
23+
24+
## Type of breaking change
25+
26+
This change is a [behavioral change](../categories.md#behavioral-change).
27+
28+
## Reason for change
29+
30+
The change is made to match the behavior of the .NET Framework, ensuring consistency and expected behavior across different .NET versions.
31+
32+
## Recommended action
33+
34+
Upgrade older projects to the latest version of .NET to restore the behavior.
35+
36+
## Affected APIs
37+
38+
- <xref:System.Windows.DataObject?displayProperty=fullName>

0 commit comments

Comments
 (0)