Skip to content

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

Draft
Copilot wants to merge 22 commits intomainfrom
copilot/update-whats-new-preview-4
Draft

Update .NET 11 desktop “What’s new” docs for Preview 4 (WPF + WinForms)#2233
Copilot wants to merge 22 commits intomainfrom
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 changes and retains Preview 3 bug-fix content, 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 and typed→legacy fallback behavior.
    • Added API xrefs for Clipboard.GetDataObject, DataObject.GetImage, and Clipboard.GetImage.
    • Added the requested clipboard round-trip code snippet.
    • 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.
    • Kept Preview 3 bug-fix details and a Preview 4 no-updates statement.
  • 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.
## Bug fixes

In .NET 11 Preview 4, <xref:System.Windows.Forms.Clipboard.GetDataObject> and <xref:System.Windows.Forms.DataObject.GetImage> return bitmap images placed on the clipboard. `DataObject.GetImage` checks the typed clipboard pipeline first, and falls back to the legacy path so the behavior matches <xref:System.Windows.Forms.Clipboard.GetImage>.

The following code now round-trips bitmap images when `bitmap` is an existing <xref:System.Drawing.Bitmap>:

```csharp
// This code round-trips bitmap images again on .NET 11 Preview 4.
Clipboard.SetImage(bitmap);
Image? image = Clipboard.GetDataObject()?.GetImage();

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 on lines +39 to +41
## No updates

Windows Forms hasn't had any notable updates in .NET 11 Preview releases.
Windows Forms does not have notable updates in .NET 11 Preview 3.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@copilot get rid of this section, not needed anymore, now that there has been an update.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed that section in commit 6d902c5. Screenshot: N/A (docs-only change).

Copilot AI and others added 2 commits May 8, 2026 17:40
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 on lines +33 to +35
## No updates

WPF has no notable updates in .NET 11 Preview 4.
Copy link
Copy Markdown
Contributor

@adegeo adegeo May 8, 2026

Choose a reason for hiding this comment

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

@copilot No need to point out no updates for specific releases

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

2 participants