Skip to content

Update .NET 11 desktop “What’s new” docs for Preview 4 (WPF + WinForms)#2233

Merged
adegeo merged 26 commits into
mainfrom
copilot/update-whats-new-preview-4
May 13, 2026
Merged

Update .NET 11 desktop “What’s new” docs for Preview 4 (WPF + WinForms)#2233
adegeo merged 26 commits into
mainfrom
copilot/update-whats-new-preview-4

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Updates the .NET 11 desktop “What’s new” content for Preview 4 and aligns the .NET 11 article layout with net100.md (no per-preview subheadings in detail sections). WPF reflects no Preview 4 feature additions while retaining the existing bug-fix running list, and WinForms documents the Preview 4 clipboard bitmap retrieval fix with a round-trip snippet.

  • WinForms: Preview 4 content refresh

    • Updated dotnet-desktop-guide/winforms/whats-new/net110.md metadata and heading to Preview 4.
    • Added Preview 4 release announcement link.
    • Documented the Clipboard.GetDataObject().GetImage() / DataObject.GetImage() bitmap fix.
    • Corrected behavior details to state that DataObject.GetImage uses typed pipeline retrieval (TryGetData<Image>(DataFormats.Bitmap, autoConvert: true, ...)) and returns null when retrieval fails.
    • Added API xrefs for Clipboard.GetDataObject, DataObject.GetImage, and Clipboard.GetImage.
    • Added the requested clipboard round-trip code snippet (including the Preview 4 round-trip comment).
    • Removed the obsolete Preview 3 No updates section now that Preview 4 includes updates.
  • WPF: Preview 4 content refresh

    • Updated dotnet-desktop-guide/wpf/whats-new/net110.md metadata and heading to Preview 4.
    • Added Preview 4 release announcement link.
    • Preserved running-list content without per-preview detail subheadings or release-specific no-updates callouts.
    • Kept existing bug-fix details in the running list.
  • Index updates

    • Updated Preview section/version text in:
      • dotnet-desktop-guide/winforms/whats-new/index.md
      • dotnet-desktop-guide/wpf/whats-new/index.md
    • WinForms index links to Preview 4 overview + bug-fix anchor.
    • WPF index links to Preview 4 overview.

Internal previews

📄 File 🔗 Preview link
dotnet-desktop-guide/winforms/whats-new/index.md dotnet-desktop-guide/winforms/whats-new/index
dotnet-desktop-guide/winforms/whats-new/net110.md dotnet-desktop-guide/winforms/whats-new/net110
dotnet-desktop-guide/wpf/whats-new/index.md dotnet-desktop-guide/wpf/whats-new/index
dotnet-desktop-guide/wpf/whats-new/net110.md dotnet-desktop-guide/wpf/whats-new/net110

Copilot AI linked an issue May 8, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Update what's new for .NET 11 Preview 4 changes Update .NET 11 desktop “What’s new” docs for Preview 4 (WPF + WinForms) May 8, 2026
Copilot finished work on behalf of adegeo May 8, 2026 17:14
Copilot AI requested a review from adegeo May 8, 2026 17:14
@adegeo
Copy link
Copy Markdown
Contributor

adegeo commented May 8, 2026

@copilot the updates in the .net 11 preview whats new articles are running lists, don't erase existing items. Also, here's code that now roundtrips for the winforms clipboard fix, add it:

// Round-trips again on .NET 11 Preview 4
Clipboard.SetImage(bitmap);
Image? image = Clipboard.GetDataObject()?.GetImage();

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 8, 2026

@copilot the updates in the .net 11 preview whats new articles are running lists, don't erase existing items. Also, here's code that now roundtrips for the winforms clipboard fix, add it:

Updated. I restored the running-list entries in both .NET 11 preview articles and added the requested WinForms clipboard round-trip code snippet in net110.md. Addressed in commit 30d6716 (plus follow-up style refinements in f3b94a1).

@adegeo
Copy link
Copy Markdown
Contributor

adegeo commented May 8, 2026

@copilot almost there. for styling and layout, check how net100.md is formed. No need to call out individual previews in the details.

Copilot AI and others added 9 commits May 8, 2026 17:34
Comment thread dotnet-desktop-guide/winforms/whats-new/net110.md Outdated
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 8, 2026

@copilot almost there. for styling and layout, check how net100.md is formed. No need to call out individual previews in the details.

Updated to match the net100.md layout: I removed per-preview subheadings from the detail sections and kept the running-list content in section prose. Addressed in commit 2ccf140 with follow-up wording/style refinements through 8444a62. Screenshot: N/A (docs-only change).

Copilot finished work on behalf of adegeo May 8, 2026 17:44
Comment thread dotnet-desktop-guide/wpf/whats-new/net110.md Outdated
Comment thread dotnet-desktop-guide/winforms/whats-new/net110.md Outdated
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 11, 2026

@copilot the updates in the .net 11 preview whats new articles are running lists, don't erase existing items. Also, here's code that now roundtrips for the winforms clipboard fix, add it:

Updated in 960e232: the running-list content remains, and I added the requested round-trip snippet comment text. Screenshot: N/A (docs-only change).

@copilot almost there. for styling and layout, check how net100.md is formed. No need to call out individual previews in the details.

Adjusted to the net100.md-style layout in 7617dfd, with detail sections kept as running-list prose and no per-preview callout headings. Screenshot: N/A (docs-only change).

Copilot AI requested a review from adegeo May 11, 2026 22:10
Copilot finished work on behalf of adegeo May 11, 2026 22:10
@adegeo adegeo marked this pull request as ready for review May 12, 2026 23:12
Copilot AI review requested due to automatic review settings May 12, 2026 23:12
@adegeo adegeo enabled auto-merge (squash) May 12, 2026 23:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the WPF and Windows Forms “What’s new” documentation for .NET 11 Preview 4, refreshes metadata and release-announcement links, and adjusts the index pages to point at the Preview 4 content.

Changes:

  • Updated WPF and WinForms .NET 11 “What’s new” pages to Preview 4 (titles, dates, release announcement link, and wording).
  • Added a WinForms Preview 4 bug-fix entry describing clipboard bitmap retrieval behavior and an example snippet.
  • Updated WPF and WinForms “What’s new” index pages to reference .NET 11 Preview 4.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
dotnet-desktop-guide/wpf/whats-new/net110.md Bumps WPF .NET 11 “What’s new” to Preview 4, adds Preview 4 release link, and refines bug-fix bullets.
dotnet-desktop-guide/wpf/whats-new/index.md Updates index text to Preview 4 and adjusts the Preview section links.
dotnet-desktop-guide/winforms/whats-new/net110.md Bumps WinForms .NET 11 “What’s new” to Preview 4, adds Preview 4 release link, and documents a clipboard bitmap retrieval fix with a snippet.
dotnet-desktop-guide/winforms/whats-new/index.md Updates index text to Preview 4 and adds a link to the bug-fix section.
Comments suppressed due to low confidence (1)

dotnet-desktop-guide/winforms/whats-new/net110.md:37

  • The snippet calls GetImage() on the result of Clipboard.GetDataObject(), but GetDataObject() returns IDataObject, which doesn't expose GetImage(). Update the example to use Clipboard.GetImage(), or cast the returned IDataObject to DataObject before calling GetImage().
  ```csharp
  // Round-trips again on .NET 11 Preview 4
  Clipboard.SetImage(bitmap);
  Image? image = Clipboard.GetDataObject()?.GetImage();
</details>

Comment thread dotnet-desktop-guide/winforms/whats-new/net110.md Outdated
Comment thread dotnet-desktop-guide/wpf/whats-new/index.md
Comment thread dotnet-desktop-guide/wpf/whats-new/net110.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@wadepickett wadepickett self-requested a review May 13, 2026 17:41
Copy link
Copy Markdown
Contributor

@wadepickett wadepickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Assuming the few items alerady noted are being addressed.

Clipboard.GetDataObject returning bitmaps vs IDataObject fix suggested is important.

adegeo and others added 2 commits May 13, 2026 10:45
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@adegeo adegeo disabled auto-merge May 13, 2026 17:49
@adegeo adegeo merged commit 3aac2c9 into main May 13, 2026
8 checks passed
@adegeo adegeo deleted the copilot/update-whats-new-preview-4 branch May 13, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET 11 Preview 4 updates for WPF and WinForms

5 participants