Update .NET 11 desktop “What’s new” docs for Preview 4 (WPF + WinForms)#2233
Conversation
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/375e7483-c30d-4416-a54e-4ca31e257ff7 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
|
@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(); |
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/3dea920b-d602-4b03-92fc-6e8b8eba281c Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/3dea920b-d602-4b03-92fc-6e8b8eba281c Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/3dea920b-d602-4b03-92fc-6e8b8eba281c Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/3dea920b-d602-4b03-92fc-6e8b8eba281c Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Updated. I restored the running-list entries in both .NET 11 preview articles and added the requested WinForms clipboard round-trip code snippet in |
|
@copilot almost there. for styling and layout, check how net100.md is formed. No need to call out individual previews in the details. |
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Updated to match the |
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/38cb06c7-0a56-4407-aaf1-2bfb78796684 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/b881a482-e945-477f-b63b-f3a92a4f7711 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/docs-desktop/sessions/1564fd91-3000-4dd4-9e61-a34318fa0f5a Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Updated in
Adjusted to the |
There was a problem hiding this comment.
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 ofClipboard.GetDataObject(), butGetDataObject()returnsIDataObject, which doesn't exposeGetImage(). Update the example to useClipboard.GetImage(), or cast the returnedIDataObjecttoDataObjectbefore callingGetImage().
```csharp
// Round-trips again on .NET 11 Preview 4
Clipboard.SetImage(bitmap);
Image? image = Clipboard.GetDataObject()?.GetImage();
</details>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
wadepickett
left a comment
There was a problem hiding this comment.
Approved. Assuming the few items alerady noted are being addressed.
Clipboard.GetDataObject returning bitmaps vs IDataObject fix suggested is important.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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
dotnet-desktop-guide/winforms/whats-new/net110.mdmetadata and heading to Preview 4.Clipboard.GetDataObject().GetImage()/DataObject.GetImage()bitmap fix.DataObject.GetImageuses typed pipeline retrieval (TryGetData<Image>(DataFormats.Bitmap, autoConvert: true, ...)) and returnsnullwhen retrieval fails.Clipboard.GetDataObject,DataObject.GetImage, andClipboard.GetImage.WPF: Preview 4 content refresh
dotnet-desktop-guide/wpf/whats-new/net110.mdmetadata and heading to Preview 4.Index updates
dotnet-desktop-guide/winforms/whats-new/index.mddotnet-desktop-guide/wpf/whats-new/index.mdInternal previews