Repository navigation
[release/11.0] Restore WPF clipboard text auto conversion for managed data objects - #12125
Open
Shyam-Gupta wants to merge 5 commits into
Open
Shyam-Gupta wants to merge 5 commits into
Shyam-Gupta wants to merge 5 commits into
Conversation
Preserve Windows plain-text synthesis while retaining in-process custom payloads and legacy IDataObject retrieval. Add clipboard conversion regression coverage. Co-authored-by: Copilot <[email protected]> Copilot-Session: 918733ee-3532-46a0-92bb-728aaa5bb200 (cherry picked from commit ff095a9)
Report wrapped typed-retrieval support and cover native typed text reads plus .NET 9-style getter forwarding. Co-authored-by: Copilot <[email protected]> Copilot-Session: 918733ee-3532-46a0-92bb-728aaa5bb200 (cherry picked from commit 68ce741)
Co-authored-by: Copilot <[email protected]> Copilot-Session: e32c8108-e372-40cb-9809-70f4745be462
This was referenced Nov 12, 2026
Implement the shared-core capability contract without adding public API, so the property no longer depends on a modern .NET default interface implementation. Co-authored-by: Copilot <[email protected]> Copilot-Session: e32c8108-e372-40cb-9809-70f4745be462
Member
Author
|
Servicing approved over email. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #11968
Description
Restores Windows clipboard text auto conversion for WPF after the .NET 10 migration to shared OLE code.
WPF opts into a captured native fallback for Text , UnicodeText, and OEMText , while preserving managed custom-payload identity. Plain-text availability reflects Windows’ published clipboard formats, and convenience getters remain compatible with legacy IDataObject implementations.
Requires the corresponding shared-core changes in dotnet/winforms and an updated Microsoft.Private.Winforms dependency.
Customer Impact
Applications publishing ANSI text can incorrectly receive false from Clipboard.ContainsText() or empty text from Clipboard.GetText(), breaking clipboard workflows that worked in .NET 9.
Regression
Yes. Fixes a .NET 10 regression in clipboard text conversion.
Testing
Added coverage for native text synthesis before and after flushing, disabled managed conversion, published-format availability, typed and legacy retrieval, custom-payload identity, and RTF negative controls.
Validation used the matching local shared-core package:
Risk
Moderate. Native fallback is restricted to three plain-text formats and enabled only for WPF; unrelated formats retain their existing retrieval paths, and WinForms remains opted out.
Microsoft Reviewers: Open in CodeFlow