forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add breaking changes for WPF (dotnet#43309)
* Add breaking changes for WPF * Fix * Apply suggestions from code review Co-authored-by: Genevieve Warren <[email protected]> * adjust 3.0 * add breaking change by version * Fix link * update table * backlink from 3 to 7 --------- Co-authored-by: Genevieve Warren <[email protected]>
- Loading branch information
Showing
7 changed files
with
128 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Windows Presentation Foundation for .NET Core 3.0 | ||
description: Lists the breaking changes in Windows Presentation Foundation for .NET Core 3.0 | ||
ms.date: 11/05/2024 | ||
--- | ||
# 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](#altered-drag-and-drop-behavior-on-text-editors) | 3.0 | | ||
|
||
## .NET Core 3.0 | ||
|
||
[!INCLUDE[Default value of HttpRequestMessage.Version changed to 1.1](~/includes/core-changes/wpf/3.0/drag-and-drop.md)] | ||
|
||
*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: "Breaking change: 'Revert behavior with text drag-and-drop operations'" | ||
description: Learn about a breaking change in Windows Presentation Foundation (WPF) and .NET 7. Drag-and-drop behavior was reverted to .NET Framework behavior when dragging text from a text editor control. | ||
ms.date: 11/4/2024 | ||
ai-usage: ai-assisted | ||
--- | ||
|
||
# Drag-and-drop operations in text editors | ||
|
||
.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 .NET Framework, ensuring consistency in how data is set during drag operations. | ||
|
||
## Version introduced | ||
|
||
.NET 7 | ||
|
||
## Previous behavior | ||
|
||
In .NET Core 3.0 through .NET 6, the data type on <xref:System.Windows.DataObject?displayProperty=fullName> when dragging text from a text editor control was <xref:System.Windows.DataFormats.Text?displayProperty=nameWithType> or <xref:System.Windows.DataFormats.UnicodeText?displayProperty=nameWithType>. | ||
|
||
## New behavior | ||
|
||
Starting in .NET 7, 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>. | ||
|
||
## Type of breaking change | ||
|
||
This change is a [behavioral change](../../categories.md#behavioral-change). | ||
|
||
## Reason for change | ||
|
||
The change was made to revert an unintentional change in .NET 3.0 and match the behavior of .NET Framework. | ||
|
||
## Recommended action | ||
|
||
Upgrade older projects to the latest version of .NET to restore the behavior. | ||
|
||
## Affected APIs | ||
|
||
- <xref:System.Windows.DataObject?displayProperty=fullName> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: "Breaking change: 'Text drag-and-drop operations'" | ||
description: Learn about a breaking change in Windows Presentation Foundation (WPF) in .NET Core 3.0. Drag-and-drop behavior changed when dragging text from a text editor control. | ||
ms.date: 11/4/2024 | ||
ms.topic: include | ||
ai-usage: ai-assisted | ||
--- | ||
|
||
### Altered drag-and-drop behavior on text editors | ||
|
||
.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>. | ||
|
||
#### Version introduced | ||
|
||
.NET Core 3.0 | ||
|
||
#### Category | ||
|
||
Windows Presentation Foundation | ||
|
||
#### Previous behavior | ||
|
||
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>. | ||
|
||
#### New behavior | ||
|
||
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>. | ||
|
||
#### Type of breaking change | ||
|
||
This change is a [behavioral change](../../../../docs/core/compatibility/categories.md). | ||
|
||
#### Reason for change | ||
|
||
The change was unintentional. | ||
|
||
#### Recommended action | ||
|
||
This change was [reverted in .NET 7](../../../../docs/core/compatibility/wpf/7.0/drag-and-drop.md). Upgrade to .NET 7 or later. | ||
|
||
#### Affected APIs | ||
|
||
- <xref:System.Windows.DataObject?displayProperty=fullName> |