From e5c5ec50c7c1c1486190ae39ca9cf985bbba075b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 29 Oct 2025 21:23:59 +0000 Subject: [PATCH 1/3] Initial plan From bfbb81db33848cd7d47c0ea9b2027d7c04bcb5a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 29 Oct 2025 21:28:44 +0000 Subject: [PATCH 2/3] Add missing AppContext switches for WPF memory improvements Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com> --- .../file-schema/runtime/appcontextswitchoverrides-element.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md b/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md index 155755fc21cab..3d0a6739e42bd 100644 --- a/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md +++ b/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md @@ -61,6 +61,8 @@ Defines one or more switches used by the class to provi | Switch name | Description | Introduced | |-------------|-------------|------------| |`Switch.MS.Internal.`
`DoNotApplyLayoutRoundingToMarginsAndBorderThickness`|Controls whether Windows Presentation Foundation uses legacy a algorithm for control layout. For more information, see [Mitigation: WPF Layout](../../../migration-guide/mitigation-wpf-layout.md).|.NET Framework 4.6| +|`Switch.MS.Internal.`
`EnableCleanupSchedulingImprovements`|Controls whether improvements to cleanup scheduling in Windows Presentation Foundation are enabled. When set to `true`, enables improved cleanup scheduling to reduce memory usage and improve performance.|.NET Framework 4.7.2| +|`Switch.MS.Internal.`
`EnableWeakEventMemoryImprovements`|Controls whether memory improvements for weak event patterns in Windows Presentation Foundation are enabled. When set to `true`, enables memory improvements that reduce memory leaks related to weak event listeners.|.NET Framework 4.7.2| |`Switch.MS.Internal.`
`UseSha1AsDefaultHashAlgorithmForDigitalSignatures`|Controls whether the default algorithm used for signing parts of a package by PackageDigitalSignatureManager is SHA1 or SHA256.
Due to collision problems with SHA1, Microsoft recommends SHA256.|.NET Framework 4.7.1| |`Switch.System.Activities.`
`UseMD5CryptoServiceProviderForWFDebugger`|When set to `false`, allows debugging of XAML-based workflow projects with Visual Studio when FIPS is enabled. Without it, a is thrown in calls to methods in the System.Activities assembly.|.NET Framework 4.7| |`Switch.System.Activities.`
`UseMD5ForWFDebugger`|Controls whether the checksum for a workflow instance in the debugger uses MD5 or SHA1. | .NET Framework 4.7| From a9a3fc48b9e13565e1bec67e3a5fabd15f759802 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 29 Oct 2025 14:38:53 -0700 Subject: [PATCH 3/3] Update docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md --- .../file-schema/runtime/appcontextswitchoverrides-element.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md b/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md index 3d0a6739e42bd..25658365fbae8 100644 --- a/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md +++ b/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md @@ -61,8 +61,8 @@ Defines one or more switches used by the class to provi | Switch name | Description | Introduced | |-------------|-------------|------------| |`Switch.MS.Internal.`
`DoNotApplyLayoutRoundingToMarginsAndBorderThickness`|Controls whether Windows Presentation Foundation uses legacy a algorithm for control layout. For more information, see [Mitigation: WPF Layout](../../../migration-guide/mitigation-wpf-layout.md).|.NET Framework 4.6| -|`Switch.MS.Internal.`
`EnableCleanupSchedulingImprovements`|Controls whether improvements to cleanup scheduling in Windows Presentation Foundation are enabled. When set to `true`, enables improved cleanup scheduling to reduce memory usage and improve performance.|.NET Framework 4.7.2| -|`Switch.MS.Internal.`
`EnableWeakEventMemoryImprovements`|Controls whether memory improvements for weak event patterns in Windows Presentation Foundation are enabled. When set to `true`, enables memory improvements that reduce memory leaks related to weak event listeners.|.NET Framework 4.7.2| +| `Switch.MS.Internal.`
`EnableCleanupSchedulingImprovements` | When set to `true`, improves the cleanup scheduling behavior of the weak-event pattern. | | +| `Switch.MS.Internal.`
`EnableWeakEventMemoryImprovements` | When set to `true`, improves the memory allocation behavior of the weak-event pattern. | | |`Switch.MS.Internal.`
`UseSha1AsDefaultHashAlgorithmForDigitalSignatures`|Controls whether the default algorithm used for signing parts of a package by PackageDigitalSignatureManager is SHA1 or SHA256.
Due to collision problems with SHA1, Microsoft recommends SHA256.|.NET Framework 4.7.1| |`Switch.System.Activities.`
`UseMD5CryptoServiceProviderForWFDebugger`|When set to `false`, allows debugging of XAML-based workflow projects with Visual Studio when FIPS is enabled. Without it, a is thrown in calls to methods in the System.Activities assembly.|.NET Framework 4.7| |`Switch.System.Activities.`
`UseMD5ForWFDebugger`|Controls whether the checksum for a workflow instance in the debugger uses MD5 or SHA1. | .NET Framework 4.7|