diff --git a/.openpublishing.redirection.core.json b/.openpublishing.redirection.core.json index e9cb0f7e1e7bc..42874b7f59ae3 100644 --- a/.openpublishing.redirection.core.json +++ b/.openpublishing.redirection.core.json @@ -338,6 +338,10 @@ "redirect_url": "/dotnet/core/compatibility/sdk/5.0/sdk-and-target-framework-change", "redirect_document_id": true }, + { + "source_path_from_root": "/docs/core/compatibility/windows-forms/8.0/anchor-layout.md", + "redirect_url": "/dotnet/core/compatibility/8.0" + }, { "source_path_from_root": "/docs/core/deploying/applications.md", "redirect_url": "/dotnet/core/deploying/index" diff --git a/docs/core/compatibility/8.0.md b/docs/core/compatibility/8.0.md index e2a4269aa9320..dd8f6625893e4 100644 --- a/docs/core/compatibility/8.0.md +++ b/docs/core/compatibility/8.0.md @@ -159,7 +159,6 @@ If you're migrating an app to .NET 8, the breaking changes listed here might aff | Title | Type of change | | -------------------------------------------------------------------------------------------------------- | ------------------- | -| [Anchor layout changes](windows-forms/8.0/anchor-layout.md) | Behavioral change | | [Certs checked before loading remote images in PictureBox](windows-forms/8.0/picturebox-remote-image.md) | Behavioral change | | [DateTimePicker.Text is empty string](windows-forms/8.0/datetimepicker-text.md) | Behavioral change | | [DefaultValueAttribute removed from some properties](windows-forms/8.0/defaultvalueattribute-removal.md) | Behavioral change | diff --git a/docs/core/compatibility/toc.yml b/docs/core/compatibility/toc.yml index 6b4e9d80db1f6..3a923d1625876 100644 --- a/docs/core/compatibility/toc.yml +++ b/docs/core/compatibility/toc.yml @@ -356,8 +356,6 @@ items: href: serialization/8.0/metadata-resolving.md - name: Windows Forms items: - - name: Anchor layout changes - href: windows-forms/8.0/anchor-layout.md - name: Certs checked before loading remote images in PictureBox href: windows-forms/8.0/picturebox-remote-image.md - name: DateTimePicker.Text is empty string @@ -2069,8 +2067,6 @@ items: - name: StatusStrip uses different default renderer - name: .NET 8 items: - - name: Anchor layout changes - href: windows-forms/8.0/anchor-layout.md - name: Certs checked before loading remote images in PictureBox href: windows-forms/8.0/picturebox-remote-image.md - name: DateTimePicker.Text is empty string diff --git a/docs/core/compatibility/windows-forms/8.0/anchor-layout.md b/docs/core/compatibility/windows-forms/8.0/anchor-layout.md deleted file mode 100644 index 40eac7b1ff4c9..0000000000000 --- a/docs/core/compatibility/windows-forms/8.0/anchor-layout.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: "Breaking change: Anchor layout changes" -description: Learn about the breaking change in .NET 8 for Windows Forms where anchor layout computations have been changed to support high DPI devices. -ms.date: 01/19/2023 ---- -# Anchor layout changes - -Control anchor computations have been changed to support high DPI devices. For more information about the changes, see [Anchor layout changes in .NET 8](https://github.com/dotnet/winforms/blob/main/docs/design/anchor-layout-changes-in-net80.md). - -## Version introduced - -.NET 8 Preview 1 - -## Previous behavior - -Certain applications using or mode and anchored controls encountered layout issues on high DPI devices. - -## New behavior - -Applications using or mode and anchored controls should have improved layout when rendered on high DPI devices. - -## Change category - -This change is a [*behavioral change*](../../categories.md#behavioral-change). - -## Reason for change - -This change is part of a broader effort to improve the Windows Forms user experience on high DPI monitors. It enables developers to use an anchored layout for applications on high DPI devices. - -## Recommended action - -If the new behavior is problematic for you, you can opt out by setting `System.Windows.Forms.AnchorLayoutV2` to `false` in your *runtimeconfig.json* file. - -*runtimeconfig.template.json* template file: - -```json -{ - "configProperties": { - "System.Windows.Forms.AnchorLayoutV2": false - } -} -``` - -*[appname].runtimeconfig.json* output file: - -```json -{ - "runtimeOptions": { - "configProperties": { - "System.Windows.Forms.AnchorLayoutV2": false - } - } -} -``` - -## Affected APIs - -N/A - -## See also - -- [Anchor layout changes in .NET 8](https://github.com/dotnet/winforms/blob/main/docs/design/anchor-layout-changes-in-net80.md)