-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add breaking changes for WPF #43309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add breaking changes for WPF #43309
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
50f2577
Add breaking changes for WPF
adegeo b1608b1
Fix
adegeo b0ebb22
Apply suggestions from code review
adegeo 157e627
adjust 3.0
adegeo b2285e3
add breaking change by version
adegeo 2402ab5
Fix link
adegeo 3d538bd
update table
adegeo 183944d
backlink from 3 to 7
adegeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
adegeo marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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. Upgrade to .NET 7 or later. | ||
adegeo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #### Affected APIs | ||
|
|
||
| - <xref:System.Windows.DataObject?displayProperty=fullName> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.