Skip to content
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

Refactor existing Clipboard code #10495

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

JeremyKuhne
Copy link
Member

@JeremyKuhne JeremyKuhne commented Feb 24, 2025

This is a draft PR that brings the existing Clipboard code up to date with the latest standards. It includes my other pending PR commits.

Cleaning up the existing code makes it easier to put together a draft that uses the shared code from System.Private.Windows.Core.

This shouldn't be squashed so it will retain the changes I made after breaking out the nested classes.

Microsoft Reviewers: Open in CodeFlow

This uses the shared DataFormats code from System.Private.Windows.Core.

Note that locking is handled by the shared code so there is no need to do so when adding the WPF specific types. The only reason they need added is that casing will stick with whatever the first request is. That is, if you ask for "XAML" that will be the string Windows gives back, not "Xaml".
Bring code closer to current standards.
@JeremyKuhne JeremyKuhne added * NO MERGE * metadata: The PR is not ready for merge yet (see discussion for detailed reasons) draft labels Feb 24, 2025
@JeremyKuhne JeremyKuhne requested review from a team as code owners February 24, 2025 21:42
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage and removed draft labels Feb 24, 2025
Switch to using a typed dictionary. Extra fields in DataStoreEntry were never used. Removed to align with shared implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
* NO MERGE * metadata: The PR is not ready for merge yet (see discussion for detailed reasons) PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant