diff --git a/src/Microsoft.DotNet.Wpf/src/.editorconfig b/src/Microsoft.DotNet.Wpf/src/.editorconfig
index b435e7e8340..93cf5d86826 100644
--- a/src/Microsoft.DotNet.Wpf/src/.editorconfig
+++ b/src/Microsoft.DotNet.Wpf/src/.editorconfig
@@ -17,9 +17,6 @@ csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
# CA1036: Override methods on comparable types
dotnet_diagnostic.CA1036.severity = suggestion
-# CA1052: Static holder types should be Static or NotInheritable
-dotnet_diagnostic.CA1052.severity = suggestion
-
# NOTE: If existing public API, CA1066 should be suppressed individually
# in the GlobalSuppressions file.
diff --git a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_core_types.cs b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_core_types.cs
index fdcc9e59814..8f556b9079f 100644
--- a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_core_types.cs
+++ b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_core_types.cs
@@ -780,7 +780,7 @@ internal enum MILCMD
#endif
};
- internal partial class DUCE
+ internal static partial class DUCE
{
//
// The MILCE resource type enumeration.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPointer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPointer.cs
index 42c53833205..9eeacd6cb5a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPointer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPointer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
@@ -14,7 +14,7 @@ namespace MS.Win32.Pointer
/// For WM_POINTER
/// For InteractionContext
///
- internal class UnsafeNativeMethods
+ internal static class UnsafeNativeMethods
{
#region Enumerations
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/Compress.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/Compress.cs
index f91776dfc57..8142019902f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/Compress.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/Compress.cs
@@ -1,11 +1,11 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//#define OLD_ISF
namespace MS.Internal.Ink.InkSerializedFormat
{
- internal class Compressor
+ internal static class Compressor
#if OLD_ISF
: IDisposable
#endif
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/MediaTrace.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/MediaTrace.cs
index 0905e2df0a3..782acd6f1f3 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/MediaTrace.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/MediaTrace.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace MS.Internal
@@ -25,7 +25,7 @@ internal class MediaTrace : IDisposable
public static MediaTrace QueueItems = new MediaTrace("MILQueueItems");
public static MediaTrace Statistics = new MediaTrace("Statistics");
- public class ChangeQueue
+ public static class ChangeQueue
{
public static MediaTrace ApplyChange = new MediaTrace("Change queue: Apply Change");
public static MediaTrace Enqueue = new MediaTrace("Change queue: Enqueue");
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPointPropertyInfoHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPointPropertyInfoHelper.cs
index 0790bef4187..f0a5d7ce111 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPointPropertyInfoHelper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPointPropertyInfoHelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
@@ -9,7 +9,7 @@ namespace System.Windows.Input.StylusPointer
///
/// Contains a WM_POINTER specific functions to parse out stylus property info
///
- internal class PointerStylusPointPropertyInfoHelper
+ internal static class PointerStylusPointPropertyInfoHelper
{
#region Constants
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextSelectionHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextSelectionHelper.cs
index cf65fc8df85..8ad2ec7d5b4 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextSelectionHelper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextSelectionHelper.cs
@@ -26,24 +26,9 @@ namespace MS.Internal.Annotations.Anchoring
/// represent these TextAnchors and can generate TextAnchors from
/// the locator parts.
///
- internal class TextSelectionHelper
+ internal static class TextSelectionHelper
{
- //------------------------------------------------------
- //
- // Constructors
- //
- //------------------------------------------------------
-
- #region Constructors
-
- ///
- /// This ctor is added to prevent the compiler from
- /// generating a public default ctor. This class
- /// should not be instantiated
- ///
- private TextSelectionHelper() { }
- #endregion Constructors
//------------------------------------------------------
//
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXHelper.cs
index de5af841202..56dec155533 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXHelper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXHelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
@@ -19,7 +19,7 @@ namespace MS.Internal.Controls
// It also has types that make sense only for ActiveX hosting classes.
// In other words, this is a helper class for the ActiveX hosting classes.
//
- internal class ActiveXHelper
+ internal static class ActiveXHelper
{
//
// Types:
@@ -56,11 +56,6 @@ public enum ActiveXState
private static int logPixelsY = -1;
private const int HMperInch = 2540;
- // Prevent compiler from generating public CTOR
- private ActiveXHelper()
- {
- }
-
//
// Static helper methods:
//
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ExceptionHelpers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ExceptionHelpers.cs
index 25884314e1e..90e3f4020ce 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ExceptionHelpers.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ExceptionHelpers.cs
@@ -372,7 +372,7 @@ internal static Exception GetExceptionForHR(this Exception innerException, int h
}
}
- internal class ErrorStrings
+ internal static class ErrorStrings
{
internal static string Format(string format, params object[] args) => String.Format(format, args);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Marshalers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Marshalers.cs
index 195b1c3c3b9..6dba91090f8 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Marshalers.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Marshalers.cs
@@ -603,7 +603,7 @@ public static unsafe void DisposeAbiArray(object box)
}
}
- internal class MarshalInterfaceHelper
+ internal static class MarshalInterfaceHelper
{
internal struct MarshalerArray
{
@@ -974,7 +974,7 @@ public static unsafe void CopyManaged(object o, IntPtr dest, bool unwrapObject =
public static unsafe void DisposeAbiArray(object box) => MarshalInterfaceHelper