diff --git a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/Generated/wgx_commands.cs b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/Generated/wgx_commands.cs index ff7cb0943cd..6abe49a269b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/Generated/wgx_commands.cs +++ b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/Generated/wgx_commands.cs @@ -11,11 +11,8 @@ // This code is generated from mcg\generators\CommandStructure.cs -using System; -using System.Windows.Media.Composition; using System.Runtime.InteropServices; using System.Windows.Media.Effects; -using System.Security; using BOOL = System.UInt32; diff --git a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/exports.cs b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/exports.cs index 02e812ebef2..92069b2a676 100644 --- a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/exports.cs +++ b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/exports.cs @@ -6,32 +6,15 @@ // Description: // Managed exports from MIL core. -using System; -using System.Collections; -using System.ComponentModel; -using System.Threading; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Imaging; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Runtime.InteropServices; -using System.Windows.Media.Animation; using MS.Internal; -using MS.Internal.PresentationCore; using MS.Internal.Interop; using MS.Utility; using MS.Win32; -using System.Diagnostics; -using System.Collections.Generic; -using System.Security; -using Microsoft.Win32.SafeHandles; - -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; -using SafeNativeMethods=MS.Win32.PresentationCore.SafeNativeMethods; -using HRESULT=MS.Internal.HRESULT; -using SR=MS.Internal.PresentationCore.SR; -using DllImport=MS.Internal.PresentationCore.DllImport; + +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; +using HRESULT = MS.Internal.HRESULT; /* * diff --git a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_av_types.cs b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_av_types.cs index 577d12ff915..fb5510b20e7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_av_types.cs +++ b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_av_types.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; - namespace System.Windows.Media { // 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 8d6df07e8b4..4b715a35b39 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 @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; using System.Runtime.InteropServices; namespace System.Windows.Media.Composition diff --git a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_exports.cs b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_exports.cs index bb8dbbaca2a..5c6ea9c459a 100644 --- a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_exports.cs +++ b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_exports.cs @@ -2,17 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; using System.Windows; using System.Windows.Media; -using System.Windows.Media.Composition; using System.Windows.Media.Imaging; using System.Runtime.InteropServices; -using System.Security; -using MS.Internal.PresentationCore; - namespace MS.Internal { #region MILRenderTargetBitmap diff --git a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_render.cs b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_render.cs index 9728b803884..9a92a0dbb05 100644 --- a/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_render.cs +++ b/src/Microsoft.DotNet.Wpf/src/Common/Graphics/wgx_render.cs @@ -2,15 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.IO; -using System.Windows; -using System.Windows.Media.Composition; using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Common/src/MS/Internal/PixelUnit.cs b/src/Microsoft.DotNet.Wpf/src/Common/src/MS/Internal/PixelUnit.cs index e1e3b2c846a..00472f76d33 100644 --- a/src/Microsoft.DotNet.Wpf/src/Common/src/MS/Internal/PixelUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/Common/src/MS/Internal/PixelUnit.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; - namespace MS.Internal { internal readonly struct PixelUnit diff --git a/src/Microsoft.DotNet.Wpf/src/Common/src/System/IO/Compression/DeflateZLib/ZLibNative.cs b/src/Microsoft.DotNet.Wpf/src/Common/src/System/IO/Compression/DeflateZLib/ZLibNative.cs index 61004217842..656a69e2dda 100644 --- a/src/Microsoft.DotNet.Wpf/src/Common/src/System/IO/Compression/DeflateZLib/ZLibNative.cs +++ b/src/Microsoft.DotNet.Wpf/src/Common/src/System/IO/Compression/DeflateZLib/ZLibNative.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Runtime.InteropServices; -using System.Security; namespace System.IO.Compression { diff --git a/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemDrawing/SystemDrawingExtension.cs b/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemDrawing/SystemDrawingExtension.cs index bffbd3362bf..db141194710 100644 --- a/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemDrawing/SystemDrawingExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemDrawing/SystemDrawingExtension.cs @@ -5,15 +5,12 @@ // Description: Helper methods for code that uses types from System.Drawing. using System; -using System.Security; using System.Diagnostics.CodeAnalysis; using System.Drawing; using System.Drawing.Imaging; -using System.Drawing.Printing; using System.IO; using System.Windows; -using System.Windows.Media; using System.Windows.Media.Imaging; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemXml/XmlNodeComparer.cs b/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemXml/XmlNodeComparer.cs index 3ec9fad53f7..e1800994c6e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemXml/XmlNodeComparer.cs +++ b/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemXml/XmlNodeComparer.cs @@ -6,12 +6,10 @@ using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Xml; -using MS.Internal.Data; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Localization/LocalizationDirectivesToLocFile.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Localization/LocalizationDirectivesToLocFile.cs index 86a9c114c3b..21939686e4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Localization/LocalizationDirectivesToLocFile.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Localization/LocalizationDirectivesToLocFile.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Localization/LocalizationParserHooks.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Localization/LocalizationParserHooks.cs index 99be5747d5b..b23e0fe9f42 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Localization/LocalizationParserHooks.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Localization/LocalizationParserHooks.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.IO; using System.Xml; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs index 8b24771d9e6..e13d4188ec2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs @@ -19,7 +19,6 @@ using System.Reflection; using System.Globalization; using System.ComponentModel; -using System.Security.Cryptography; using System.CodeDom; using System.CodeDom.Compiler; @@ -29,14 +28,11 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; - -using System.Threading; using MS.Internal.Markup; using MS.Internal.Tasks; using MS.Utility; // for SR using Microsoft.Build.Utilities; using Microsoft.Build.Tasks.Windows; -using System.Runtime.CompilerServices; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/ParserExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/ParserExtension.cs index dfed32e89bf..740c4a50f64 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/ParserExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/ParserExtension.cs @@ -19,8 +19,6 @@ using System.Diagnostics; using System.Reflection; using System.CodeDom; -using System.CodeDom.Compiler; -using System.ComponentModel; using MS.Utility; // for SR namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/PathInternal.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/PathInternal.cs index 661aa18714e..1f3c44d1763 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/PathInternal.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/PathInternal.cs @@ -16,29 +16,10 @@ #pragma warning disable 1634, 1691 using System; -using System.Xml; using System.IO; using System.Text; -using System.Reflection; -using System.Globalization; -using System.ComponentModel; -using System.Security.Cryptography; - -using System.CodeDom; -using System.CodeDom.Compiler; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel.Design.Serialization; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; - -using System.Threading; -using MS.Internal.Markup; -using MS.Internal.Tasks; -using MS.Utility; // for SR -using Microsoft.Build.Utilities; -using Microsoft.Build.Tasks.Windows; using System.Runtime.CompilerServices; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerLocalReference.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerLocalReference.cs index 8751c401dd9..27ad3eb2a09 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerLocalReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerLocalReference.cs @@ -13,14 +13,10 @@ using System; using System.IO; using System.Collections; -using System.Collections.Generic; using System.Diagnostics; using System.Text; using Microsoft.Build.Tasks.Windows; -using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; -using MS.Utility; namespace MS.Internal.Tasks { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerState.cs index c807add29eb..76301dc1bbf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerState.cs @@ -12,15 +12,12 @@ using System; using System.IO; -using System.Collections; using System.Diagnostics; using System.Text; using System.Globalization; using Microsoft.Build.Tasks.Windows; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; -using MS.Utility; namespace MS.Internal.Tasks { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerWrapper.cs index 624a8dd29da..17a36b4ee52 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerWrapper.cs @@ -18,10 +18,6 @@ using System; using System.IO; using System.Collections; -using System.Reflection; -using System.Runtime.InteropServices; - -using MS.Internal.Markup; using Microsoft.Build.Utilities; using Microsoft.Build.Framework; using MS.Internal.Tasks; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IPersistFileCheckSum.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IPersistFileCheckSum.cs index ea2c49dcf10..9a0e3c707db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IPersistFileCheckSum.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IPersistFileCheckSum.cs @@ -17,7 +17,6 @@ using System; using System.Runtime.InteropServices; -using System.Security; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IVsMSBuildTaskFileManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IVsMSBuildTaskFileManager.cs index 579cb3de00f..b94919359fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IVsMSBuildTaskFileManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IVsMSBuildTaskFileManager.cs @@ -18,9 +18,8 @@ using System; using System.Runtime.InteropServices; -using System.Security; - + namespace MS.Internal { // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IncrementalCompileAnalyzer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IncrementalCompileAnalyzer.cs index 4a8cd3c5c45..db039c3fff4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IncrementalCompileAnalyzer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/IncrementalCompileAnalyzer.cs @@ -12,16 +12,12 @@ using System; using System.IO; -using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using System.Reflection; using Microsoft.Build.Tasks.Windows; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; -using MS.Utility; namespace MS.Internal.Tasks { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/Shared.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/Shared.cs index b81ea87e707..e4e5421a745 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/Shared.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/Shared.cs @@ -10,10 +10,6 @@ // //------------------------------------------------------------------------------ -using System; -using System.IO; -using System.Collections; - namespace MS.Internal.Tasks { #region SharedStrings class diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/TaskFileService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/TaskFileService.cs index b0ccdc55dcb..87ba0a58fb8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/TaskFileService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/TaskFileService.cs @@ -24,7 +24,6 @@ using System.IO; using Microsoft.Build.Utilities; using Microsoft.Build.Tasks.Windows; -using System.Diagnostics; using System.Text; using System.Security.Cryptography; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/TaskHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/TaskHelper.cs index 0ca5ca94057..ef917618a7b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/TaskHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/TaskHelper.cs @@ -12,21 +12,14 @@ using System; using System.IO; -using System.Collections; -using System.Text; -using System.Runtime.InteropServices; using System.Globalization; using System.Diagnostics; using System.Reflection; -using System.Resources; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; - -using Microsoft.Build.Tasks; using MS.Utility; -using System.Collections.Generic; namespace MS.Internal.Tasks diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/FileClassifier.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/FileClassifier.cs index 71f779eca95..a9509fa0300 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/FileClassifier.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/FileClassifier.cs @@ -10,13 +10,9 @@ //--------------------------------------------------------------------------- using System; -using System.IO; using System.Collections.Generic; using System.Globalization; -using System.Diagnostics; -using System.Reflection; -using System.Resources; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/GenerateTemporaryTargetAssembly.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/GenerateTemporaryTargetAssembly.cs index 0fd4fa34342..02e05847c27 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/GenerateTemporaryTargetAssembly.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/GenerateTemporaryTargetAssembly.cs @@ -21,18 +21,13 @@ using System.Collections; using System.Collections.Generic; using System.Linq; - -using System.Globalization; using System.Diagnostics; -using System.Reflection; -using System.Resources; using System.Xml; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using MS.Utility; -using MS.Internal.Tasks; // Since we disable PreSharp warnings in this file, PreSharp warning is unknown to C# compiler. // We first need to disable warnings about unknown message numbers and unknown pragmas. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass1.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass1.cs index d3b96aa0482..1c202e20f7c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass1.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass1.cs @@ -13,16 +13,8 @@ using System; using System.IO; using System.Collections; -using System.Security; using System.Globalization; -using System.Diagnostics; -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; - -using System.CodeDom; -using System.CodeDom.Compiler; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; @@ -30,7 +22,6 @@ using MS.Utility; using MS.Internal; using MS.Internal.Tasks; -using MS.Internal.Markup; // Since we disable PreSharp warnings in this file, PreSharp warning is unknown to C# compiler. // We first need to disable warnings about unknown message numbers and unknown pragmas. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass2.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass2.cs index c58021432dd..1bea9221d80 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass2.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass2.cs @@ -12,14 +12,9 @@ using System; using System.IO; using System.Collections; -using System.Security; using System.Text; using System.Globalization; -using System.Diagnostics; -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; @@ -27,7 +22,6 @@ using MS.Utility; using MS.Internal; using MS.Internal.Tasks; -using MS.Internal.Markup; // Since we disable PreSharp warnings in this file, PreSharp warning is unknown to C# compiler. // We first need to disable warnings about unknown message numbers and unknown pragmas. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MergeLocalizationDirectives.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MergeLocalizationDirectives.cs index 4c52de9a8ca..e2083c08c61 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MergeLocalizationDirectives.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MergeLocalizationDirectives.cs @@ -12,7 +12,6 @@ using System; using System.IO; using System.Text; -using System.Xml; using System.Runtime.InteropServices; using Microsoft.Build.Framework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/ResourcesGenerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/ResourcesGenerator.cs index 17bd2c0a374..a65fe079808 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/ResourcesGenerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/ResourcesGenerator.cs @@ -11,11 +11,6 @@ using System; using System.IO; -using System.Collections; - -using System.Globalization; -using System.Diagnostics; -using System.Reflection; using System.Resources; using System.Runtime.InteropServices; @@ -23,7 +18,6 @@ using Microsoft.Build.Utilities; using MS.Utility; -using Microsoft.Build.Tasks.Windows; using MS.Internal; using MS.Internal.Tasks; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UidManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UidManager.cs index 1df5ea917cd..b0081434b08 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UidManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UidManager.cs @@ -17,11 +17,8 @@ using System.IO; using System.Text; using System.Text.RegularExpressions; -using System.Reflection; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.Runtime.InteropServices; using MS.Internal.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UpdateManifestForBrowserApplication.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UpdateManifestForBrowserApplication.cs index 758487632f9..e19ce88010a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UpdateManifestForBrowserApplication.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UpdateManifestForBrowserApplication.cs @@ -9,16 +9,10 @@ /////////////////////////////////////////////////////////////////////////////// using System; -using System.IO; -using System.Diagnostics; using System.Runtime.InteropServices; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using Microsoft.Build.Tasks; using System.Xml; -using System.Xml.XPath; -using Microsoft.Build.Tasks.Windows; -using System.Collections; using MS.Utility; using MS.Internal.Tasks; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalUsings.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalUsings.cs new file mode 100644 index 00000000000..3659731bae6 --- /dev/null +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalUsings.cs @@ -0,0 +1,11 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +global using System; +global using System.Collections.Generic; +global using System.Diagnostics; + +global using SR = MS.Internal.PresentationCore.SR; + +global using DllImport = MS.Internal.PresentationCore.DllImport; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPenimc.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPenimc.cs index f394f085831..e5c1385bcb6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPenimc.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPenimc.cs @@ -4,16 +4,10 @@ //#define OLD_ISF -using System; -using System.Security; -using System.Threading; using System.Runtime.InteropServices; -using System.Runtime.ConstrainedExecution; -using System.Windows; using System.Windows.Interop; using MS.Internal; using MS.Internal.PresentationCore; -using MS.Win32; namespace MS.Win32.Penimc { 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 db84e81217e..5b85e2c68cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPointer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsPointer.cs @@ -3,13 +3,7 @@ // See the LICENSE file in the project root for more information. -using MS.Internal.PresentationCore; -using MS.Win32; -using System; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; -using System.Text; namespace MS.Win32.Pointer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsTablet.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsTablet.cs index ecd3d791eff..937f03fefb2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsTablet.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/Win32/UnsafeNativeMethodsTablet.cs @@ -3,14 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Text; -using System.Security; using System.Runtime.InteropServices; -using System.Runtime.ConstrainedExecution; using System.Windows.Ink; -using System.Diagnostics; -using MS.Win32; namespace MS.Win32.Recognizer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs index 7e7abfb455c..4c7f53ca8f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/CookieHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/CookieHandler.cs index b02c48be409..59b01b71b75 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/CookieHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/CookieHandler.cs @@ -14,22 +14,16 @@ // // -using System; using System.Net; -using System.Security; -using System.Diagnostics; using System.ComponentModel; using System.Runtime.InteropServices; using System.Diagnostics.CodeAnalysis; - -using System.Windows; -using System.Windows.Interop; using MS.Win32; using MS.Internal.PresentationCore; namespace MS.Internal.AppModel { -static class CookieHandler + static class CookieHandler { internal static void HandleWebRequest(WebRequest request) { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/CustomCredentialPolicy.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/CustomCredentialPolicy.cs index 5706c2fd105..ab0cf9fc3a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/CustomCredentialPolicy.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/CustomCredentialPolicy.cs @@ -27,11 +27,8 @@ // and that does not prompt the user. // -using System; -using System.Collections.Generic; using System.Net; using System.Runtime.InteropServices; -using System.Security; using MS.Internal.PresentationCore; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/SiteOfOriginContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/SiteOfOriginContainer.cs index 99a55992f45..0bb82080aeb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/SiteOfOriginContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/SiteOfOriginContainer.cs @@ -12,17 +12,9 @@ // the NotSupportedException. // -using System; using System.IO.Packaging; using System.IO; -using System.Collections.Generic; -using System.Windows.Resources; -using System.Resources; -using System.Reflection; -using System.Globalization; -using System.Windows; using System.Windows.Navigation; -using System.Security; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/SiteOfOriginPart.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/SiteOfOriginPart.cs index 1e1cd2edf45..ce9d5072428 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/SiteOfOriginPart.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AppModel/SiteOfOriginPart.cs @@ -9,15 +9,9 @@ // -using System; using System.Net; using System.IO.Packaging; -using System.Windows; -using System.Windows.Navigation; -using System.Windows.Resources; using System.IO; -using System.Resources; -using System.Globalization; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/AutomationPatternInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/AutomationPatternInfo.cs index 93984a9c7b0..4e004aab9ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/AutomationPatternInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/AutomationPatternInfo.cs @@ -7,10 +7,6 @@ // // Description: class containing information about an automation property -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/AutomationPropertyInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/AutomationPropertyInfo.cs index 8b3e6193400..e74989a3cb7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/AutomationPropertyInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/AutomationPropertyInfo.cs @@ -9,7 +9,6 @@ // // -using System; using System.Windows; using System.Windows.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/DockProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/DockProviderWrapper.cs index c736257ca45..9fa684dc8ee 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/DockProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/DockProviderWrapper.cs @@ -9,10 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ElementProxy.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ElementProxy.cs index 011a97eb0a8..8ce499eab6b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ElementProxy.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ElementProxy.cs @@ -9,27 +9,13 @@ // // -using System; -using System.Collections; -using System.Reflection; -using System.Runtime.InteropServices; - using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; -using System.Diagnostics; using System.Windows.Input; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; -using System.Security; - -using MS.Internal.PresentationCore; -using MS.Win32; -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.Automation { // Automation Proxy for WCP elements - exposes WCP tree diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ElementUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ElementUtil.cs index d7c8664c5e5..97cb39b03c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ElementUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ElementUtil.cs @@ -2,32 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: -// -// - -using System; using System.Windows.Threading; -using System.Threading; using System.Windows; -using System.Windows.Input; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; -using System.Security; using MS.Win32; using MS.Internal.Media; using System.Runtime.InteropServices; -using System.Globalization; -using MS.Internal.PresentationCore; // SafeSecurityHelper - -using SR=MS.Internal.PresentationCore.SR; +using MS.Internal.PresentationCore; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/EventMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/EventMap.cs index 6681b08e52a..50a0d11d73c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/EventMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/EventMap.cs @@ -2,24 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: -// Accessibility event map classes are used to determine if, and how many -// listeners there are for events and property changes. -// -// - -using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Threading; -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.Automation { // Manages the event map that is used to determine if there are Automation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/EventPropertyMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/EventPropertyMap.cs index a137b56b508..5ec5524c4c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/EventPropertyMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/EventPropertyMap.cs @@ -11,16 +11,14 @@ // // -using System; using System.Collections; using System.Windows; -using System.Diagnostics; namespace MS.Internal.Automation { // Manages the property map that is used to determine if there are // Automation clients interested in properties. - internal class EventPropertyMap + internal class EventPropertyMap { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ExpandCollapseProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ExpandCollapseProviderWrapper.cs index f3e3ac48421..b2ac41ddbb9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ExpandCollapseProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ExpandCollapseProviderWrapper.cs @@ -9,10 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/GridItemProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/GridItemProviderWrapper.cs index 12d0f6848f2..30d6577c126 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/GridItemProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/GridItemProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/GridProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/GridProviderWrapper.cs index 445972cb381..0b6cbad0e9a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/GridProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/GridProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/InteropAutomationProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/InteropAutomationProvider.cs index be842c6b857..a7e7132eee4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/InteropAutomationProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/InteropAutomationProvider.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Automation.Provider; -using System.Security; - namespace MS.Internal.Automation { internal class InteropAutomationProvider: IRawElementProviderFragmentRoot diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/InvokeProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/InvokeProviderWrapper.cs index d9dd9a9ae9d..b706ec006c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/InvokeProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/InvokeProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ItemContainerProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ItemContainerProviderWrapper.cs index 3c70c34c87b..431a9e1a6d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ItemContainerProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ItemContainerProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/MultipleViewProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/MultipleViewProviderWrapper.cs index 1957a48a8ce..e1a2b29d5af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/MultipleViewProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/MultipleViewProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/RangeValueProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/RangeValueProviderWrapper.cs index c3b29d9dcf9..1968c22b058 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/RangeValueProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/RangeValueProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ScrollItemProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ScrollItemProviderWrapper.cs index 2521f39ed0d..a13a265dd5c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ScrollItemProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ScrollItemProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ScrollProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ScrollProviderWrapper.cs index d55d7e319ce..033a871eeec 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ScrollProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ScrollProviderWrapper.cs @@ -9,15 +9,10 @@ // // -using System; using System.Windows.Threading; - -using System.Windows; -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; -using MS.Internal.Automation; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SelectionItemProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SelectionItemProviderWrapper.cs index 3b8768a68e6..c4c7fd5ef47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SelectionItemProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SelectionItemProviderWrapper.cs @@ -9,12 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Collections; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SelectionProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SelectionProviderWrapper.cs index 5dbe58f7b28..656a058913a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SelectionProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SelectionProviderWrapper.cs @@ -9,15 +9,9 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Collections; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; -using System.ComponentModel; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SynchronizedInputAdaptor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SynchronizedInputAdaptor.cs index 8a05bf5e1cf..03fb2d2740b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SynchronizedInputAdaptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SynchronizedInputAdaptor.cs @@ -2,20 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: Synchronized Input pattern adaptor -// - -using System; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; -using MS.Internal; -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Automation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SynchronizedInputProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SynchronizedInputProviderWrapper.cs index e9accd74846..41dc3d416ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SynchronizedInputProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/SynchronizedInputProviderWrapper.cs @@ -9,10 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TableItemProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TableItemProviderWrapper.cs index a63039f69d2..cbccd846e08 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TableItemProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TableItemProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TableProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TableProviderWrapper.cs index c6eeccaef7d..98b114c75e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TableProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TableProviderWrapper.cs @@ -9,10 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TextProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TextProviderWrapper.cs index 4f41a8ff316..3fad1169930 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TextProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TextProviderWrapper.cs @@ -2,22 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: Text pattern provider wrapper for WCP -// -// -using System; using System.Windows.Threading; using System.Windows; -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Windows.Automation.Text; using System.Windows.Automation.Peers; -using SR = MS.Internal.PresentationCore.SR; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TextRangeProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TextRangeProviderWrapper.cs index 2bc4e04b7a9..5c3908fc82e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TextRangeProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TextRangeProviderWrapper.cs @@ -2,23 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: TextRange provider wrapper for WCP -// -// -using System; -using System.Collections; using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Text; using System.Windows.Automation.Peers; -using SR = MS.Internal.PresentationCore.SR; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ToggleProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ToggleProviderWrapper.cs index 352941da064..147ac555395 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ToggleProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ToggleProviderWrapper.cs @@ -9,9 +9,7 @@ // // -using System; using System.Windows.Threading; -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TransformProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TransformProviderWrapper.cs index f0ea4a45bd6..5ffb02f645e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TransformProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/TransformProviderWrapper.cs @@ -9,10 +9,7 @@ // // -using System; using System.Windows.Threading; -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ValueProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ValueProviderWrapper.cs index 5748fae4278..deca181b3b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ValueProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/ValueProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/VirtualizedItemProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/VirtualizedItemProviderWrapper.cs index 5e18a7e82b9..0f8f71f22ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/VirtualizedItemProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/VirtualizedItemProviderWrapper.cs @@ -9,11 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/WindowProviderWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/WindowProviderWrapper.cs index b083f007f33..3090ddf435b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/WindowProviderWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Automation/WindowProviderWrapper.cs @@ -9,10 +9,7 @@ // // -using System; using System.Windows.Threading; - -using System.Windows.Media; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/CheckedPointers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/CheckedPointers.cs index ed5d6271053..ac2101bb4d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/CheckedPointers.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/CheckedPointers.cs @@ -8,9 +8,6 @@ // // -using System; -using System.Security; -using MS.Internal.Shaping; using MS.Internal.FontCache; // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Classification.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Classification.cs index 1f0768e7dc3..88620b2e52b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Classification.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Classification.cs @@ -9,15 +9,8 @@ // // -using System; -using System.Diagnostics; -using MS.Internal; -using System.Windows; -using System.Security; -using System.Collections; using System.Runtime.InteropServices; using System.Windows.Media.TextFormatting; -using MS.Internal.PresentationCore; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/CustomCategoryAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/CustomCategoryAttribute.cs index cfb42327921..cb3910603a9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/CustomCategoryAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/CustomCategoryAttribute.cs @@ -5,7 +5,6 @@ // // -using System; using System.ComponentModel; using MS.Internal.PresentationCore; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DeferredElementTreeState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DeferredElementTreeState.cs index b243c33267d..221a9d5023f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DeferredElementTreeState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DeferredElementTreeState.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Windows; -using System.Collections.Generic; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiScale2.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiScale2.cs index 2bb3c47a068..852712113de 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiScale2.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiScale2.cs @@ -3,11 +3,10 @@ // See the LICENSE file in the project root for more information. +using System.Windows; + namespace MS.Internal { - using System; - using System.Windows; - /// /// Wrapper for with supporting utility methods /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+DpiAwarenessContextHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+DpiAwarenessContextHelper.cs index c7c49fb4162..a08f5855329 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+DpiAwarenessContextHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+DpiAwarenessContextHelper.cs @@ -3,16 +3,13 @@ // See the LICENSE file in the project root for more information. -namespace MS.Internal -{ - using MS.Utility; - using MS.Win32; - using System; - using System.Collections.Generic; - using System.Security; +using MS.Utility; +using MS.Win32; - using PROCESS_DPI_AWARENESS = MS.Win32.NativeMethods.PROCESS_DPI_AWARENESS; +using PROCESS_DPI_AWARENESS = MS.Win32.NativeMethods.PROCESS_DPI_AWARENESS; +namespace MS.Internal +{ /// /// Contains definition of /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+DpiAwarenessScope.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+DpiAwarenessScope.cs index f20204297c7..e805e43c899 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+DpiAwarenessScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+DpiAwarenessScope.cs @@ -3,13 +3,11 @@ // See the LICENSE file in the project root for more information. +using MS.Utility; +using MS.Win32; + namespace MS.Internal { - using MS.Utility; - using MS.Win32; - using System; - using System.Security; - /// /// Contains inner type /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+HwndDpiInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+HwndDpiInfo.cs index feacd9ba610..c94fc3c162e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+HwndDpiInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+HwndDpiInfo.cs @@ -3,15 +3,13 @@ // See the LICENSE file in the project root for more information. +using MS.Utility; +using MS.Win32; +using System.ComponentModel; +using System.Runtime.InteropServices; + namespace MS.Internal { - using MS.Utility; - using MS.Win32; - using System; - using System.ComponentModel; - using System.Runtime.InteropServices; - using System.Security; - internal static partial class DpiUtil { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+ProcessDpiAwarenessHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+ProcessDpiAwarenessHelper.cs index 22e9c6919d4..f2ca33ccf8d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+ProcessDpiAwarenessHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+ProcessDpiAwarenessHelper.cs @@ -3,17 +3,14 @@ // See the LICENSE file in the project root for more information. -namespace MS.Internal -{ - using Microsoft.Win32.SafeHandles; - using MS.Win32; - using System; - using System.Diagnostics; - using System.Runtime.InteropServices; - using System.Security; +using Microsoft.Win32.SafeHandles; +using MS.Win32; +using System.Runtime.InteropServices; - using PROCESS_DPI_AWARENESS = MS.Win32.NativeMethods.PROCESS_DPI_AWARENESS; +using PROCESS_DPI_AWARENESS = MS.Win32.NativeMethods.PROCESS_DPI_AWARENESS; +namespace MS.Internal +{ /// /// Contains definition of /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+SystemDpiHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+SystemDpiHelper.cs index 6b8a90dee93..237fae7028d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+SystemDpiHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+SystemDpiHelper.cs @@ -3,17 +3,12 @@ // See the LICENSE file in the project root for more information. +using MS.Win32; +using System.Runtime.InteropServices; +using System.Windows; + namespace MS.Internal { - using MS.Win32; - using System; - using System.ComponentModel; - using System.Runtime.InteropServices; - using System.Windows; - using System.Security; - - using PROCESS_DPI_AWARENESS = MS.Win32.NativeMethods.PROCESS_DPI_AWARENESS; - /// /// Contains definition of /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+WindowDpiScaleHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+WindowDpiScaleHelper.cs index 8aba5bf9fb4..720882c527c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+WindowDpiScaleHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil+WindowDpiScaleHelper.cs @@ -3,15 +3,13 @@ // See the LICENSE file in the project root for more information. -namespace MS.Internal -{ - using MS.Win32; - using System; - using System.Runtime.InteropServices; - using System.Security; +using MS.Win32; +using System.Runtime.InteropServices; - using MONITOR_DPI_TYPE = MS.Win32.NativeMethods.MONITOR_DPI_TYPE; +using MONITOR_DPI_TYPE = MS.Win32.NativeMethods.MONITOR_DPI_TYPE; +namespace MS.Internal +{ /// /// Contains definition of /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil.cs index 35d363012a1..87a314d920a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/DpiUtil/DpiUtil.cs @@ -3,16 +3,13 @@ // See the LICENSE file in the project root for more information. -namespace MS.Internal -{ - using MS.Utility; - using System; - using System.Security; - using System.Windows; - using System.Windows.Interop; +using MS.Utility; +using System.Windows; - using PROCESS_DPI_AWARENESS = MS.Win32.NativeMethods.PROCESS_DPI_AWARENESS; +using PROCESS_DPI_AWARENESS = MS.Win32.NativeMethods.PROCESS_DPI_AWARENESS; +namespace MS.Internal +{ /// /// DPI related utilities /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/BufferCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/BufferCache.cs index b35290a9f8a..054fc140532 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/BufferCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/BufferCache.cs @@ -8,7 +8,6 @@ // Description: BufferCache class implementation. // -using System; using System.Threading; using MS.Internal.Text.TextInterface; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/CachedTypeface.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/CachedTypeface.cs index aba0dde26d6..ac968028cf9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/CachedTypeface.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/CachedTypeface.cs @@ -8,9 +8,7 @@ // // -using System; using System.Windows; -using System.Windows.Media; using MS.Internal.FontFace; namespace MS.Internal.FontCache diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/CanonicalFontFamilyReference.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/CanonicalFontFamilyReference.cs index 0b90342aced..08fd10de0d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/CanonicalFontFamilyReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/CanonicalFontFamilyReference.cs @@ -12,10 +12,6 @@ // // -using System; -using MS.Internal; -using System.Security; - namespace MS.Internal.FontCache { internal sealed class CanonicalFontFamilyReference diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/DWriteFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/DWriteFactory.cs index 2abd579de1f..239df2b4455 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/DWriteFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/DWriteFactory.cs @@ -9,12 +9,7 @@ // // -using System; -using System.Security; using System.IO; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; using MS.Internal.PresentationCore; namespace MS.Internal.FontCache diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FamilyCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FamilyCollection.cs index da624f2ec48..9d710420a4a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FamilyCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FamilyCollection.cs @@ -9,23 +9,14 @@ // // -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.IO; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Security; using System.Windows; using System.Windows.Markup; // for XmlLanguage using System.Windows.Media; using MS.Win32; -using MS.Utility; -using MS.Internal; using MS.Internal.FontFace; using MS.Internal.Shaping; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontCacheUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontCacheUtil.cs index b19d4f88bb2..00b346c4733 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontCacheUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontCacheUtil.cs @@ -7,32 +7,16 @@ // Description: Miscellaneous utility functions for font handling code. // -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.IO; using System.IO.Packaging; -using System.Reflection; -using System.Resources; using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Threading; -using System.Windows; using System.Windows.Markup; // for XmlLanguage -using System.Windows.Media; using System.Windows.Navigation; -using System.Windows.Threading; using MS.Win32; -using MS.Internal; -using MS.Internal.FontFace; using MS.Internal.PresentationCore; -using MS.Internal.Resources; -using MS.Utility; using Microsoft.Win32.SafeHandles; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontFaceLayoutInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontFaceLayoutInfo.cs index 102a3c65cd0..20d28567cf2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontFaceLayoutInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontFaceLayoutInfo.cs @@ -8,21 +8,9 @@ // // -using System; -using System.Diagnostics; using System.Globalization; -using System.IO; -using System.Security; -using System.ComponentModel; using System.Collections; -using System.Collections.Generic; -using System.Windows; using System.Windows.Media; -using System.Runtime.InteropServices; - -using MS.Win32; -using MS.Utility; -using MS.Internal; using MS.Internal.FontFace; using MS.Internal.Shaping; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontResourceCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontResourceCache.cs index 8e87e644a57..bfb6051b23e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontResourceCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontResourceCache.cs @@ -10,10 +10,7 @@ // // -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.IO.Packaging; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSource.cs index 5e252bfffb3..a9c7f58b0a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSource.cs @@ -8,27 +8,13 @@ // // -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; using System.IO; using System.IO.Packaging; using System.Net; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Media; -using System.Windows.Threading; - -using MS.Win32; -using MS.Utility; -using MS.Internal; using MS.Internal.IO.Packaging; -using MS.Internal.PresentationCore; using MS.Internal.Text.TextInterface; namespace MS.Internal.FontCache diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSourceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSourceCollection.cs index 42778aa0422..59bff1e7d39 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSourceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSourceCollection.cs @@ -8,28 +8,9 @@ // // -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; using System.IO; -using System.IO.Packaging; -using System.Net; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Media; -using System.Windows.Threading; using Microsoft.Win32; - -using MS.Win32; -using MS.Utility; -using MS.Internal; -using MS.Internal.IO.Packaging; - -using MS.Internal.PresentationCore; using MS.Internal.Text.TextInterface; namespace MS.Internal.FontCache diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/TypefaceMetricsCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/TypefaceMetricsCache.cs index b1ba1f208ee..227b7dfd73e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/TypefaceMetricsCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/TypefaceMetricsCache.cs @@ -8,16 +8,7 @@ // // -using System; using System.Collections; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Threading; - -using MS.Internal.FontFace; -using MS.Internal.Shaping; namespace MS.Internal.FontCache { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/fontcacheconstants.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/fontcacheconstants.cs index 46fc7f3cabc..0a6f90ec0b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/fontcacheconstants.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/fontcacheconstants.cs @@ -5,8 +5,6 @@ // // -using System; - namespace MS.Internal.FontCache { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontInfo.cs index 95a922c6286..30c4790aced 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontInfo.cs @@ -2,25 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -//+----------------------------------------------------------------------- -// -// -// // Contents: Composite font info parsed from composite font file -// -// - -using System; -using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; + using System.Windows.Markup; using System.Windows.Media; -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.FontFace { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontParser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontParser.cs index a287ffe9219..5c6c8019468 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontParser.cs @@ -2,16 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Contents: The XML Composite font parsing -// -// -using System; using System.IO; -using System.Security; -using System.Text; using System.Windows; using System.Windows.Interop; using System.Windows.Media; @@ -19,14 +12,9 @@ using System.Xml; using System.Globalization; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using MS.Internal.TextFormatting; -using System.Reflection; - -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.FontFace { internal class CompositeFontParser diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontDifferentiator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontDifferentiator.cs index 256e6b2d8f0..55e5ec8d5bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontDifferentiator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontDifferentiator.cs @@ -8,8 +8,6 @@ // and adjusting stretch, weight and style values. // -using System; -using System.Collections.Generic; using System.Globalization; using System.Text; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontDriver.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontDriver.cs index f71f5ba5249..a1741ada777 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontDriver.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontDriver.cs @@ -2,23 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.IO; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Markup; // for XmlLanguage -using System.Windows.Media; - -using MS.Internal; using MS.Internal.PresentationCore; -using MS.Utility; using MS.Internal.FontCache; // Since we disable PreSharp warnings in this file, we first need to disable warnings about unknown message numbers and unknown pragmas. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontFamilyIdentifier.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontFamilyIdentifier.cs index 01cb0438acd..2f94044971c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontFamilyIdentifier.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/FontFamilyIdentifier.cs @@ -8,19 +8,7 @@ // // -using System; -using System.Diagnostics; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.TextFormatting; - -using MS.Utility; -using MS.Internal; -using MS.Internal.Shaping; using MS.Internal.FontCache; -using MS.Internal.TextFormatting; namespace MS.Internal.FontFace { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/IDeviceFont.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/IDeviceFont.cs index 403c0cfe466..0d48a77d021 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/IDeviceFont.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/IDeviceFont.cs @@ -9,10 +9,6 @@ // // -using System; -using System.Security; - - namespace MS.Internal.FontFace { internal interface IDeviceFont diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/IFontFamily.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/IFontFamily.cs index 472623049e5..beaf84ed49f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/IFontFamily.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/IFontFamily.cs @@ -9,11 +9,7 @@ // // -using System; -using System.Diagnostics; using System.Globalization; -using System.Collections; -using System.Collections.Generic; using System.Windows; using System.Windows.Markup; // for XmlLanguage using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/ITypefaceMetrics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/ITypefaceMetrics.cs index c34cfbe6461..2dc789da086 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/ITypefaceMetrics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/ITypefaceMetrics.cs @@ -10,10 +10,6 @@ // -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Windows; using System.Windows.Media; using System.Windows.Markup; // for XmlLanguage diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/MatchingStyle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/MatchingStyle.cs index 050fdb6f562..f972c7dad8b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/MatchingStyle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/MatchingStyle.cs @@ -9,12 +9,7 @@ // -using System; -using System.Diagnostics; -using System.Security; -using System.Runtime.InteropServices; using System.Windows; -using System.Windows.Media; namespace MS.Internal.FontFace diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/PhysicalFontFamily.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/PhysicalFontFamily.cs index 4f15c5620ba..5523d98a09f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/PhysicalFontFamily.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/PhysicalFontFamily.cs @@ -9,20 +9,11 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; -using System.Security; -using System.Text; using System.Windows; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.TextFormatting; - -using MS.Internal; -using MS.Internal.FontCache; using MS.Internal.TextFormatting; namespace MS.Internal.FontFace diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/Tags.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/Tags.cs index 5a66a247788..99871baee76 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/Tags.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/Tags.cs @@ -10,14 +10,11 @@ // Generated on Mon Mar 19 09:23:40 2007 // -using MS.Internal; -using System.Windows; - namespace MS.Internal { -// Script tags + // Script tags internal enum ScriptTags { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/TypefaceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/TypefaceCollection.cs index 6b956c6bc4b..c427888ae4f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/TypefaceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/TypefaceCollection.cs @@ -2,24 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Contents: Collection of typefaces -// -// -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Media; -using MS.Internal.FontCache; -using System.Globalization; -using System.Security; - -using SR = MS.Internal.PresentationCore.SR; namespace MS.Internal.FontFace { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Generated/AvTraceMessages.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Generated/AvTraceMessages.cs index 34e5e6308a4..c763e06fede 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Generated/AvTraceMessages.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Generated/AvTraceMessages.cs @@ -5,9 +5,6 @@ // NOTE: This file was generated by $(WpfCodeGenDir)AvTrace\AvTraceMessages.tt. // Any manual updates to this file will overwritten. -using System; -using System.Diagnostics; - namespace MS.Internal { static internal partial class TraceRoutedEvent diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Generic/Span.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Generic/Span.cs index 2fb2f7c4c4f..c1a4252fe95 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Generic/Span.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Generic/Span.cs @@ -9,11 +9,7 @@ // -using System; using System.Collections; -using System.Collections.Generic; -using System.Windows; -using System.Diagnostics; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IListConverters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IListConverters.cs index 28216db3a6a..864a4bbf1ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IListConverters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IListConverters.cs @@ -2,20 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Converters for IList, IList, IList // IList and IList. - -using System; -using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Text; -using System.Windows; using MS.Internal; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Converters { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/ByteRangeDownloader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/ByteRangeDownloader.cs index 3602bd4a9a6..e4a41f030c4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/ByteRangeDownloader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/ByteRangeDownloader.cs @@ -12,17 +12,13 @@ // web requests. This class is used by ByteWrapper (unmanaged code) to make additional // web requests other than through WININET -using System; using System.Collections; using System.ComponentModel; // For Win32Exception -using System.Diagnostics; using System.Globalization; using System.IO; -using System.IO.IsolatedStorage; // For IsolatedStorage temp file using System.Net; using System.Net.Cache; // For RequestCachePolicy using System.Runtime.InteropServices; // For Marshal -using System.Security; // SecurityCritical, SecurityTreatAsSafe using System.Threading; // For Mutex using Microsoft.Win32.SafeHandles; using MS.Internal.PresentationCore; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/DeobfuscatingStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/DeobfuscatingStream.cs index b6928c2600e..fcb054f4887 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/DeobfuscatingStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/DeobfuscatingStream.cs @@ -18,9 +18,7 @@ // The stream is read only -using System; using System.IO; -using System.IO.Packaging; using MS.Internal.PresentationCore; // for ExceptionStringTable diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/NetStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/NetStream.cs index bf6074820ac..7e02d8cdc4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/NetStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/NetStream.cs @@ -37,16 +37,10 @@ #define TRACE #endif -using System; using System.IO; using System.Net; -using System.Runtime.InteropServices; using System.Threading; using System.Collections; // for IComparer -using System.Diagnostics; // for Debug.Assert -using System.Security; // SecurityCritical, SecurityTreatAsSafe -using System.IO.IsolatedStorage; // for IsolatedStorageFileStream -using MS.Internal.IO.Packaging; // ByteRangeDownloader using MS.Internal.PresentationCore; // for ExceptionStringTable namespace MS.Internal.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/PreloadedPackages.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/PreloadedPackages.cs index cf926cc5c22..1d575317762 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/PreloadedPackages.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/PreloadedPackages.cs @@ -9,16 +9,8 @@ // PackWebRequest. // -using System; -using System.Security; -using System.Collections; using System.Collections.Specialized; -using System.Diagnostics; -using System.Globalization; -using System.IO; using System.IO.Packaging; - -using MS.Internal; using MS.Internal.PresentationCore; // for ExceptionStringTable namespace MS.Internal.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/PseudoWebRequest.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/PseudoWebRequest.cs index 769993d11ae..23fe0316a14 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/PseudoWebRequest.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/PseudoWebRequest.cs @@ -14,17 +14,10 @@ #define TRACE #endif -using System; using System.IO; using System.IO.Packaging; using System.Net; using System.Net.Cache; // for RequestCachePolicy -using System.Runtime.Serialization; -using System.Diagnostics; // For Assert -using MS.Utility; // for EventTrace -using MS.Internal.IO.Packaging; // for PackageCacheEntry -using MS.Internal.PresentationCore; // for SR exception strings -using MS.Internal; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/ResponseStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/ResponseStream.cs index c09994eceed..37a7dc4ec76 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/ResponseStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/ResponseStream.cs @@ -19,12 +19,9 @@ // 12/11/03 - brucemac - adapted from ResponseStream // 15/10/04 - brucemac - adapted from ContainerResponseStream -using System; -using System.Diagnostics; using System.IO; using System.IO.Packaging; // for PackWebResponse using MS.Utility; -using System.Windows; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IVisual3DContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IVisual3DContainer.cs index 481e97ebc81..02caf19839f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IVisual3DContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IVisual3DContainer.cs @@ -4,9 +4,6 @@ -using MS.Internal; -using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Bezier.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Bezier.cs index 0906f8725af..a2d003a0c31 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Bezier.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Bezier.cs @@ -3,18 +3,13 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Windows; -using System.Windows.Media; -using System.Windows.Ink; using System.Windows.Input; -using System.Collections.Generic; using MS.Internal.Ink.InkSerializedFormat; namespace MS.Internal.Ink -{ +{ /// /// Bezier curve generation class /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ContourSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ContourSegment.cs index 8564f36f2ee..8b0f3ad6c8b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ContourSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ContourSegment.cs @@ -3,9 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Windows; -using System.Windows.Media; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/CuspData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/CuspData.cs index 02e4db7ecb6..9a22bfa0d69 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/CuspData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/CuspData.cs @@ -3,13 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Windows; -using System.Windows.Media; -using System.Windows.Ink; using System.Windows.Input; -using System.Collections.Generic; using MS.Internal.Ink.InkSerializedFormat; namespace MS.Internal.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/DrawingFlags.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/DrawingFlags.cs index 08d4dde1565..1faa8a75e89 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/DrawingFlags.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/DrawingFlags.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Ink { /// Flag values which can help the renderer decide how to diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/EllipticalNodeOperations.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/EllipticalNodeOperations.cs index 29e84a1d96e..8ea157da59f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/EllipticalNodeOperations.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/EllipticalNodeOperations.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Media; using System.Windows.Ink; -using System.Windows.Input; -using System.Diagnostics; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ErasingStroke.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ErasingStroke.cs index a1b7e99f11b..701f29260fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ErasingStroke.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ErasingStroke.cs @@ -4,11 +4,8 @@ //#define POINTS_FILTER_TRACE -using System; using System.Windows; using System.Windows.Ink; -using System.Windows.Media; -using System.Collections.Generic; namespace MS.Internal.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ExtendedProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ExtendedProperty.cs index f7fa3c9c807..1fed771f814 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ExtendedProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ExtendedProperty.cs @@ -2,19 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Utility; -using System; -using System.IO; -using System.Collections; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using System.Text; using MS.Internal.Ink.InkSerializedFormat; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ExtendedPropertyCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ExtendedPropertyCollection.cs index 0711f1aca35..f5a5e033943 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ExtendedPropertyCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/ExtendedPropertyCollection.cs @@ -2,21 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.ComponentModel; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Runtime.CompilerServices; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using MS.Internal.Ink.InkSerializedFormat; -using System.Windows.Media; -using System.Reflection; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/GestureRecognizer/NativeRecognizer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/GestureRecognizer/NativeRecognizer.cs index 5b73c71de48..fb0de6bcc17 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/GestureRecognizer/NativeRecognizer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/GestureRecognizer/NativeRecognizer.cs @@ -2,36 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // A wrapper class which interoperates with the unmanaged recognition APIS // in mshwgst.dll -// -// Features: -// -// 01/14/2005 waynezen: Created -// -// using Microsoft.Win32; using MS.Win32; -using System; -using System.Security; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Runtime.ConstrainedExecution; using System.Text; using System.Windows.Media; using System.Windows.Ink; using System.Windows.Input; -using MS.Internal.PresentationCore; - -using MS.Utility; -using SR = MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/AlgoModule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/AlgoModule.cs index a2ec23b29c3..787c62bbe79 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/AlgoModule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/AlgoModule.cs @@ -2,20 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Globalization; -using System.Windows; -using System.Windows.Input; -using System.Windows.Ink; -using MS.Internal.Ink.InkSerializedFormat; -using System.Collections.Generic; -using System.Diagnostics; - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { internal class AlgoModule diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/Codec.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/Codec.cs index f12c595547b..f1ca48acef3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/Codec.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/Codec.cs @@ -2,19 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Globalization; -using System.Windows; -using System.Windows.Input; -using System.Windows.Ink; -using MS.Internal.Ink.InkSerializedFormat; - - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { /// 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 040155d250f..d8a74ab0fd6 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 @@ -4,19 +4,6 @@ //#define OLD_ISF -using MS.Utility; -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Globalization; -using System.Windows; -using System.Windows.Input; -using System.Windows.Ink; -using MS.Internal.Ink.InkSerializedFormat; - - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { internal class Compressor diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/CustomAttributeSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/CustomAttributeSerializer.cs index 552d1bc7946..6f2accb9703 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/CustomAttributeSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/CustomAttributeSerializer.cs @@ -4,23 +4,11 @@ //#define OLD_ISF -using MS.Utility; -using System; using System.IO; -using System.Security; -using System.Diagnostics; -using System.Collections; using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using System.Text; -using MS.Internal.Ink.InkSerializedFormat; -using System.Windows; using System.Windows.Ink; using System.Windows.Media; -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/DrawingAttributeSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/DrawingAttributeSerializer.cs index 7dba8b32199..6d536dd664e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/DrawingAttributeSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/DrawingAttributeSerializer.cs @@ -4,19 +4,9 @@ //#define OLD_ISF -using System; using System.IO; -using System.Security; -using System.Diagnostics; -using System.Collections; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using System.Text; -using MS.Internal.Ink.InkSerializedFormat; using System.Windows.Media; using System.Windows.Ink; -using System.Windows; // // These are the V1 DrawingAttributes and their respective defaults: diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/GorillaCodec.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/GorillaCodec.cs index 3a1ef916208..03387551e82 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/GorillaCodec.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/GorillaCodec.cs @@ -2,21 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Globalization; -using System.Windows; -using System.Windows.Input; -using System.Windows.Ink; -using MS.Internal.Ink.InkSerializedFormat; -using System.Collections.Generic; -using System.Diagnostics; - - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/GuidTagList.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/GuidTagList.cs index b5c1c5b7222..21c0aa05433 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/GuidTagList.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/GuidTagList.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.IO; -using System.Windows.Ink; -using MS.Internal.IO.Packaging; namespace MS.Internal.Ink.InkSerializedFormat { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/HuffCodec.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/HuffCodec.cs index 806cc772e1d..573885226bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/HuffCodec.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/HuffCodec.cs @@ -2,21 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Globalization; -using System.Windows; -using System.Windows.Input; -using System.Collections.Generic; -using System.Windows.Ink; -using MS.Internal.Ink.InkSerializedFormat; -using System.Diagnostics; - - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/HuffModule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/HuffModule.cs index fe4f4261a13..c2b2268b3ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/HuffModule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/HuffModule.cs @@ -2,20 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Globalization; -using System.Windows; -using System.Windows.Input; -using System.Windows.Ink; -using MS.Internal.Ink.InkSerializedFormat; -using System.Collections.Generic; - - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/ISFTagAndGuidCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/ISFTagAndGuidCache.cs index fff3af8e989..8423bb19210 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/ISFTagAndGuidCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/ISFTagAndGuidCache.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.IO; -using System.Windows.Ink; - namespace MS.Internal.Ink.InkSerializedFormat { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/InkSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/InkSerializer.cs index 0d480c0a228..89b3de39b89 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/InkSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/InkSerializer.cs @@ -4,24 +4,11 @@ //#define OLD_ISF -using MS.Utility; -using System; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Media; -using System.Windows.Media.Imaging; using System.IO; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Runtime.Serialization; -using System.Collections; -using System.Collections.Generic; using System.Windows.Input; using System.Windows.Ink; -using MS.Internal.IO.Packaging; - -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.Ink.InkSerializedFormat { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/LZCodec.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/LZCodec.cs index 8a34fcae217..beade190f5b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/LZCodec.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/LZCodec.cs @@ -2,22 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Globalization; -using System.Windows; -using System.Windows.Input; -using System.Windows.Ink; -using MS.Internal.Ink.InkSerializedFormat; -using MS.Internal.Ink; -using System.Collections.Generic; -using System.Diagnostics; - - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/MetricEntry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/MetricEntry.cs index 9b1f07b2f55..5617a6866f8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/MetricEntry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/MetricEntry.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.IO; using System.Windows.Input; -using System.Windows.Ink; namespace MS.Internal.Ink.InkSerializedFormat { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/MultiByteCodec.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/MultiByteCodec.cs index d58fdb4b890..2b377e325c4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/MultiByteCodec.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/MultiByteCodec.cs @@ -2,20 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Globalization; -using System.Windows; -using System.Windows.Input; -using System.Windows.Ink; -using System.Collections.Generic; -using MS.Internal.Ink.InkSerializedFormat; -using System.Diagnostics; - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink.InkSerializedFormat { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/SerializationHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/SerializationHelper.cs index 24c89d4cde4..d1fdf079911 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/SerializationHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/SerializationHelper.cs @@ -2,13 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; using System.IO; using System.Runtime.InteropServices; -using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.Ink.InkSerializedFormat { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/StrokeDescriptor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/StrokeDescriptor.cs index 5585c24271e..146a7a19111 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/StrokeDescriptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/StrokeDescriptor.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; - // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/StrokeSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/StrokeSerializer.cs index a90461bf85d..8f404d8ecc9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/StrokeSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/StrokeSerializer.cs @@ -4,18 +4,11 @@ //#define OLD_ISF -using System; using System.IO; -using System.Security; -using System.Diagnostics; -using System.Windows; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Media; using System.Windows.Input; using System.Windows.Ink; -using MS.Internal.Ink; -using MS.Internal.IO.Packaging; namespace MS.Internal.Ink.InkSerializedFormat { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Lasso.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Lasso.cs index 2075aa6de35..0f1dca4e8bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Lasso.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Lasso.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.Windows; using System.Windows.Ink; -using System.Windows.Media; -using System.Collections.Generic; -using System.Globalization; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Quad.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Quad.cs index f1bd973b4a7..7814e064256 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Quad.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Quad.cs @@ -3,15 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Windows; -using System.Windows.Media; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using MS.Utility; - -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Renderer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Renderer.cs index 52c7ae95be3..f2f92b63c9c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Renderer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Renderer.cs @@ -3,16 +3,8 @@ // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Windows; using System.Windows.Media; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; using MS.Internal.Ink; -using MS.Internal; using MS.Internal.PresentationCore; namespace System.Windows.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeFIndices.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeFIndices.cs index ce284adff90..c64e1877913 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeFIndices.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeFIndices.cs @@ -3,15 +3,8 @@ // See the LICENSE file in the project root for more information. -using MS.Utility; -using MS.Internal; -using System; -using System.Windows; -using System.Collections.Generic; using System.Globalization; -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink { #region StrokeFIndices diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeIntersection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeIntersection.cs index fb1efcb2e83..ec517b2cda8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeIntersection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeIntersection.cs @@ -3,13 +3,7 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; using MS.Internal.Ink; -using MS.Utility; -using System; -using System.Windows; -using System.Collections.Generic; -using System.Globalization; namespace System.Windows.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNode.cs index 1552dc7978b..daf369a7a2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNode.cs @@ -4,13 +4,7 @@ //#define DEBUG_RENDERING_FEEDBACK -using System; -using System.Collections.Generic; using System.Windows; -using System.Windows.Ink; -using System.Windows.Media; -using System.Windows.Input; -using System.Diagnostics; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeData.cs index 6c9abcbc0d2..b894fe6d2a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeData.cs @@ -3,12 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Windows; -using System.Windows.Media; -using System.Windows.Input; -using System.Diagnostics; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeEnumerator.cs index 9e074011527..1ba12da8e7d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeEnumerator.cs @@ -3,16 +3,9 @@ // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Ink; -using System.Windows.Media; using System.Windows.Input; -using MS.Internal.Ink; - -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeOperations.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeOperations.cs index 06e3806e621..ebcd04c2fc9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeOperations.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeOperations.cs @@ -3,15 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Ink; -using System.Windows.Media; -using System.Windows.Input; -using System.Diagnostics; -using MS.Utility; -using MS.Internal; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeOperations2.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeOperations2.cs index 3ae8398eb95..ff3db5f8000 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeOperations2.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeNodeOperations2.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Windows; -using System.Windows.Media; -using System.Windows.Input; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs index 77518ee53f5..d1b566bcb5b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs @@ -4,16 +4,9 @@ //#define DEBUG_RENDERING_FEEDBACK -using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Ink; using System.Windows.Media; -using System.Windows.Input; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; -using MS.Internal; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StylusShape.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StylusShape.cs index 50b76c8614b..3b7af4f9c04 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StylusShape.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StylusShape.cs @@ -3,15 +3,8 @@ // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.IO; -using System.Windows; using System.Windows.Media; using MS.Internal; -using MS.Internal.Ink; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFactory.cs index 1c41dd285c2..77344394c76 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFactory.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.CompilerServices; namespace MS.Internal.Interop.DWrite diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollection.cs index 9107e4e8f53..b69e04de764 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollection.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.CompilerServices; namespace MS.Internal.Interop.DWrite diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollectionLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollectionLoader.cs index 44fddcccd47..1d12d4e577b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollectionLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontCollectionLoader.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.CompilerServices; namespace MS.Internal.Interop.DWrite diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFace.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFace.cs index 4ca49c06a39..8913c42a2ea 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFace.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFace.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.CompilerServices; namespace MS.Internal.Interop.DWrite diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFile.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFile.cs index ddb46baae68..4399ff94242 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFile.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFile.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.CompilerServices; namespace MS.Internal.Interop.DWrite diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFileLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFileLoader.cs index 8841d32884a..9c3f730ab26 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFileLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteFontFileLoader.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.CompilerServices; namespace MS.Internal.Interop.DWrite diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteTextAnalyzer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteTextAnalyzer.cs index 308d6b87c18..ced11f90f72 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteTextAnalyzer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/DWrite/IDWriteTextAnalyzer.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.CompilerServices; namespace MS.Internal.Interop.DWrite diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/IUnknown.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/IUnknown.cs index fcab94b4427..963658add3e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/IUnknown.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/IUnknown.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; - namespace MS.Internal.Interop { internal unsafe interface IUnknown diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/NativePointerCriticalHandle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/NativePointerCriticalHandle.cs index 631330ba478..d9258e71741 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/NativePointerCriticalHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/NativePointerCriticalHandle.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.InteropServices; namespace MS.Internal.Interop diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/TipTsfHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/TipTsfHelper.cs index f9467bdf0a8..dfee204f7cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/TipTsfHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Interop/TipTsfHelper.cs @@ -5,14 +5,10 @@ // // -using System; -using System.Security; using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Input; using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; using MS.Internal.WindowsRuntime.Windows.UI.ViewManagement; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/KnownBoxes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/KnownBoxes.cs index c8f76b386c7..6a502755549 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/KnownBoxes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/KnownBoxes.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/LoadedOrUnloadedOperation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/LoadedOrUnloadedOperation.cs index 294d62b02f6..c39e6d8af4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/LoadedOrUnloadedOperation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/LoadedOrUnloadedOperation.cs @@ -8,9 +8,6 @@ // A pending loaded or unloaded operation, to be run by the MediaContext. // -using System; -using System.Diagnostics; // Debug.Assert - using System.Windows; // DependencyObject using System.Windows.Threading; // DispatcherOperationCallback diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/ParserStreamGeometryContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/ParserStreamGeometryContext.cs index 471b4ce9a60..0fb13b9c98f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/ParserStreamGeometryContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/ParserStreamGeometryContext.cs @@ -13,12 +13,8 @@ // and we reduce creation of temporary strings. // -using MS.Internal; - using System; -using System.Collections; using System.Collections.Generic; -using System.Security; using System.IO; using MS.Utility; @@ -37,10 +33,10 @@ namespace MS.Internal.Markup namespace MS.Internal.Media #endif { - /// - /// ParserStreamGeometryContext - /// - internal class ParserStreamGeometryContext : StreamGeometryContext + /// + /// ParserStreamGeometryContext + /// + internal class ParserStreamGeometryContext : StreamGeometryContext { enum ParserGeometryContextOpCodes : byte { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/TextOptionsInternal.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/TextOptionsInternal.cs index 85b9e1458eb..c8ed3006b2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/TextOptionsInternal.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/TextOptionsInternal.cs @@ -9,7 +9,6 @@ // and TextRenderingMode. // -using System; using System.Windows; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/VisualTreeUtils.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/VisualTreeUtils.cs index c4b807fd42b..00838c1e4ea 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/VisualTreeUtils.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/VisualTreeUtils.cs @@ -2,15 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Internal; -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/XamlSerializationHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/XamlSerializationHelper.cs index 7c840b4a266..e48911c8f0c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/XamlSerializationHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media/XamlSerializationHelper.cs @@ -7,33 +7,31 @@ // using System; -using System.IO; -using System.Collections; -using System.Globalization; // CultureInfo +using System.IO; #if PRESENTATION_CORE using MS.Internal.PresentationCore; #elif PRESENTATIONFRAMEWORK using MS.Internal.PresentationFramework; -#endif +#endif #if PBTCOMPILER -using System.Collections.Generic; +using System.Collections.Generic; using TypeConverterHelper = MS.Internal.Markup; namespace MS.Internal.Markup #else -using System.Windows; -using System.Windows.Media ; -using System.Windows.Media.Media3D; +using System.Windows; +using System.Windows.Media; +using System.Windows.Media.Media3D; using TypeConverterHelper = System.Windows.Markup; namespace MS.Internal.Media #endif { -#if PBTCOMPILER +#if PBTCOMPILER + - // // Internal class used during serialization of Point3D, or Vectors. // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform2DTo3DTo2D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform2DTo3DTo2D.cs index b0db0ae5fcd..24011ff32f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform2DTo3DTo2D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform2DTo3DTo2D.cs @@ -2,27 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Internal; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; using System.Windows; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Media3D; -using MS.Internal.Media3D; -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform3DTo2DTo3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform3DTo2DTo3D.cs index ba3719d353c..6892009d14d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform3DTo2DTo3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform3DTo2DTo3D.cs @@ -8,20 +8,7 @@ // Description: Declaration of the GeneralTransform3DTo2DTo3D class. // -using MS.Internal; -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; using System.Windows.Media.Media3D; namespace MS.Internal.Media3D diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/LineUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/LineUtil.cs index 732ca46f8fb..c2dbff41dc1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/LineUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/LineUtil.cs @@ -60,14 +60,9 @@ // // None of this code understands rays. This is all in terms of lines, lines, lines, lines! -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Media.Media3D; -using MS.Utility; - namespace MS.Internal.Media3D { [Flags] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/M3DUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/M3DUtil.cs index d46abff4662..19ab913b6c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/M3DUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/M3DUtil.cs @@ -8,9 +8,6 @@ // using MS.Utility; -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; 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 44325b9a8b3..2803af84c3b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/MediaTrace.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/MediaTrace.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Diagnostics; -using System.Reflection; -using System.Security; -using System; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper - namespace MS.Internal { #if DEBUG diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/PartialArray.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/PartialArray.cs index ae51e536dbb..afc260299db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/PartialArray.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/PartialArray.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: The PartialArray struct is used when the developer needs to pass a CLR array range to -// a function that takes generic IList interface. For cases when the whole array needs to be passed, -// CLR array already implements IList. -// -// -// - -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using SR = MS.Internal.PresentationCore.SR; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Resources/ContentFileHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Resources/ContentFileHelper.cs index 1bb227b76a2..29fbdb2541b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Resources/ContentFileHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Resources/ContentFileHelper.cs @@ -5,11 +5,9 @@ // // -using System; using System.Reflection; using System.Windows.Resources; using System.Windows.Navigation; -using System.Collections.Generic; namespace MS.Internal.Resources { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Resources/ResourceManagerWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Resources/ResourceManagerWrapper.cs index b461b8b035e..af85e23588f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Resources/ResourceManagerWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Resources/ResourceManagerWrapper.cs @@ -12,16 +12,12 @@ // B. Main assembly for non-localizable resource. // -using System; -using System.IO.Packaging; using System.IO; using System.Collections; -using System.Windows.Resources; using System.Resources; using System.Reflection; using System.Globalization; using MS.Internal.PresentationCore; // SafeSecurityHelper -using System.Windows; namespace MS.Internal.Resources { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/CompositeFontFamily.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/CompositeFontFamily.cs index 15c090346f0..87a0b91dfd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/CompositeFontFamily.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/CompositeFontFamily.cs @@ -9,22 +9,14 @@ // // -using System; using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Markup; // for XmlLanguage using System.Windows.Media; using System.Windows.Media.TextFormatting; - -using MS.Internal.FontCache; using MS.Internal.FontFace; using MS.Internal.TextFormatting; using FontFamily = System.Windows.Media.FontFamily; -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.Shaping { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/CompositeTypefaceMetrics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/CompositeTypefaceMetrics.cs index f5814870935..5e5e1940246 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/CompositeTypefaceMetrics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/CompositeTypefaceMetrics.cs @@ -10,14 +10,10 @@ // -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Media; using System.Windows.Markup; // for XmlLanguage using MS.Internal.FontFace; -using System.Globalization; namespace MS.Internal.Shaping diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Context.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Context.cs index fcd9f2ba9b1..9601fae0416 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Context.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Context.cs @@ -13,10 +13,6 @@ // // -using System.Diagnostics; -using System.Security; -using System; - namespace MS.Internal.Shaping { internal struct ContextualLookupRecords diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/GlyphInfoList.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/GlyphInfoList.cs index c90e5c6f91b..57116bd6d80 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/GlyphInfoList.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/GlyphInfoList.cs @@ -7,14 +7,6 @@ // // Description: GlyphInfoList class - -using System; -using System.Diagnostics; -using System.Windows.Media.TextFormatting; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; - namespace MS.Internal.Shaping { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/GlyphingCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/GlyphingCache.cs index 4efbc4e6fd6..a3cbd9b1f9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/GlyphingCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/GlyphingCache.cs @@ -8,14 +8,9 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; using System.Globalization; using System.Windows.Media; using System.Windows.Media.TextFormatting; - -using MS.Internal; using MS.Internal.TextFormatting; namespace MS.Internal.Shaping diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/IShapeableTextCollector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/IShapeableTextCollector.cs index 7016a3b17b9..cb189d354a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/IShapeableTextCollector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/IShapeableTextCollector.cs @@ -10,11 +10,6 @@ // -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; - using System.Windows.Media; using System.Windows.Media.TextFormatting; using MS.Internal.Shaping; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeCommon.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeCommon.cs index 91550769c1d..aa6297f37cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeCommon.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeCommon.cs @@ -12,11 +12,7 @@ // // -using System.Diagnostics; -using System.Security; -using System; using System.IO; -using MS.Internal; namespace MS.Internal.Shaping { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeLayout.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeLayout.cs index 49813644fa9..df44f54dc0a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeLayout.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeLayout.cs @@ -4,12 +4,7 @@ -using System; -using System.Security; using System.IO; -using System.Diagnostics; - -using MS.Internal.FontCache; namespace MS.Internal.Shaping { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeLayoutCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeLayoutCache.cs index 8e42596020f..d501a6954e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeLayoutCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/OpenTypeLayoutCache.cs @@ -10,15 +10,9 @@ // // -using System; -using System.Security; using System.IO; -using System.Diagnostics; using System.Collections; -using MS.Internal; -using MS.Internal.FontCache; - namespace MS.Internal.Shaping { // Cache is stroing for each glyph list of lookups where this glyph participate as diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Positioning.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Positioning.cs index a5b3d4f7ff4..6995898c417 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Positioning.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Positioning.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - -using System.Diagnostics; -using System.Security; -using System; -using System.IO; - namespace MS.Internal.Shaping { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShapeTypeface.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShapeTypeface.cs index 6ed6821e563..6fa88698f64 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShapeTypeface.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShapeTypeface.cs @@ -9,24 +9,9 @@ // // -using System; -using System.Runtime.InteropServices; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Diagnostics; -using System.Security; -using System.Windows; using System.Windows.Media; -using System.Windows.Media.TextFormatting; - -using MS.Utility; -using MS.Internal; using MS.Internal.FontCache; using MS.Internal.FontFace; -using MS.Internal.TextFormatting; - -using FontFace = MS.Internal.FontFace; namespace MS.Internal.Shaping diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShaperBuffers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShaperBuffers.cs index b1d96d5697a..4bfa82ef2ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShaperBuffers.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShaperBuffers.cs @@ -9,20 +9,6 @@ // // -using System; -using System.Security; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using MS.Internal.FontCache; -using MS.Internal.FontFace; -using System.Windows.Media; -using System.Windows.Media.TextFormatting; -using MS.Internal.PresentationCore; -using MS.Utility; - - namespace MS.Internal.Shaping { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShapingOptions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShapingOptions.cs index aabe1d84ff0..5e2c4ca5921 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShapingOptions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/ShapingOptions.cs @@ -9,8 +9,6 @@ // // -using System; - namespace MS.Internal.Shaping { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Substitution.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Substitution.cs index 6d789722c86..38ed67fa60e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Substitution.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/Substitution.cs @@ -7,9 +7,6 @@ // // Contents: OpentTypeLayout substitution classes -using System.Diagnostics; -using System.Security; -using System; using System.IO; namespace MS.Internal.Shaping diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/TypefaceMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/TypefaceMap.cs index 358b84d3f0f..f850633e82e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/TypefaceMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/TypefaceMap.cs @@ -8,25 +8,17 @@ // // -using System; -using System.Security; -using System.Collections; -using System.Collections.Generic; using System.Globalization; -using System.Diagnostics; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; using MS.Utility; -using MS.Internal; using MS.Internal.Generic; using MS.Internal.FontCache; using MS.Internal.FontFace; using MS.Internal.TextFormatting; using System.Runtime.InteropServices; -using FontFace = MS.Internal.FontFace; - namespace MS.Internal.Shaping { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/UshortList2.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/UshortList2.cs index e221e1c7bfc..4357fe0a855 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/UshortList2.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Shaping/UshortList2.cs @@ -7,13 +7,6 @@ // // Contents: Internal growable list with sublisting -using System.Windows; -using System; -using System.Collections; -using System.Diagnostics; -using MS.Internal; -using System.Security; - namespace MS.Internal.Shaping { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Span.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Span.cs index 55b82809146..77d89e136dc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Span.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Span.cs @@ -11,14 +11,11 @@ // [As of this creation, C# has no real generic type system] // -using System.Windows; -using System; using System.Collections; using MS.Utility; -using System.Diagnostics; namespace MS.Internal -{ +{ /// /// VECTOR: A series of spans /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/SynchronizedInputHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/SynchronizedInputHelper.cs index 28cfd0a05ef..c60740c0b42 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/SynchronizedInputHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/SynchronizedInputHelper.cs @@ -2,16 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Diagnostics; using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; using System.Windows.Input; using System.Windows.Automation; using System.Windows.Automation.Peers; -using MS.Internal.PresentationCore; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/SystemDrawingHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/SystemDrawingHelper.cs index 79419dcb291..abbd269b24f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/SystemDrawingHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/SystemDrawingHelper.cs @@ -7,9 +7,7 @@ // Description: Helper methods for code that uses types from System.Drawing. // -using System; using System.IO; -using System.Security; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Text/TextInterface/DWriteLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Text/TextInterface/DWriteLoader.cs index e60312cbb69..a745123cc3c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Text/TextInterface/DWriteLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Text/TextInterface/DWriteLoader.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.ComponentModel; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Text/TextInterface/Factory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Text/TextInterface/Factory.cs index 0a3ee63147a..9c1014f0f56 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Text/TextInterface/Factory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Text/TextInterface/Factory.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.InteropServices; using MS.Internal.Interop; using MS.Internal.Interop.DWrite; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/Bidi.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/Bidi.cs index c1db01cc37f..f111c3844ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/Bidi.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/Bidi.cs @@ -4,16 +4,8 @@ -using System.Windows; -using System; -using MS.Internal.TextFormatting; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; -using System.Security; using System.Windows.Media.TextFormatting; -using MS.Internal; namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/CultureMapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/CultureMapper.cs index 79b4369036f..9125ee70b31 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/CultureMapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/CultureMapper.cs @@ -10,9 +10,7 @@ // // -using System; using System.Globalization; -using System.Diagnostics; using MS.Internal.PresentationCore; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/DrawingState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/DrawingState.cs index ea0d62fadaa..43293f55180 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/DrawingState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/DrawingState.cs @@ -10,8 +10,6 @@ // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FormatSettings.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FormatSettings.cs index 73dd4800aa4..bba6d714d10 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FormatSettings.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FormatSettings.cs @@ -10,11 +10,6 @@ // -using System; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Threading; using System.Windows.Media; using System.Windows.Media.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FormattedTextSymbols.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FormattedTextSymbols.cs index 38de7960e43..e7123039f54 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FormattedTextSymbols.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FormattedTextSymbols.cs @@ -10,19 +10,11 @@ // // -using System; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using MS.Internal; using MS.Internal.Text.TextInterface; using MS.Internal.Shaping; -using System.Globalization; -using MS.Internal.FontCache; namespace MS.Internal.TextFormatting diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextBreakpoint.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextBreakpoint.cs index b7951378d98..80e93d8eb58 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextBreakpoint.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextBreakpoint.cs @@ -2,30 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: Full text implementation of the specialized text line representing -// state of line up to the point where line break may occur -// -// Spec: Text Formatting API.doc -// -// - - -using System; -using System.Security; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal.PresentationCore; -using SR = MS.Internal.PresentationCore.SR; - - namespace MS.Internal.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextLine.cs index 0dc426f6ca2..652c874e001 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextLine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextLine.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Contents: Complex implementation of TextLine -// -// -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.Reflection; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal; -using MS.Internal.Shaping; - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextState.cs index 633dd8df7e3..790e80df3bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextState.cs @@ -5,15 +5,9 @@ -using System; -using System.Security; using System.Globalization; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal.Shaping; using MS.Internal.Generic; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/GenericTextProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/GenericTextProperties.cs index 35fae8e3595..c7fe16dd195 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/GenericTextProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/GenericTextProperties.cs @@ -10,8 +10,6 @@ // // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ITextMetrics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ITextMetrics.cs index 0ff7276da33..5f900acbfdf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ITextMetrics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ITextMetrics.cs @@ -12,11 +12,6 @@ // // - -using System; -using System.Windows.Media.TextFormatting; -using System.Runtime.InteropServices; - namespace MS.Internal.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ITextSymbols.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ITextSymbols.cs index b2b7bcd87ec..4db9daa325e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ITextSymbols.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ITextSymbols.cs @@ -12,11 +12,7 @@ // -using System; -using System.Collections; -using System.Collections.Generic; using System.Globalization; -using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LexicalChunk.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LexicalChunk.cs index 4e94c3f1e70..b09c0ac6ebc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LexicalChunk.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LexicalChunk.cs @@ -10,7 +10,6 @@ // -using System; using System.Windows.Media.TextFormatting; using MS.Internal.Generic; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServices.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServices.cs index c91c25df732..24a5e8c6dfa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServices.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServices.cs @@ -9,15 +9,10 @@ // // -using System; using System.Windows; -using System.Windows.Media; using System.Windows.Media.TextFormatting; -using System.Security; using System.Runtime.InteropServices; -using MS.Internal.Shaping; using MS.Internal.Text.TextInterface; -using MS.Internal.PresentationCore; namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesCallbacks.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesCallbacks.cs index 100be53606b..37f2f2ad947 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesCallbacks.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesCallbacks.cs @@ -2,30 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -/* SSS_DROP_BEGIN */ - -/************************************************************************* -* NOTICE: Code excluded from Developer Reference Sources. -* Don't remove the SSS_DROP_BEGIN directive on top of the file. -*******************************************************************/ - - -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Security; using System.Windows; using System.Globalization; using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.TextFormatting; -using MS.Internal; -using MS.Internal.Shaping; -using MS.Internal.FontCache; - -using SR=MS.Internal.PresentationCore.SR; using MS.Internal.Text.TextInterface; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesRun.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesRun.cs index 8240b40b61d..6ad5695e70c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesRun.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesRun.cs @@ -2,24 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; using System.Globalization; - -using System.Security; -using MS.Internal.Shaping; -using MS.Internal.FontCache; -using MS.Utility; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.Text.TextInterface; namespace MS.Internal.TextFormatting diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/NumberSubstitution.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/NumberSubstitution.cs index 7f974fdff3e..080c1fbbd39 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/NumberSubstitution.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/NumberSubstitution.cs @@ -2,15 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Globalization; -using System.Runtime.InteropServices; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal.FontCache; -using MS.Internal.FontFace; -using MS.Internal.Shaping; -using MS.Win32; namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/SimpleTextLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/SimpleTextLine.cs index d786414d092..84e2ce2c896 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/SimpleTextLine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/SimpleTextLine.cs @@ -9,19 +9,10 @@ // // -using System; -using System.Security; using System.Windows; using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.TextFormatting; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using MS.Internal.Shaping; -using MS.Internal.FontCache; - -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextFormatterImp.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextFormatterImp.cs index 5c67fea74e3..f02ef8d6aa2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextFormatterImp.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextFormatterImp.cs @@ -2,36 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -//+----------------------------------------------------------------------- -// -// -// -// Contents: Text formatter implementation -// -// - - -using System; -using System.Security; -using System.Windows; using System.Windows.Media; -using System.Windows.Threading; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows.Media.TextFormatting; using MS.Utility; - -using SR=MS.Internal.PresentationCore.SR; using MS.Internal.Shaping; using MS.Internal.Text.TextInterface; using MS.Internal.FontCache; -#if !OPTIMALBREAK_API -using MS.Internal.PresentationCore; -#endif - - namespace MS.Internal.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextMarkerSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextMarkerSource.cs index 3704c0f3558..6ea970e7a1e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextMarkerSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextMarkerSource.cs @@ -10,18 +10,12 @@ // -using System; -using System.Diagnostics; -using System.Windows.Threading; using System.Text; using System.Globalization; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal; - -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextMetrics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextMetrics.cs index fa07f434e7a..955522d4859 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextMetrics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextMetrics.cs @@ -2,23 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: Full text implementation of ITextMetrics -// -// - -using System; -using System.Diagnostics; using System.Windows; -using System.Windows.Media; using System.Windows.Media.TextFormatting; -using System.Security; -using MS.Internal.FontCache; - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextPenaltyModule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextPenaltyModule.cs index 0f651903097..815d4573c88 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextPenaltyModule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextPenaltyModule.cs @@ -2,25 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: Critical handle wrapping unmanaged text penalty module for -// penalty calculation of optimal paragraph vis PTS direct access. -// -// Spec: Text Formatting API.doc -// -// - - -using System; -using System.Security; -using System.Windows.Media; using System.Windows.Media.TextFormatting; -using System.Runtime.InteropServices; - -using SR = MS.Internal.PresentationCore.SR; - namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextProperties.cs index 5a38695904a..cb3ea4ec99b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextProperties.cs @@ -10,16 +10,10 @@ // -using System; -using System.Collections.Generic; using System.Globalization; -using System.Diagnostics; -using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal; -using MS.Internal.Shaping; namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextRunCacheImp.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextRunCacheImp.cs index 92e5155604c..ef2cf79f3fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextRunCacheImp.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextRunCacheImp.cs @@ -2,23 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: Cache of text and text properties of run -// -// - - -using System; -using System.Collections.Generic; using System.Globalization; -using System.Windows; -using System.Diagnostics; using System.Windows.Media.TextFormatting; -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextShapeableCharacters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextShapeableCharacters.cs index 97104b471fa..fad7f52ce11 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextShapeableCharacters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextShapeableCharacters.cs @@ -12,15 +12,7 @@ // -using System; -using System.Diagnostics; -using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Security; -using System.Windows; using System.Windows.Markup; // for XmlLanguage -using System.Windows.Media; using MS.Internal; using MS.Internal.FontCache; using MS.Internal.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextShapeableSymbols.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextShapeableSymbols.cs index 2e32980a2e1..cbcb4ee2eb6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextShapeableSymbols.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextShapeableSymbols.cs @@ -12,14 +12,9 @@ // -using System; -using System.Security; -using System.Collections; -using System.Collections.Generic; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal.Shaping; namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextStore.cs index 60062c0925c..d5764568f4a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/TextStore.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: FullTextLine text store -// -// - - -using System; using System.Text; using System.Globalization; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.InteropServices; -using MS.Internal.Shaping; using MS.Internal.Generic; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ThousandthOfEmRealDoubles.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ThousandthOfEmRealDoubles.cs index 675decd50de..85424025e47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ThousandthOfEmRealDoubles.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ThousandthOfEmRealDoubles.cs @@ -2,21 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: ThousandthOfEmRealDoubles class -// -// - -using System; -using System.Diagnostics; -using System.Collections.Generic; - -using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ThousandthOfEmRealPoints.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ThousandthOfEmRealPoints.cs index 6cb60c789cc..fb5088c0e47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ThousandthOfEmRealPoints.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/ThousandthOfEmRealPoints.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: ThousandthOfEmRealPoints class -// -// - -using System; -using System.Diagnostics; -using System.Collections.Generic; - using System.Windows; -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/UIElementHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/UIElementHelper.cs index d49a796f78b..d1d95333e69 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/UIElementHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/UIElementHelper.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPane.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPane.cs index 8fe542ee314..fe0aca36e67 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPane.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPane.cs @@ -5,15 +5,9 @@ // // -using MS.Internal.PresentationCore.WindowsRuntime; -using System; using System.IO; -using System.Reflection; using System.Runtime.InteropServices; -using System.Security; -using System.Windows; using System.Windows.Interop; -using System.Windows.Media; namespace MS.Internal.WindowsRuntime { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPaneRcw.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPaneRcw.cs index f56adac294b..7371609888a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPaneRcw.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPaneRcw.cs @@ -5,10 +5,8 @@ // // -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace MS.Internal.WindowsRuntime { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/NativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/NativeMethods.cs index 37a1c19ac88..01f800aa357 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/NativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/NativeMethods.cs @@ -5,11 +5,7 @@ // // -using System; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; -using MS.Internal.PresentationCore; namespace MS.Internal.WindowsRuntime { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/UISettings.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/UISettings.cs index 19ff835afe5..d0a46b4e354 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/UISettings.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/UISettings.cs @@ -1,12 +1,6 @@ -using System; using System.IO; -using System.Reflection; using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Interop; using System.Windows.Media; -using MS.Internal.PresentationCore.WindowsRuntime; namespace MS.Internal.WindowsRuntime { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/UISettingsRcw.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/UISettingsRcw.cs index a0ceb04450a..8fee3022fb2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/UISettingsRcw.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/UISettingsRcw.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; -using System.Windows.Media; namespace MS.Internal.WindowsRuntime { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WpfWebRequestHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WpfWebRequestHelper.cs index 264190acd95..a85f791b9b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WpfWebRequestHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/WpfWebRequestHelper.cs @@ -11,16 +11,13 @@ // type from filename. // -using System; using System.Net; using System.Net.Cache; -using System.Security; using System.IO; using System.Windows.Navigation; using System.IO.Packaging; using MS.Internal.AppModel; -using MS.Internal.Utility; using MS.Internal.PresentationCore; //From Presharp documentation: @@ -31,24 +28,24 @@ namespace MS.Internal { -/// -/// Helper class for handling all web requests/responses in the framework. Using it ensures consisent handling -/// and support for special features: cookies, NTLM authentication, caching, inferring MIME type from filename. -/// -/// Only two methods are mandatory: -/// - CreateRequest. (PackWebRequestFactory.CreateWebRequest is an allowed alternative. It delegates to -/// this CreateRequest for non-pack URIs.) -/// - HandleWebResponse. -/// The remaining methods just automate the entire request process, up to the point of getting the response -/// stream. Using the SecurityTreatAsSafe ones helps avoid making other code SecurityCritical. -/// -/// Related types: -/// - BaseUriHelper -/// - BindUriHelper (built into Framework, subset into Core) -/// - PackWebRequestFactory -/// - MimeObjectFactory -/// -static class WpfWebRequestHelper + /// + /// Helper class for handling all web requests/responses in the framework. Using it ensures consisent handling + /// and support for special features: cookies, NTLM authentication, caching, inferring MIME type from filename. + /// + /// Only two methods are mandatory: + /// - CreateRequest. (PackWebRequestFactory.CreateWebRequest is an allowed alternative. It delegates to + /// this CreateRequest for non-pack URIs.) + /// - HandleWebResponse. + /// The remaining methods just automate the entire request process, up to the point of getting the response + /// stream. Using the SecurityTreatAsSafe ones helps avoid making other code SecurityCritical. + /// + /// Related types: + /// - BaseUriHelper + /// - BindUriHelper (built into Framework, subset into Core) + /// - PackWebRequestFactory + /// - MimeObjectFactory + /// + static class WpfWebRequestHelper { internal static WebRequest CreateRequest(Uri uri) { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/ModuleInitializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/ModuleInitializer.cs index 732e4302df5..a70d792624d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/ModuleInitializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/ModuleInitializer.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/OtherAssemblyAttrs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/OtherAssemblyAttrs.cs index b965544d04b..83f94f0a9f2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/OtherAssemblyAttrs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/OtherAssemblyAttrs.cs @@ -7,63 +7,62 @@ // using MS.Internal.PresentationCore; -using System; using System.Runtime.CompilerServices; -[assembly:InternalsVisibleTo(BuildInfo.PresentationFramework)] -[assembly:InternalsVisibleTo(BuildInfo.ReachFramework)] -[assembly:InternalsVisibleTo(BuildInfo.SystemPrinting)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationUI)] -[assembly:InternalsVisibleTo(BuildInfo.SystemWindowsPresentation)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemDrawing)] -[assembly:InternalsVisibleTo(BuildInfo.SystemWindowsControlsRibbon)] -[assembly:InternalsVisibleTo(BuildInfo.WindowsFormsIntegration)] -[assembly:InternalsVisibleTo($"PresentationCore.Tests, PublicKey={BuildInfo.WCP_PUBLIC_KEY_STRING}")] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFramework)] +[assembly: InternalsVisibleTo(BuildInfo.ReachFramework)] +[assembly: InternalsVisibleTo(BuildInfo.SystemPrinting)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationUI)] +[assembly: InternalsVisibleTo(BuildInfo.SystemWindowsPresentation)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemDrawing)] +[assembly: InternalsVisibleTo(BuildInfo.SystemWindowsControlsRibbon)] +[assembly: InternalsVisibleTo(BuildInfo.WindowsFormsIntegration)] +[assembly: InternalsVisibleTo($"PresentationCore.Tests, PublicKey={BuildInfo.WCP_PUBLIC_KEY_STRING}")] [assembly: TypeForwardedTo(typeof(System.Windows.Markup.IUriContext))] [assembly: TypeForwardedTo(typeof(System.Windows.Media.TextFormattingMode))] [assembly: TypeForwardedTo(typeof(System.Windows.Input.ICommand))] // Namespace information for Xaml -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Animation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Media3D")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Imaging")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Effects")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Input")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Ink")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.TextFormatting")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Automation")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "av")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Animation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Media3D")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Imaging")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Effects")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Ink")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.TextFormatting")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Automation")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "av")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/composite-font", "System.Windows.Media")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/composite-font", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System.Windows.Markup")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/winfx/2006/xaml", "x")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System.Windows.Markup")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/winfx/2006/xaml", "x")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Animation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Media3D")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Imaging")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Effects")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Input")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.TextFormatting")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Automation")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/xps/2005/06", "xps")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Animation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Media3D")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Imaging")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Effects")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.TextFormatting")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Automation")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/xps/2005/06", "xps")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Animation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Media3D")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Imaging")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Effects")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Input")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Ink")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.TextFormatting")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Automation")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "wpf")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Animation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Media3D")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Imaging")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Effects")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Ink")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.TextFormatting")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Automation")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "wpf")] [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "System.Windows")] [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "System.Windows.Media")] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj b/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj index 1d79f5d8588..df8afb8ed48 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj @@ -22,6 +22,7 @@ + @@ -47,7 +48,6 @@ - diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebRequest.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebRequest.cs index 2624fb9c4a3..248443c3dc4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebRequest.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebRequest.cs @@ -12,16 +12,10 @@ #define TRACE #endif -using System; -using System.IO; using System.Net; using System.Net.Cache; // for RequestCachePolicy -using System.Runtime.Serialization; -using System.Diagnostics; // For Assert -using MS.Utility; // for EventTrace using MS.Internal.IO.Packaging; // for PackageCacheEntry using MS.Internal.PresentationCore; // for SR exception strings -using System.Security; // for SecurityCritical using MS.Internal; namespace System.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebRequestFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebRequestFactory.cs index 473aaca96e6..f16179a9ff0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebRequestFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebRequestFactory.cs @@ -13,12 +13,9 @@ #define TRACE #endif -using System; using System.Net; -using System.Diagnostics; // for Assert using MS.Internal.IO.Packaging; // for PackageCache using MS.Internal.PresentationCore; // for ExceptionStringTable -using System.Security; using MS.Internal; namespace System.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebResponse.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebResponse.cs index c811dbe5292..4c2233a0017 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebResponse.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackWebResponse.cs @@ -13,17 +13,10 @@ #define TRACE #endif -using System; -using System.IO; using System.Net; -using System.Runtime.Serialization; -using System.Diagnostics; // For Assert using System.Threading; // for ManualResetEvent -using System.Globalization; // for CultureInfo using MS.Internal.PresentationCore; // for ExceptionStringTable using MS.Internal.IO.Packaging; // for ResponseStream -using System.Security; -using System.Windows.Navigation; using MS.Utility; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackageStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackageStore.cs index 1f271066056..74ef34e359b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackageStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/IO/Packaging/PackageStore.cs @@ -8,14 +8,8 @@ // Description: Collection of packages to be used with PackWebRequest. // -using System; -using System.Collections; using System.Collections.Specialized; -using System.IO; -using System.IO.Packaging; -using System.Security; using System.Windows.Navigation; -using SecurityHelper=MS.Internal.SecurityHelper; using MS.Internal.PresentationCore; // for ExceptionStringTable namespace System.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/AutoResizedEvent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/AutoResizedEvent.cs index 6834a0da0e4..a6ec25f53b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/AutoResizedEvent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/AutoResizedEvent.cs @@ -2,14 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Windows.Threading; - -using System.Windows.Media; -using System.Runtime.InteropServices; -using MS.Win32; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs index 341dd797f72..58f624f3b55 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/AutomationProperties.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Automation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs index ebc4580f037..3dbc0bc6b97 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs @@ -4,24 +4,11 @@ //#define ENABLE_AUTOMATIONPEER_LOGGING // uncomment to include logging of various activities -using System; using System.Collections; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; -using System.Collections.Generic; -using System.Windows.Automation; using System.Windows.Automation.Provider; - using MS.Internal; using MS.Internal.Automation; -using MS.Internal.Media; -using MS.Win32; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/ContentElementAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/ContentElementAutomationPeer.cs index 8348e79b3b9..583669f135c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/ContentElementAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/ContentElementAutomationPeer.cs @@ -8,12 +8,8 @@ // Description: Automation element for ContentElements // -using System; // Object -using System.Collections.Generic; // List using System.Windows.Input; // AccessKeyManager using MS.Internal.PresentationCore; // SR -using System.Windows.Automation.Provider; -using System.Windows.Automation; using MS.Internal.Automation; namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/GenericRootAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/GenericRootAutomationPeer.cs index 712f1169f83..953858912de 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/GenericRootAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/GenericRootAutomationPeer.cs @@ -2,16 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; using System.Text; -using System.Windows; -using System.Windows.Interop; -using System.Windows.Media; using System.ComponentModel; - -using MS.Internal; using MS.Win32; // Used to support the warnings disabled below diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/UIElement3DAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/UIElement3DAutomationPeer.cs index 20f52f619ca..4d2eae5faf7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/UIElement3DAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/UIElement3DAutomationPeer.cs @@ -2,18 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using System.Windows; using System.Windows.Input; using System.Windows.Interop; using System.Windows.Media; -using System.Collections.Generic; - using MS.Internal; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/UIElementAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/UIElementAutomationPeer.cs index be64b8dec25..981cf699075 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/UIElementAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/UIElementAutomationPeer.cs @@ -2,23 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using System.Windows; using System.Windows.Input; using System.Windows.Interop; using System.Windows.Media; -using System.Collections.Generic; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using MS.Internal.Automation; - using MS.Internal; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Automation.Peers { - /// public class UIElementAutomationPeer: AutomationPeer { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArrayRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArrayRecord.cs index 782e5333eff..91b1184970d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArrayRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArrayRecord.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.Collections; -using System.Linq; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySingleObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySingleObject.cs index ccb65ec4d24..c632d369223 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySingleObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySingleObject.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySinglePrimitive.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySinglePrimitive.cs index ff997e8413d..4ba860ca395 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySinglePrimitive.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySinglePrimitive.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySingleString.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySingleString.cs index 51030de4f0d..eb54892e875 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySingleString.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ArraySingleString.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; -using System.Linq; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/BinaryFormatWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/BinaryFormatWriter.cs index b5e02f8d538..26ddd6d2756 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/BinaryFormatWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/BinaryFormatWriter.cs @@ -8,8 +8,6 @@ using System.Runtime.CompilerServices; using System.Runtime.Serialization; using System.IO; -using System.Collections.Generic; -using System.Diagnostics; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/BinaryLibrary.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/BinaryLibrary.cs index e2c62229137..d0b7200961a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/BinaryLibrary.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/BinaryLibrary.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassInfo.cs index 900e25f1825..bcaf1dedef6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassInfo.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassRecord.cs index a1a9966c06e..88ce75a1b39 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassRecord.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassWithId.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassWithId.cs index 5c3853e1260..6eef16a1c5f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassWithId.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassWithId.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Serialization; -using System.Collections.Generic; using System.IO; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassWithMembersAndTypes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassWithMembersAndTypes.cs index 71c4df82e98..737ef6f08ad 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassWithMembersAndTypes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ClassWithMembersAndTypes.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/IRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/IRecord.cs index 9bd946977cb..6f17861d0d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/IRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/IRecord.cs @@ -1,7 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Linq; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ListConverterHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ListConverterHelper.cs index eef755b7750..9e227f191f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ListConverterHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/ListConverterHelper.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. #nullable enable -using System.Collections.Generic; using System.Collections; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/MemberTypeInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/MemberTypeInfo.cs index 55d43cd9f27..792f7d8848f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/MemberTypeInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/MemberTypeInfo.cs @@ -5,8 +5,6 @@ using System.Collections; using System.Runtime.Serialization; using System.IO; -using System.Collections.Generic; -using System.Linq; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/Record.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/Record.cs index fe59b386a1b..033717f38db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/Record.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/Record.cs @@ -4,7 +4,6 @@ #nullable enable using System.Globalization; using System.IO; -using System.Collections.Generic; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/StringRecordsCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/StringRecordsCollection.cs index 6eb49204b53..f6efcd6c44e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/StringRecordsCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/StringRecordsCollection.cs @@ -3,8 +3,6 @@ #nullable enable -using System.Collections.Generic; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/SystemClassWithMembersAndTypes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/SystemClassWithMembersAndTypes.cs index 1f6003e8d65..80c77689c74 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/SystemClassWithMembersAndTypes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/BinaryFormat/SystemClassWithMembersAndTypes.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ClassHandlersStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ClassHandlersStore.cs index 27a1bafe061..238122fa46b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ClassHandlersStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ClassHandlersStore.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ContentElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ContentElement.cs index 4afd31dec35..89dfd8752d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ContentElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ContentElement.cs @@ -7,21 +7,10 @@ using MS.Internal.Interop; using MS.Internal.KnownBoxes; using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Security; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Input; -using System.Windows.Markup; using System.Windows.Media.Animation; -using System.Windows.Threading; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/CoreCompatibilityPreferences.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/CoreCompatibilityPreferences.cs index 8e083bbbc46..11c8f4ebe0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/CoreCompatibilityPreferences.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/CoreCompatibilityPreferences.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Specialized; // NameValueCollection using System.Configuration; // ConfigurationManager -using System.Runtime.Versioning; using MS.Internal.PresentationCore; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/CultureInfoConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/CultureInfoConverter.cs index 3640955d439..ac27d1b193d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/CultureInfoConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/CultureInfoConverter.cs @@ -9,13 +9,10 @@ // // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Security; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataFormats.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataFormats.cs index 5ffca011d3c..b895c45aec3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataFormats.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataFormats.cs @@ -12,12 +12,8 @@ using MS.Win32; using System.Collections; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Security; using System.Text; using MS.Internal.PresentationCore; -using SecurityHelper=MS.Internal.SecurityHelper; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectCopyingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectCopyingEventArgs.cs index a2911ba29aa..ecf9a15c4b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectCopyingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectCopyingEventArgs.cs @@ -7,8 +7,6 @@ // Description: DataObject.Copying event arguments // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectEventArgs.cs index 67367667020..395c58918e0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectEventArgs.cs @@ -7,8 +7,6 @@ // Description: Base class for DataObject events arguments // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectPastingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectPastingEventArgs.cs index fbc9b03289d..d73c7065e78 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectPastingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectPastingEventArgs.cs @@ -2,15 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: DataObject.Pasting event arguments -// - -using System; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectSettingDataEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectSettingDataEventArgs.cs index 7e474dd9b3d..0df32b6f300 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectSettingDataEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DataObjectSettingDataEventArgs.cs @@ -7,8 +7,6 @@ // Description: DataObjectSettingData event arguments // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/VisualDiagnostics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/VisualDiagnostics.cs index ba00a439c7c..50952c9d45c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/VisualDiagnostics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/VisualDiagnostics.cs @@ -2,19 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Visual tree diagnostic API. -// -using Microsoft.Win32; // Registry, RegistryKey -using MS.Internal; // CoreAppContextSwitches -using System.Security; -using System.Windows.Interop; // HwndSource +using Microsoft.Win32; +using MS.Internal; +using System.Windows.Interop; using System.Windows.Media; using System.Windows.Media.Media3D; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Diagnostics { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/VisualTreeChangeEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/VisualTreeChangeEventArgs.cs index e6defb86a5f..17df479ba64 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/VisualTreeChangeEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/VisualTreeChangeEventArgs.cs @@ -8,10 +8,6 @@ // Visual tree change arguments // -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; - namespace System.Windows.Diagnostics { public enum VisualTreeChangeType { Add, Remove } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/XamlSourceInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/XamlSourceInfo.cs index 6ed45ec351c..e82be9f0c0d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/XamlSourceInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/XamlSourceInfo.cs @@ -8,10 +8,6 @@ // Defines XAML source info. // -using System; -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows.Diagnostics { [DebuggerDisplay("{line={LineNumber}, offset={LinePosition}, uri={SourceUri}}")] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/XamlSourceInfoHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/XamlSourceInfoHelper.cs index f6bfc2faa88..99e2d733034 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/XamlSourceInfoHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Diagnostics/XamlSourceInfoHelper.cs @@ -24,7 +24,6 @@ using System.Reflection; using System.Runtime.CompilerServices; // ConditionalWeakTable -using System.Security; using System.Xaml; namespace System.Windows.Diagnostics diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Documents/DocumentPaginator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Documents/DocumentPaginator.cs index 53b88fdb51d..84275ce419c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Documents/DocumentPaginator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Documents/DocumentPaginator.cs @@ -12,10 +12,9 @@ // using System.ComponentModel; // AsyncCompletedEventArgs -using System.Windows.Media; // Visual using MS.Internal.PresentationCore; // SR -namespace System.Windows.Documents +namespace System.Windows.Documents { /// /// This is the abstract base class for all paginating layouts. It diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Documents/DynamicDocumentPaginator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Documents/DynamicDocumentPaginator.cs index b8c103a9a94..c7066fa5910 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Documents/DynamicDocumentPaginator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Documents/DynamicDocumentPaginator.cs @@ -11,10 +11,9 @@ // // -using System.ComponentModel; // AsyncCompletedEventArgs using MS.Internal.PresentationCore; // SR -namespace System.Windows.Documents +namespace System.Windows.Documents { /// /// Defines advanced methods and properties for paginating layouts, such diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DpiChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DpiChangedEventArgs.cs index 1db8ef4a616..ea645a4ef7f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DpiChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DpiChangedEventArgs.cs @@ -11,11 +11,8 @@ using System.ComponentModel; using System.Runtime.InteropServices; -using System.Security; -using System.Threading; using System.Windows.Interop; using MS.Internal; -using MS.Internal.PresentationCore; using MS.Win32; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DpiScale.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DpiScale.cs index b833fd75a48..ec4ea9923e6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DpiScale.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DpiScale.cs @@ -6,7 +6,6 @@ // using MS.Internal; -using MS.Internal.PresentationCore; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragAction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragAction.cs index faf24986493..8b9c73d434b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragAction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragAction.cs @@ -10,8 +10,6 @@ // // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDrop.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDrop.cs index 9fa52213a13..67dd9e3e5df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDrop.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDrop.cs @@ -12,19 +12,12 @@ // using MS.Win32; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Threading; -using System.Security; using MS.Internal; -using MS.Internal.PresentationCore; using System.Windows.Input; using System.Windows.Interop; -using System.Windows.Media; -using SR=MS.Internal.PresentationCore.SR; using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDropEffects.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDropEffects.cs index 7fa41eca892..7b8e95b1fbd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDropEffects.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDropEffects.cs @@ -10,8 +10,6 @@ // // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDropKeyStates.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDropKeyStates.cs index 99ea9bca2ee..2b46f1571cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDropKeyStates.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragDropKeyStates.cs @@ -9,8 +9,6 @@ // // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragEventArgs.cs index 0ca08aa7df7..859881e16f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragEventArgs.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: DragEventArgs for drag-and-drop operation. -// -// -// - -using System; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Input; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragEventHandler.cs index 2f0d5ba1f0e..0a50c24405a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DragEventHandler.cs @@ -9,8 +9,6 @@ // // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Duration.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Duration.cs index f9bb9bc046c..ca652f780f8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Duration.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Duration.cs @@ -2,15 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - // Allow suppression of certain presharp messages #pragma warning disable 1634, 1691 using System.ComponentModel; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DurationConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DurationConverter.cs index 64dadf223bd..329f840ef8b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DurationConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/DurationConverter.cs @@ -4,13 +4,10 @@ // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Security; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventHandlersStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventHandlersStore.cs index 9162bb2f38e..d61a90895fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventHandlersStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventHandlersStore.cs @@ -2,15 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; - using MS.Utility; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventManager.cs index cb1ae901e70..528d8d05dd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventManager.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; -using MS.Utility; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventPrivateKey.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventPrivateKey.cs index d4b789cc3fa..da949fa6752 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventPrivateKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventPrivateKey.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs index 75b00be3175..50aa4789314 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using MS.Utility; - -using SR=MS.Internal.PresentationCore.SR; using MS.Internal; using MS.Internal.KnownBoxes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRouteFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRouteFactory.cs index 665a119b71d..873917c3e2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRouteFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRouteFactory.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; - -using MS.Utility; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FocusWithinProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FocusWithinProperty.cs index 1cc0328cd98..9ec2ad6f146 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FocusWithinProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FocusWithinProperty.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Input; using MS.Internal.KnownBoxes; - + namespace System.Windows { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretch.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretch.cs index ba146b2e0f8..f04050046b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretch.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretch.cs @@ -7,15 +7,11 @@ // Description: FontStretch structure. // -using System; using System.ComponentModel; -using System.Diagnostics; using MS.Internal; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows +namespace System.Windows { /// /// FontStretch structure describes relative change from the normal aspect ratio diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretchConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretchConverter.cs index 0cf03004841..e83d7d4ce4a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretchConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretchConverter.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: FontStretch type converter. - - -using System; -using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; -using MS.Internal; -using System.Windows.Media; -using System.Text; -using System.Collections; using System.Globalization; -using System.Runtime.InteropServices; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows -{ +{ /// /// FontStretchConverter class parses a font stretch string. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretches.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretches.cs index 717d7c20233..6d6a35ff7b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretches.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStretches.cs @@ -7,10 +7,9 @@ // Description: Predefined FontStretch structures that correspond to common font stretches. // -using System; using System.Globalization; -namespace System.Windows +namespace System.Windows { /// /// FontStretches contains predefined font stretch structures for common font stretches. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyle.cs index 2bfa6830e0a..f433ad41ee8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyle.cs @@ -7,9 +7,7 @@ // Description: FontStyle structure. -using System; using System.ComponentModel; -using System.Diagnostics; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyleConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyleConverter.cs index 9b3a3979982..d02413d23b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyleConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyleConverter.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: FontStyle type converter. -// - -using System; -using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; -using MS.Internal; -using System.Windows.Media; -using System.Text; -using System.Collections; using System.Globalization; -using System.Runtime.InteropServices; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows -{ +{ /// /// FontStyleConverter class parses a font style string. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyles.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyles.cs index 82e73ebc0d0..5691491c69d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyles.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontStyles.cs @@ -7,11 +7,7 @@ // Description: Predefined FontStyle structures that correspond to common font styles. // - -using System; -using System.Globalization; - -namespace System.Windows +namespace System.Windows { /// /// FontStyles contains predefined font style structures for common font styles. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeight.cs index a59ccd14e8c..08db2a322ee 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeight.cs @@ -8,13 +8,9 @@ // -using System; using System.ComponentModel; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows +namespace System.Windows { /// /// FontWeight structure describes the degree of blackness or thickness of strokes of characters in a font. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeightConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeightConverter.cs index 4aeb36215ec..688716bd24e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeightConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeightConverter.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: FontWeight type converter. - - -using System; -using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; -using MS.Internal; -using System.Windows.Media; -using System.Text; -using System.Collections; using System.Globalization; -using System.Runtime.InteropServices; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows -{ +{ /// /// FontWeightConverter class parses a font weight string. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeights.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeights.cs index ca3a96e1de6..7774b06bdcf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeights.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FontWeights.cs @@ -6,10 +6,9 @@ // // Description: Predefined FontWeight structures that correspond to common font weights. // -using System; using System.Globalization; -namespace System.Windows +namespace System.Windows { /// /// FontWeights contains predefined font weight structures for common font weights. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FreezableCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FreezableCollection.cs index 3d8a38a601d..a85dc7e7fea 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FreezableCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/FreezableCollection.cs @@ -2,45 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: This file contains the implementation of FreezableCollection. // FreezableCollection is an IList implementation which implements // the requisite infrastructure for collections of DependencyObjects, // Freezables, and Animatables and which is itself an Animatable and a Freezable. -// using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs index 6c53d4ee140..726d7a0d30b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs @@ -13,11 +13,7 @@ using MS.Internal.KnownBoxes; using MS.Internal.PresentationCore; using MS.Utility; -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Security; using System.Windows.Input; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecoration.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecoration.cs index 39bd0722435..e204b00778f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecoration.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecoration.cs @@ -9,28 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Converters; -using MS.Internal.Collections; -using MS.Utility; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationCollection.cs index 3918d06a4b4..8a2a39dd034 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationCollection.cs @@ -2,35 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. // // Please see MilCodeGen.html for more information. -// -using MS.Internal.PresentationCore; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Converters; -using MS.Internal.Collections; using MS.Utility; -using SR = MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationLocation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationLocation.cs index d22be2d038b..c5bd200dfac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationLocation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationLocation.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationUnit.cs index bcaea933dad..9c33440c45d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationUnit.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs index cf4d0054250..89799d67868 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs @@ -13,11 +13,7 @@ using MS.Internal.KnownBoxes; using MS.Internal.PresentationCore; using MS.Utility; -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Security; using System.Windows.Input; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs index afac6817b98..86d78b0010d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs @@ -10,16 +10,10 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.PresentationCore; using MS.Utility; -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Security; using System.Windows.Input; -using System.Windows.Media.Animation; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GiveFeedbackEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GiveFeedbackEventArgs.cs index b8461415ecd..27a7542dfd3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GiveFeedbackEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GiveFeedbackEventArgs.cs @@ -9,9 +9,6 @@ // // -using System; -using System.Diagnostics; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GiveFeedbackEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GiveFeedbackEventHandler.cs index 6de6b3c3ad2..b2b0edb0ee5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GiveFeedbackEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GiveFeedbackEventHandler.cs @@ -9,8 +9,6 @@ // // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GlobalEventManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GlobalEventManager.cs index b81b067b173..bd6d2e2c3b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GlobalEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/GlobalEventManager.cs @@ -2,13 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Diagnostics; using MS.Utility; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { internal static class GlobalEventManager diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IContentHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IContentHost.cs index 117f590f594..fce4d119cf8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IContentHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IContentHost.cs @@ -3,9 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IDataObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IDataObject.cs index 36ce2ff1d44..2366a0e28f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IDataObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IDataObject.cs @@ -10,8 +10,6 @@ // // -using System.Security; - namespace System.Windows { #region IDataObject interface diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IInputElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IInputElement.cs index 989478bb205..f4bf9b335d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IInputElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/IInputElement.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows.Input; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/ApplicationGesture.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/ApplicationGesture.cs index 27c03e38f76..ccf1acba421 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/ApplicationGesture.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/ApplicationGesture.cs @@ -8,8 +8,6 @@ // The definition of ApplicationGesture enum type // -using System; - namespace System.Windows.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/DrawingAttributes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/DrawingAttributes.cs index 770ed1fefbe..76dc11a9902 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/DrawingAttributes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/DrawingAttributes.cs @@ -2,22 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Utility; -using System; using System.ComponentModel; -using System.Windows; using System.Windows.Media; -using System.Collections.Specialized; -using System.Collections.Generic; -using System.Collections; -using System.Diagnostics; using MS.Internal; -using MS.Internal.Ink; using MS.Internal.Ink.InkSerializedFormat; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Events.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Events.cs index 163fd435c42..0803c7e7941 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Events.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Events.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows.Input; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/GestureRecognitionResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/GestureRecognitionResult.cs index bdaf20a4745..003d10f9e98 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/GestureRecognitionResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/GestureRecognitionResult.cs @@ -7,9 +7,6 @@ // Description: // The implementation of GestureRecognitionResult class - -using System; - namespace System.Windows.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/GestureRecognizer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/GestureRecognizer.cs index 24cdbe652c7..90982cbd29c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/GestureRecognizer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/GestureRecognizer.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// The implementation of GestureRecognizer class -// - -using MS.Utility; using MS.Internal.Ink.GestureRecognition; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Runtime.InteropServices; -using System; -using System.Security; -using SecurityHelper=MS.Internal.SecurityHelper; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/IncrementalHitTester.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/IncrementalHitTester.cs index d67a95bf42b..9e01c8f03d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/IncrementalHitTester.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/IncrementalHitTester.cs @@ -2,20 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; using System.Windows; using System.Windows.Input; using System.Windows.Ink; -using System.Windows.Media; -using System.Collections.Generic; -using System.Collections.ObjectModel; using MS.Internal.Ink; -using MS.Utility; using MS.Internal; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/RecognitionConfidence.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/RecognitionConfidence.cs index ab28997948e..73651ecab2c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/RecognitionConfidence.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/RecognitionConfidence.cs @@ -8,9 +8,6 @@ // The definition of RecognitionConfidence enum type // - -using System; - namespace System.Windows.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Stroke.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Stroke.cs index 5413cbab392..cdf2e6231ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Stroke.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Stroke.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Utility; -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Media; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Runtime.Serialization; using MS.Internal.Ink.InkSerializedFormat; using MS.Internal; using MS.Internal.Ink; -using System.Reflection; using System.Windows.Input; -using SR=MS.Internal.PresentationCore.SR; - // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace System.Windows.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Stroke2.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Stroke2.cs index f914a8a6447..6e4ad779151 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Stroke2.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/Stroke2.cs @@ -4,21 +4,12 @@ //#define DEBUG_RENDERING_FEEDBACK -using MS.Utility; -using System; using System.ComponentModel; -using System.Windows; using System.Windows.Input; using System.Windows.Media; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; using MS.Internal; using MS.Internal.Ink; -using SR=MS.Internal.PresentationCore.SR; -using MS.Internal.PresentationCore; - // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace System.Windows.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection.cs index 2ebe4aad575..46686b6b6d5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection.cs @@ -2,25 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Utility; -using System; using System.ComponentModel; using System.Collections; using System.Collections.Specialized; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Windows.Media; -using System.Windows.Ink; -using System.Windows.Input; -using System.Runtime.Serialization; using System.IO; -using System.Reflection; using MS.Internal.Ink.InkSerializedFormat; -using MS.Internal.Ink; - -using SR = MS.Internal.PresentationCore.SR; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection2.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection2.cs index c830dd1c173..af321245a6f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection2.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection2.cs @@ -2,21 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Utility; -using System; using System.ComponentModel; -using System.Collections; using System.Collections.Specialized; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Media; using System.Windows.Input; using MS.Internal; using MS.Internal.Ink; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollectionConverter.cs index 45b4dff29a1..4a2f31021a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollectionConverter.cs @@ -3,23 +3,12 @@ // See the LICENSE file in the project root for more information. -using System; using System.IO; using System.Windows.Ink; -using System.Runtime.Serialization.Formatters; -using System.Runtime.InteropServices; -using System.Diagnostics; -using Microsoft.Win32; -using System.Collections; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Globalization; using System.Reflection; -using System.Threading; -using System.Security; -using MS.Utility; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StylusTip.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StylusTip.cs index 7262a869a04..186f99cafae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StylusTip.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StylusTip.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/AccessKeyManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/AccessKeyManager.cs index c367da0aca4..1c598b8485d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/AccessKeyManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/AccessKeyManager.cs @@ -2,22 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; using System.Collections; -using System.Collections.Generic; using System.Globalization; -using System.Threading; -using System.Windows.Media; using System.Windows.Interop; using MS.Internal; -using System.Diagnostics; -using System.Windows; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/AngleUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/AngleUtil.cs index ee7a70c0ff5..fd17c2c3eaf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/AngleUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/AngleUtil.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { internal static class AngleUtil { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CaptureMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CaptureMode.cs index d9b92964dbe..d5fb3ec1d07 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CaptureMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CaptureMode.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ApplicationCommands.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ApplicationCommands.cs index 16d47de0688..9d1d0d037f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ApplicationCommands.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ApplicationCommands.cs @@ -2,26 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: The ApplicationCommands class defines a standard set of commands that are required in most applications. // The goal of these commands is to unify input, programming model and UI for the most common actions in // Windows applications thus providing a standard interface for such common commands. // // See spec at : http://avalon/CoreUI/Specs%20%20Eventing%20and%20Commanding/CommandLibrarySpec.mht -// -// -// -using System; -using System.Windows; -using System.Windows.Input; -using System.Collections; -using System.ComponentModel; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using MS.Internal; // CommandHelper +using MS.Internal; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CanExecuteChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CanExecuteChangedEventManager.cs index 4d9884003cc..52c33ce85d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CanExecuteChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CanExecuteChangedEventManager.cs @@ -8,11 +8,7 @@ // pattern. See WeakEventTable.cs for an overview. // -using System; -using System.Collections; -using System.Collections.Generic; using System.Runtime.CompilerServices; // ConditionalWeakTable -using System.Windows; // WeakEventManager using MS.Internal; // NamedObject namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CanExecuteRoutedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CanExecuteRoutedEventArgs.cs index 6b92ffcfe3d..a41459bb2b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CanExecuteRoutedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CanExecuteRoutedEventArgs.cs @@ -5,10 +5,6 @@ // // -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandBinding.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandBinding.cs index d6cb56063ea..275d3836feb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandBinding.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandBinding.cs @@ -5,15 +5,7 @@ // // -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; -using System.Windows.Markup; -using MS.Internal; -using System.Security; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// CommandBinding - Command-EventHandlers map diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandBindingCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandBindingCollection.cs index 6da362d2198..50d62b0044d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandBindingCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandBindingCollection.cs @@ -2,25 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: The CommandBindingCollection class serves the purpose of Storing/Retrieving // CommandBindings. // // See spec at : http://avalon/coreUI/Specs/Commanding%20--%20design.htm -// -// -// -using System; using System.Collections; -using System.Diagnostics; -using System.Collections.Specialized; -using System.Windows; -using System.Windows.Input; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandDevice.cs index 2c34bc821a4..87eb798a510 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandDevice.cs @@ -5,13 +5,6 @@ // // -using System; -using System.Collections; -using System.Windows; -using System.Windows.Media; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper using MS.Win32; // VK translation. namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandManager.cs index 0e5c6dbb7f8..3e5bba2084c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandManager.cs @@ -5,19 +5,8 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; -using System.Diagnostics; -using System.Security; -using System.Threading; -using System.Windows; -using System.Windows.Input; using System.Windows.Threading; -using MS.Internal; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ComponentCommands.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ComponentCommands.cs index ed8dab6d742..614f92089a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ComponentCommands.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ComponentCommands.cs @@ -2,23 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: The ComponentCommands class defines a standard set of commands that are required in Controls. // // See spec at : http://avalon/CoreUI/Specs%20%20Eventing%20and%20Commanding/CommandLibrarySpec.mht -// -// -// - -using System; -using System.Windows; -using System.Windows.Input; -using System.Collections; -using System.ComponentModel; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ExecutedRoutedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ExecutedRoutedEventArgs.cs index 8f6096a2f66..b4d2bddbaf1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ExecutedRoutedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ExecutedRoutedEventArgs.cs @@ -5,10 +5,6 @@ // // -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ICommandSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ICommandSource.cs index 7aa16bb7299..75888357cfa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ICommandSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ICommandSource.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Windows.Input; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ISecureCommand.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ISecureCommand.cs index 4a2a9b3b164..b29e4dc692a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ISecureCommand.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ISecureCommand.cs @@ -12,9 +12,7 @@ // // -using System; using System.ComponentModel; -using System.Security; using MS.Internal.PresentationCore; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputBinding.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputBinding.cs index e96c4984692..131c334033f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputBinding.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputBinding.cs @@ -5,17 +5,13 @@ // // -using System; -using System.Security; // SecurityCritical, TreatAsSafe -using System.Windows; -using System.Windows.Markup; using System.ComponentModel; using MS.Internal; using MS.Internal.PresentationCore; -namespace System.Windows.Input +namespace System.Windows.Input { /// /// InputBinding - InputGesture and ICommand combination diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputBindingCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputBindingCollection.cs index 0619a2565f3..92106aae29b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputBindingCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputBindingCollection.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: InputBindingCollection serves the purpose of Storing/Retrieving InputBindings // // See spec at : http://avalon/coreui/Specs/Commanding(new).mht -// -// -// -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Collections.Specialized; -using System.Windows; -using System.Windows.Input; - using MS.Internal; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputGesture.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputGesture.cs index 9b91b5a19df..b5c5e6a1033 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputGesture.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputGesture.cs @@ -12,10 +12,7 @@ // // -using System; -using System.Windows; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// InputGesture - abstract base class for individual input device gestures. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputGestureCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputGestureCollection.cs index 22bad368b49..2ee4eff4e94 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputGestureCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/InputGestureCollection.cs @@ -2,22 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: InputGestureCollection serves the purpose of Storing/Retrieving InputGestures // // See spec at : http://avalon/coreui/Specs/Commanding(new).mht -// -// -using System; using System.Collections; -using System.Diagnostics; -using System.Collections.Generic; -using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyBinding.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyBinding.cs index 62244f9a004..e1aba20cb0a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyBinding.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyBinding.cs @@ -2,23 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: The KeyBinding class is used by the developer to create Keyboard Input Bindings // // See spec at : http://avalon/coreui/Specs/Commanding(new).mht // //* KeyBinding class serves the purpose of Input Bindings for Keyboard Device. -using System; -using System.Windows.Input; -using System.Windows; using System.ComponentModel; using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// KeyBinding - Implements InputBinding (generic InputGesture-Command map) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGesture.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGesture.cs index 70dde2f929c..f3a4bf70072 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGesture.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGesture.cs @@ -14,10 +14,7 @@ // // -using System; using System.Globalization; -using System.Windows.Input; -using System.Windows; using System.Windows.Markup; using System.ComponentModel; using MS.Internal.PresentationCore; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureConverter.cs index 69f91893d1c..a092fbb637a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureConverter.cs @@ -8,14 +8,8 @@ // Description: KeyGestureConverter - Converts a KeyGesture string // to the *Type* that the string represents // -using System; using System.ComponentModel; // for TypeConverter using System.Globalization; // for CultureInfo -using System.Reflection; -using MS.Internal; -using System.Windows; -using System.Windows.Input; -using MS.Utility; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureValueSerializer.cs index 4b31698fb29..bc9fba007d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureValueSerializer.cs @@ -10,11 +10,7 @@ // // -using System; using System.ComponentModel; // for TypeConverter -using System.Globalization; // for CultureInfo -using System.Windows; -using System.Windows.Input; using System.Windows.Markup; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MediaCommands.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MediaCommands.cs index c381b4a5cc7..4f709c4c537 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MediaCommands.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MediaCommands.cs @@ -2,23 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: The MediaCommands class defines a standard set of commands that act on Media. // // See spec at : http://avalon/CoreUI/Specs%20%20Eventing%20and%20Commanding/CommandLibrarySpec.mht -// -// -// - -using System; -using System.Windows; -using System.Windows.Input; -using System.Collections; -using System.ComponentModel; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseAction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseAction.cs index 7692b9eead2..28e9ca52600 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseAction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseAction.cs @@ -12,7 +12,6 @@ // // -using System; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionConverter.cs index a6612b9724d..62f3ad65dc8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionConverter.cs @@ -2,17 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: MouseActionConverter - Converts a MouseAction string -// to the *Type* that the string represents -// - -using System.ComponentModel; // for TypeConverter -using System.Globalization; // for CultureInfo - -using SR = MS.Internal.PresentationCore.SR; +using System.ComponentModel; +using System.Globalization; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionValueSerializer.cs index d78d43c2312..bb5df253e9a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionValueSerializer.cs @@ -7,13 +7,8 @@ // Description: MouseActionConverter - Serializes a MouseAction -using System; using System.ComponentModel; // for TypeConverter -using System.Globalization; // for CultureInfo -using System.Reflection; -using System.Windows; using System.Windows.Markup; -using System.Windows.Input; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseBinding.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseBinding.cs index 2fca5af77ca..855f2ac2f78 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseBinding.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseBinding.cs @@ -2,24 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: The MouseBinding class is used by the developer to create Mouse Input Bindings // // See spec at : http://avalon/coreui/Specs/Commanding(new).mht // //* MouseBinding class serves the purpose of Input Bindings for Mouse Device. -// -using System; -using System.Windows.Input; -using System.Windows; using System.Windows.Markup; using System.ComponentModel; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGesture.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGesture.cs index b92f92b9b7d..9320b104a99 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGesture.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGesture.cs @@ -13,9 +13,6 @@ // // -using System; -using System.Windows.Input; -using System.Windows; using System.Windows.Markup; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureConverter.cs index f3cada1b257..a864915b898 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureConverter.cs @@ -10,14 +10,8 @@ // // -using System; using System.ComponentModel; // for TypeConverter using System.Globalization; // for CultureInfo -using System.Reflection; -using MS.Internal; -using System.Windows; -using System.Windows.Input; -using MS.Utility; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureValueSerializer.cs index 5146921c26b..22021c0bdd7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureValueSerializer.cs @@ -7,12 +7,7 @@ // Description: MouseGestureValueSerializer - Serializes a MouseGesture // -using System; using System.ComponentModel; // for TypeConverter -using System.Globalization; // for CultureInfo -using System.Reflection; -using System.Windows; -using System.Windows.Input; using System.Windows.Markup; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/NavigationCommands.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/NavigationCommands.cs index fbc597e986b..cc721c4a68f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/NavigationCommands.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/NavigationCommands.cs @@ -2,25 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: The NavigationCommands class defines a standard set of commands that act on Content Navigation // // See spec at : http://avalon/CoreUI/Specs%20%20Eventing%20and%20Commanding/CommandLibrarySpec.mht -// -// -// -using System; -using System.Windows; -using System.Windows.Input; -using System.Collections; -using System.ComponentModel; -using System.Security; using MS.Internal; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedCommand.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedCommand.cs index 4be6c5092f7..e341cf3199e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedCommand.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedCommand.cs @@ -2,21 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Security; using System.ComponentModel; -using System.Collections; -using System.Windows; -using System.Windows.Input; using System.Windows.Markup; - using MS.Internal.PresentationCore; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedUICommand.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedUICommand.cs index 47330bb51d5..37de27289ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedUICommand.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedUICommand.cs @@ -5,15 +5,11 @@ // // -using System; using System.ComponentModel; // for TypeConverter -using System.Windows; -using System.Windows.Markup; -using System.Windows.Media; using MS.Internal.PresentationCore; -namespace System.Windows.Input +namespace System.Windows.Input { /// /// RoutedCommand with added UI Information. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/SecureUICommand.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/SecureUICommand.cs index 153bc7dbe8d..8b3f210b055 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/SecureUICommand.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/SecureUICommand.cs @@ -10,15 +10,10 @@ // InputBindings and CommandBindings // -using System; -using System.Security; -using System.Windows; using System.ComponentModel; -using System.Collections; -using System.Windows.Input; using MS.Internal.PresentationCore; -namespace System.Windows.Input +namespace System.Windows.Input { /// /// Command diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Cursor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Cursor.cs index 764fd6756ec..916f81a90a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Cursor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Cursor.cs @@ -2,17 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Text; -using System.Globalization; using MS.Win32; using System.Runtime.InteropServices; -using System.Resources; using System.IO; -using System.Security; -using SecurityHelper=MS.Internal.SecurityHelper; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CursorConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CursorConverter.cs index 7d2277d57d3..4a0a474ef01 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CursorConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CursorConverter.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. using System.ComponentModel; -using System.ComponentModel.Design.Serialization; using System.Globalization; using System.Reflection; using System.Windows.Media; // TypeConverterHelper, UriHolder -using System; -using System.IO; // Stream -using MS.Internal.IO.Packaging; // ResourceUriHelper using MS.Internal.PresentationCore; using MS.Internal; // BindUriHelper diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CursorType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CursorType.cs index a03ea6d1d83..7655eabb78b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CursorType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/CursorType.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// An enumeration of the supported cursor types. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Cursors.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Cursors.cs index 4d63a9b2101..6c9fda862cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Cursors.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Cursors.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; -using System.Text; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// Cursors class to support stock cursors diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DeadCharTextComposition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DeadCharTextComposition.cs index 8847e1c102c..8037a885427 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DeadCharTextComposition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DeadCharTextComposition.cs @@ -8,15 +8,6 @@ // // -using System; -using System.Diagnostics; -using System.Text; -using System.Windows.Threading; -using System.Windows; -using System.Security; -using MS.Win32; -using Microsoft.Win32; // for RegistryKey class - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DefaultTextStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DefaultTextStore.cs index a1b8cf7897d..f7da6b8751a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DefaultTextStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DefaultTextStore.cs @@ -8,15 +8,8 @@ // // -using System; using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Threading; -using System.Threading; -using System.Diagnostics; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper using MS.Win32; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DefaultTextStoreTextComposition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DefaultTextStoreTextComposition.cs index ec8fa350a29..555d738e5b8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DefaultTextStoreTextComposition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/DefaultTextStoreTextComposition.cs @@ -13,12 +13,7 @@ // // -using System; using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Threading; -using System.Windows; -using System.Security; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusChangedEventArgs.cs index 3cf72b89397..1c32acd9dfb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusChangedEventArgs.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The KeyboardFocusChangedEventArgs class contains information about key states. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusChangedEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusChangedEventHandler.cs index 26a152ec55a..fc42dd2386c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusChangedEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusChangedEventHandler.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The delegate to use for handlers that receive KeyboardFocusChangedEventArgs. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusManager.cs index 2cb9e5d311a..52f4c062632 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/FocusManager.cs @@ -5,19 +5,9 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; -using System.Threading; -using System.Windows; -using System.Windows.Interop; using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Security; using MS.Internal.KnownBoxes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IAvalonAdapter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IAvalonAdapter.cs index 835475a3041..b806af424a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IAvalonAdapter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IAvalonAdapter.cs @@ -9,9 +9,6 @@ // with information to determine how to process a Keytab coming from ElementHost. // -using MS.Internal.PresentationCore; -using System.Runtime.CompilerServices; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IInputLanguageSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IInputLanguageSource.cs index 937b9af781c..747552068e9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IInputLanguageSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IInputLanguageSource.cs @@ -12,9 +12,7 @@ using System.Collections; using System.Globalization; -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// An interface for controlling the input language source. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IInputProvider.cs index 514c49ad261..e3123eae0e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IInputProvider.cs @@ -4,9 +4,7 @@ using System.Windows.Media; -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// An interface implemented by all input providers. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IKeyboardInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IKeyboardInputProvider.cs index 7142f102974..c9d65f6a3ea 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IKeyboardInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IKeyboardInputProvider.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Windows.Media; - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// An interface for controlling the keyboard input provider. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IManipulator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IManipulator.cs index ff7ce3bacae..020a7300582 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IManipulator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IManipulator.cs @@ -5,10 +5,6 @@ // // -using System; -using System.Security; -using System.Windows; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IMouseInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IMouseInputProvider.cs index b5c95ebff81..a791c67a3ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IMouseInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/IMouseInputProvider.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Windows.Media; - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// An interface for controlling the mouse input provider. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaExpansionBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaExpansionBehavior.cs index 5d2e8471243..6af653f95d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaExpansionBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaExpansionBehavior.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Diagnostics; -using System.Windows; using System.Windows.Input.Manipulations; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaRotationBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaRotationBehavior.cs index 63a2bea76c7..04c88afe038 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaRotationBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaRotationBehavior.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Diagnostics; -using System.Windows; using System.Windows.Input.Manipulations; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaTranslationBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaTranslationBehavior.cs index b53ed3356a8..563a1136cf2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaTranslationBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InertiaTranslationBehavior.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Diagnostics; -using System.Windows; using System.Windows.Input.Manipulations; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputDevice.cs index 04ba85e0924..ebef1ec6260 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputDevice.cs @@ -5,8 +5,6 @@ using System.Windows.Threading; -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputElement.cs index 80b780a9016..4ad802d04a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputElement.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. using System.Windows.Media; -using MS.Win32; using MS.Internal; -using System.Security; -using System.Runtime.InteropServices; using System.Windows.Interop; using System.Windows.Media.Media3D; -using System; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputEventArgs.cs index 66c8d3144c5..add6500d479 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Collections; - -using System; -using System.Security; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputEventHandler.cs index 3e425f914b9..20e6346c7c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputEventHandler.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageEventArgs.cs index 07f1ea6995b..887e8d8cb9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageEventArgs.cs @@ -2,13 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Windows.Threading; -using System.Windows; using System.Globalization; -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The InputLanguageEventArgs class represents a type of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageManager.cs index 7210fd80d07..47f42bba8e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageManager.cs @@ -2,26 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: InputLanguageManager class and InputLanguage APIs. -// -// - using System.Collections; using System.Windows.Threading; -using System.Windows; using System.Globalization; using MS.Win32; -using System; -using System.Security; -using System.Runtime.InteropServices; using System.ComponentModel; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The InputLanguageManager class is responsible for mmanaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageProfileNotifySink.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageProfileNotifySink.cs index 36967bfa85b..6e244a3a55b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageProfileNotifySink.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageProfileNotifySink.cs @@ -10,14 +10,6 @@ // using MS.Win32; -using System.Collections; -using System.Globalization; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Interop; -using System.Runtime.InteropServices; - -using System; namespace System.Windows.Input { @@ -26,7 +18,7 @@ namespace System.Windows.Input // InputLanguageProfileNotifySink // //------------------------------------------------------ - + /// /// This is an internal. This is an implementation of ITfLanguageProfileNotifySink. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageSource.cs index fb1fb6a4e0a..6fe02a4deab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputLanguageSource.cs @@ -9,17 +9,10 @@ // // -using System.Security; using System.Collections; using System.Globalization; -using System.Windows.Threading; -using System.Windows.Input; -using System.Windows.Media; -using System.Runtime.InteropServices; -using System.Diagnostics; using MS.Win32; -using MS.Utility; namespace System.Windows.Input { @@ -28,7 +21,7 @@ namespace System.Windows.Input // InputLanguageSource class // //------------------------------------------------------ - + /// /// This is an internal. The source for input languages. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs index 414bc6dd2e2..7404141b4b8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs @@ -3,19 +3,11 @@ // See the LICENSE file in the project root for more information. using System.Collections; -using System.Collections.Generic; using System.Windows.Threading; using System.Threading; -using System.Windows; -using System.Security; -using MS.Win32; using MS.Internal; -using System; -using System.Diagnostics; using System.Windows.Automation; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs index f0707b0c3a8..5fecd80ac86 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs @@ -2,31 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Manage Input Methods (EA-IME, TextServicesFramework). -// -// using System.Runtime.InteropServices; -using System.Collections; -using System.Diagnostics; using System.Globalization; using System.Threading; using System.Windows.Threading; using System.Windows.Interop; -using System.Windows.Media; -using System.Security; -using MS.Utility; using MS.Win32; using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper -using System; - -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Input +namespace System.Windows.Input { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethodStateChangeEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethodStateChangeEventArgs.cs index 9bcea6a6a70..5318fdaa502 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethodStateChangeEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethodStateChangeEventArgs.cs @@ -8,25 +8,14 @@ // // -using System; -using System.Runtime.InteropServices; -using System.Collections; -using System.Diagnostics; -using System.Globalization; -using System.Windows.Threading; -using System.Windows; -using MS.Internal; //TextServicesInterop -using MS.Utility; -using MS.Win32; - -namespace System.Windows.Input +namespace System.Windows.Input { //------------------------------------------------------ // // InputMethodStateChjangedEventArgs class // //------------------------------------------------------ - + /// /// This InputMethodStateChangedEventArgs class is /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethodStateTypeInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethodStateTypeInfo.cs index 127d29c4ada..fa78fde3fed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethodStateTypeInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethodStateTypeInfo.cs @@ -8,19 +8,9 @@ // // -using System.Runtime.InteropServices; -using System.Collections; -using System.Diagnostics; -using System.Globalization; -using System.Windows.Threading; -using System.Windows; -using MS.Internal; //TextServicesInterop -using MS.Utility; using MS.Win32; -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMode.cs index e13a3bca1ff..cdd3bd1d148 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMode.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The mode of input processing when the input was provided. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProcessorProfiles.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProcessorProfiles.cs index 7c3dafa71cb..5ae493a775a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProcessorProfiles.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProcessorProfiles.cs @@ -9,13 +9,9 @@ // // -using System; using System.Runtime.InteropServices; using System.Threading; -using System.Security; using MS.Win32; -using MS.Internal; -using System.Diagnostics; using System.Globalization; using System.Collections; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProcessorProfilesLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProcessorProfilesLoader.cs index bab99c80ed0..d161dffe3b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProcessorProfilesLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProcessorProfilesLoader.cs @@ -13,13 +13,7 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; -using System.Runtime.InteropServices; -using System.Security; using System.Threading; - -using Microsoft.Win32; -using System.Diagnostics; using MS.Win32; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs index 1dbd1c83cc1..b9ba414bef3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs @@ -2,15 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Win32; -using System.Windows.Threading; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReport.cs index bddb8f6fb4d..fb51ab0c524 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReport.cs @@ -2,14 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Security; -using MS.Internal; -using MS.Win32; -using System.Windows; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The InputReport is an abstract base class for all input that is diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReportEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReportEventArgs.cs index de42b89da70..90515f0fac7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReportEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReportEventArgs.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The InputReportEventArgs class contains information about an input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReportEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReportEventHandler.cs index ee493b71647..589b26e7d90 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReportEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputReportEventHandler.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The delegate to use for handlers that receive PointerMoveEventArgs. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScope.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScope.cs index 40b337bc16b..4efe8dd7e7f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScope.cs @@ -2,24 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: class for input scope definition // // Please refer to the design specfication http://avalon/Cicero/Specifications/Stylable%20InputScope.mht -// -// -using System; -using System.Collections.Generic; -using System.Windows.Input; using System.Windows.Markup; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; using MS.Internal.PresentationCore; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeConverter.cs index 055403f5855..93c2842ba6d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeConverter.cs @@ -10,12 +10,8 @@ // // -using System; -using System.Collections.Generic; -using System.Windows.Input; using System.ComponentModel; using System.Globalization; -using System.ComponentModel.Design.Serialization; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameConverter.cs index 308b72cf7de..c2f98228f53 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameConverter.cs @@ -10,12 +10,8 @@ // // -using System; -using System.Collections.Generic; -using System.Windows.Input; using System.ComponentModel; using System.Globalization; -using System.ComponentModel.Design.Serialization; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameValue.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameValue.cs index b1b15c1bdce..69154d36d7c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameValue.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameValue.cs @@ -8,8 +8,6 @@ // // -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputType.cs index ac44ebfdf67..00a2a2ec286 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputType.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The type of input being reported. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventArgs.cs index e154a20cee9..665383e5d7e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventArgs.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The KeyEventArgs class contains information about key states. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventHandler.cs index 2f2de07cdee..397ffda3e21 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventHandler.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The delegate to use for handlers that receive KeyEventArgs. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyStates.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyStates.cs index cc7e89c458b..2c34999a110 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyStates.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyStates.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The KeyStates enumeration describes the state that keyboard keys diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Keyboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Keyboard.cs index 771799a594f..9411d97aa72 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Keyboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Keyboard.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - -using System; -using System.Windows; -using MS.Win32; -using System.Security; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardDevice.cs index ecf3fe126ca..b59ac383148 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardDevice.cs @@ -2,19 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Security; -using System.Windows; -using System.Windows.Media; using System.Windows.Threading; using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Win32; // VK translation. using System.Windows.Automation.Peers; -using SR=MS.Internal.PresentationCore.SR; - #pragma warning disable 1634, 1691 // suppressing PreSharp warnings namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardEventArgs.cs index 1ae205675ba..fc04679eeae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardEventArgs.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The KeyboardEventArgs class provides access to the logical diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardEventHandler.cs index 9ebaa7b7cc1..01c8b517629 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardEventHandler.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The delegate to use for handlers that receive KeyboardEventArgs. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardInputProviderAcquireFocusEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardInputProviderAcquireFocusEventArgs.cs index aebd0ac26e6..f5bd656d193 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardInputProviderAcquireFocusEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardInputProviderAcquireFocusEventArgs.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The KeyboardInputProviderAcquireFocusEventArgs class is used to diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardInputProviderAcquireFocusEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardInputProviderAcquireFocusEventHandler.cs index ceff375123d..c629668cb7a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardInputProviderAcquireFocusEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardInputProviderAcquireFocusEventHandler.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The delegate to use for handlers that receive KeyboardInputProviderAcquireFocusEventArgs. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Manipulation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Manipulation.cs index ba757e8e59f..0653663e1e5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Manipulation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Manipulation.cs @@ -5,10 +5,7 @@ // // -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Media; using System.Windows.Input.Manipulations; using MS.Internal.PresentationCore; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationBoundaryFeedbackEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationBoundaryFeedbackEventArgs.cs index 99b4e7d943b..61faef9f232 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationBoundaryFeedbackEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationBoundaryFeedbackEventArgs.cs @@ -5,13 +5,6 @@ // // -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Media; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationCompletedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationCompletedEventArgs.cs index b78101e4b44..dab7fff4c43 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationCompletedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationCompletedEventArgs.cs @@ -5,13 +5,6 @@ // // -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Media; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDelta.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDelta.cs index 1fb6308ba8f..06ff56cb3c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDelta.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDelta.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Windows; - namespace System.Windows.Input { public class ManipulationDelta diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDeltaEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDeltaEventArgs.cs index 4089d9725c5..f92e04537ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDeltaEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDeltaEventArgs.cs @@ -5,13 +5,6 @@ // // -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Media; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDevice.cs index d83fdd9aa71..c540572fbc9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationDevice.cs @@ -5,18 +5,9 @@ // // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Windows; -using System.Windows.Input; using System.Windows.Input.Manipulations; using System.Windows.Media; -using System.Windows.Threading; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationInertiaStartingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationInertiaStartingEventArgs.cs index 2f4389ccc43..ed82b043b21 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationInertiaStartingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationInertiaStartingEventArgs.cs @@ -5,15 +5,8 @@ // // -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Input.Manipulations; -using System.Windows.Media; - -using MS.Internal; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationLogic.cs index 95ff7995d57..a40f8ee8e15 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationLogic.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationLogic.cs @@ -5,18 +5,11 @@ // // -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Interop; using System.Windows.Input.Manipulations; using System.Windows.Media; using System.Windows.Threading; using MS.Win32; using MS.Internal; -using MS.Internal.PresentationCore; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationModes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationModes.cs index 39cb650744b..28b1e073801 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationModes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationModes.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Windows; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationPivot.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationPivot.cs index 8124bdee6e4..e249858dd6a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationPivot.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationPivot.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Windows; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationStartedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationStartedEventArgs.cs index 55746b11792..2a15974566b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationStartedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationStartedEventArgs.cs @@ -5,13 +5,6 @@ // // -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Media; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationStartingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationStartingEventArgs.cs index 15c55b6577f..c36dcf4e0ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationStartingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationStartingEventArgs.cs @@ -5,14 +5,8 @@ // // -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Security; -using System.Windows; using System.Windows.Input.Manipulations; -using System.Windows.Media; using MS.Internal.PresentationCore; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationVelocities.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationVelocities.cs index e1a105a0151..d817e8e3129 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationVelocities.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationVelocities.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Windows; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Mouse.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Mouse.cs index 749043517f9..a482b25f800 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Mouse.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Mouse.cs @@ -2,14 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - -using System; -using System.Windows; -using System.Security; -using MS.Win32; -using MS.Internal; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButton.cs index 005c5cf9d12..7b992600fc5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButton.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonEventArgs.cs index 845addad03e..8e96ed32fc2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonEventHandler.cs index 97d83eaa51a..987a96167c2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonEventHandler.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonState.cs index 4845ee138ed..56d26948f60 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseButtonState.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseDevice.cs index 1cb4cbfc9e9..f1945486638 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseDevice.cs @@ -2,21 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Diagnostics; using System.Collections; -using System.Windows; -using System.Windows.Media; -using System.Windows.Input; using System.Windows.Input.StylusPointer; using System.Windows.Interop; using System.Windows.Threading; -using System.Security; using MS.Internal; -using MS.Win32; // *NativeMethods +using MS.Win32; using System.Runtime.InteropServices; -using System; - -using SR = MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings @@ -26,7 +18,6 @@ // scrolling and still use the wheel. To get this effect, uncomment this line. //#define SEND_WHEEL_EVENTS_TO_FOCUS - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseEventArgs.cs index 43cc1ecfa93..8811cc8d9a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Collections; - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseEventHandler.cs index 5d4d8b7c19f..224a6606648 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseEventHandler.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseWheelEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseWheelEventArgs.cs index c8545d70bde..6dfc7dc1567 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseWheelEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseWheelEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseWheelEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseWheelEventHandler.cs index b522f8425a9..58021dc4557 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseWheelEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseWheelEventHandler.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/NotifyInputEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/NotifyInputEventArgs.cs index 9e37d2f09fe..1c09975cf4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/NotifyInputEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/NotifyInputEventArgs.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Security ; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// Provides information about an input event being processed by the diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/PreProcessInputEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/PreProcessInputEventArgs.cs index 5a8b4300998..781abbe3982 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/PreProcessInputEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/PreProcessInputEventArgs.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Security; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// Allows the handler to cancel the processing of an input event. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ProcessInputEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ProcessInputEventArgs.cs index ce4c7bd6e98..e85b1c1485b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ProcessInputEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ProcessInputEventArgs.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// Provides access to the input manager's staging area. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/QueryCursorEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/QueryCursorEventArgs.cs index cf6113f5f2f..80118953638 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/QueryCursorEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/QueryCursorEventArgs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/QueryCursorEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/QueryCursorEventHandler.cs index f6a085a506f..58ba74e76d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/QueryCursorEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/QueryCursorEventHandler.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawAppCommandInputReport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawAppCommandInputReport.cs index d9456496e2a..1c5eeadfe5f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawAppCommandInputReport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawAppCommandInputReport.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using MS.Internal; -using MS.Win32; -using System.Windows; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawKeyboardActions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawKeyboardActions.cs index 5137c51d690..82c9b9c1222 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawKeyboardActions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawKeyboardActions.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The raw actions being reported from the keyboard. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawKeyboardInputReport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawKeyboardInputReport.cs index 951248f36c3..0c0abc155f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawKeyboardInputReport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawKeyboardInputReport.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using MS.Internal; -using MS.Win32; -using System.Windows; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The RawKeyboardInputReport class encapsulates the raw input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawMouseActions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawMouseActions.cs index af3a6078aa6..84c6994be69 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawMouseActions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawMouseActions.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The raw actions being reported from the mouse. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawMouseInputReport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawMouseInputReport.cs index 91dbb84b35b..d31b83e94be 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawMouseInputReport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawMouseInputReport.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Windows.Media; -using System.Security; -using MS.Internal; -using MS.Win32; -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The RawMouseInputReport class encapsulates the raw input provided diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawTextInputReport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawTextInputReport.cs index 7a72c91d19b..2f7c085b043 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawTextInputReport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawTextInputReport.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The RawTextInputReport class encapsulates the raw text input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateActions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateActions.cs index 82eb49d47c6..5e9930e56ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateActions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateActions.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateInputReport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateInputReport.cs index 82510f78416..3673f48656f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateInputReport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateInputReport.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using MS.Internal; -using MS.Win32; -using System.Windows; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateTargets.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateTargets.cs index ddd67caef33..1297eb933b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateTargets.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RawUIStateTargets.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RestoreFocusMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RestoreFocusMode.cs index 3ec63878934..5b4933afeca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RestoreFocusMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/RestoreFocusMode.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/StagingAreaInputItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/StagingAreaInputItem.cs index 294367d7acb..709066ff3ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/StagingAreaInputItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/StagingAreaInputItem.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Security; -namespace System.Windows.Input +namespace System.Windows.Input { /// /// This class encapsulates an input event while it is being diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRenderer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRenderer.cs index 4447d971aae..adc7db49a73 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRenderer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRenderer.cs @@ -3,29 +3,15 @@ // See the LICENSE file in the project root for more information. //#define DEBUG_RENDERING_FEEDBACK -// -// + // Description: // DynamicRenderer PlugIn - Provides off (and on) app Dispatcher Inking support. -// -// - -using System; -using System.Diagnostics; -using System.Collections.Specialized; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Input; + using System.Windows.Media; -using System.Threading; using System.Windows.Threading; -using MS.Utility; using System.Windows.Ink; using MS.Internal.Ink; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input.StylusPlugIns { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRendererThreadManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRendererThreadManager.cs index 888e588e0ca..02fc79e0f9b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRendererThreadManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRendererThreadManager.cs @@ -10,18 +10,8 @@ // // -using System; -using System.Diagnostics; -using System.Collections.Specialized; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; using System.Threading; using System.Windows.Threading; -using MS.Utility; -using System.Security; -using MS.Internal; namespace System.Windows.Input.StylusPlugIns { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/MultiTouchSystemGestureLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/MultiTouchSystemGestureLogic.cs index 65c62c576c6..42924c7acf9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/MultiTouchSystemGestureLogic.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/MultiTouchSystemGestureLogic.cs @@ -5,9 +5,6 @@ // // -using System; -using System.Diagnostics; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusActions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusActions.cs index 44015aefaf5..3ce7b553091 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusActions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusActions.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInput.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInput.cs index 172559b64db..cae11c047e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInput.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInput.cs @@ -2,14 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.Windows.Media; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPlugIns { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputCustomData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputCustomData.cs index 6f1b10a57a9..6d4e1df7764 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputCustomData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputCustomData.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input.StylusPlugIns { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputCustomDataList.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputCustomDataList.cs index 7b40ee5cf77..865cdc20b7d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputCustomDataList.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputCustomDataList.cs @@ -3,14 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Windows.Threading; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPlugIns { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputReport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputReport.cs index d515d8f5508..9beab1424bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputReport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusInputReport.cs @@ -2,18 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Windows; -using System.Windows.Threading; -using System.Windows.Media; using System.Windows.Input.StylusPlugIns; -using System.Security; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Internal; - -using SR = MS.Internal.PresentationCore.SR; -using System.Windows.Input.StylusWisp; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusSystemGestureInputReport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusSystemGestureInputReport.cs index f044d9b324c..0d59090fe33 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusSystemGestureInputReport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/RawStylusSystemGestureInputReport.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Security; -using System.Windows.Input.StylusWisp; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Stylus.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Stylus.cs index 03346c301b0..df7c3f15f22 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Stylus.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Stylus.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; -using System.Security; -using System.Windows.Input.StylusWisp; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButton.cs index 61a408e535f..74b40cfcb21 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButton.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Globalization; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonCollection.cs index 2cec3d4de10..c99e44a1546 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonCollection.cs @@ -3,16 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Windows.Media; - -using MS.Utility; -using MS.Internal; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonEventArgs.cs index ef7b7b82bc1..066930459d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.ComponentModel; -using System.Windows.Media; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonState.cs index 1163befc538..c0f7c56d8c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusButtonState.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDevice.cs index f2acbc8e905..d22d73ada58 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDevice.cs @@ -2,22 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Win32; -using System; -using System.Collections; -using System.Collections.Specialized; -using System.Diagnostics; using System.Globalization; -using System.Security; -using System.Windows; -using System.Windows.Input.StylusPlugIns; -using System.Windows.Input.StylusWisp; -using System.Windows.Interop; using System.Windows.Media; -using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceBase.cs index c88a7fb307a..4653b0480de 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceBase.cs @@ -3,22 +3,8 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; -using MS.Internal.PresentationCore; -using MS.Win32; -using System; -using System.Collections; -using System.Collections.Specialized; -using System.Diagnostics; -using System.Globalization; -using System.Security; -using System.Windows; using System.Windows.Input.StylusPlugIns; -using System.Windows.Input.StylusWisp; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceCollection.cs index 6cf8c6ccdbb..008a2b9140c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceCollection.cs @@ -3,15 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Security; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Windows.Media; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceInfo.cs index e1174e4417a..8553ed61acd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceInfo.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using MS.Internal; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDownEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDownEventArgs.cs index a12db19c8f1..7923a238005 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDownEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDownEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.ComponentModel; -using System.Windows.Media; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusEventArgs.cs index 560c2aa6d01..19ebbccf030 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Windows.Media; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusLogic.cs index 1e5c4c7fb6f..3d6abd836dc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusLogic.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusLogic.cs @@ -6,24 +6,14 @@ using Microsoft.Win32; // for RegistryKey class using MS.Internal; using MS.Internal.Interop; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Utility; using MS.Win32; // for *NativeMethods -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Input.StylusPlugIns; using System.Windows.Input.StylusPointer; using System.Windows.Input.StylusWisp; using System.Windows.Input.Tracing; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugInCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugInCollection.cs index b41ce07d571..3dd02f1d8a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugInCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugInCollection.cs @@ -2,17 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Collections; using System.Collections.ObjectModel; using System.Windows.Media; -using System.Windows.Threading; -using System.Windows.Interop; -using System.Security; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPlugIns { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugInCollectionBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugInCollectionBase.cs index 6a79cb442f1..dfbfccfa69b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugInCollectionBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugInCollectionBase.cs @@ -3,18 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Collections; -using System.Collections.ObjectModel; -using System.Windows.Media; -using System.Windows.Threading; -using System.Windows.Interop; using System.Windows.Input.StylusWisp; using System.Windows.Input.StylusPointer; -using System.Security; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPlugIns { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugin.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugin.cs index 9ee29be7bd2..3ad0147e154 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugin.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPlugin.cs @@ -4,18 +4,6 @@ // #define TRACE -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Specialized; -using System.Windows.Threading; - -using System.Windows; -using System.Windows.Input; - -using System.Windows.Media; -using MS.Win32; // for *NativeMethods - namespace System.Windows.Input.StylusPlugIns { ///////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPoint.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPoint.cs index bf29e708101..1d6315a248b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPoint.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPoint.cs @@ -2,17 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Diagnostics; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections.Generic; using System.Collections.ObjectModel; -using MS.Utility; -using MS.Internal; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointCollection.cs index 6aeb97d13c5..0af13035643 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointCollection.cs @@ -2,18 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; using System.ComponentModel; -using System.Windows.Ink; using MS.Internal.Ink.InkSerializedFormat; using System.Windows.Media; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using MS.Utility; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointDescription.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointDescription.cs index 3b7c7e493eb..aa5a5df7c22 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointDescription.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointDescription.cs @@ -2,15 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using SR = MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointProperties.cs index 42acf22348a..3f05027bbd6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointProperties.cs @@ -2,14 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections.Generic; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointProperty.cs index 36c9be83ade..f86e709868f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointProperty.cs @@ -2,14 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; using System.Globalization; -using System.Windows.Media; -using System.Collections.Generic; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyId.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyId.cs index feafe757623..74f2823dea4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyId.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyId.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections.Generic; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyInfo.cs index d567a7bce21..86b174fe5f1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyInfo.cs @@ -2,16 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections.Generic; -using System.Diagnostics; using System.ComponentModel; -using MS.Utility; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyInfoDefaults.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyInfoDefaults.cs index 8100dbe4418..b4637068bfb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyInfoDefaults.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyInfoDefaults.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections.Generic; - namespace System.Windows.Input { internal static class StylusPointPropertyInfoDefaults diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyUnit.cs index 703499b036c..c18991acfc1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointPropertyUnit.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections.Generic; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusSystemGesture.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusSystemGesture.cs index 206d0ab0516..58ee438198c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusSystemGesture.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusSystemGesture.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusSystemGestureEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusSystemGestureEventArgs.cs index 9aa9dd89d0e..b5aa507fce5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusSystemGestureEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusSystemGestureEventArgs.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.ComponentModel; -using System.Windows.Media; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusTouchDeviceBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusTouchDeviceBase.cs index 881deafe913..59851be31cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusTouchDeviceBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusTouchDeviceBase.cs @@ -5,8 +5,6 @@ // // -using MS.Internal; -using System.Security; using System.Windows.Media; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusTraceLogger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusTraceLogger.cs index 18705220697..6fa6187bcce 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusTraceLogger.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusTraceLogger.cs @@ -5,15 +5,8 @@ // // -using System; -using System.Diagnostics.Contracts; using System.Diagnostics.Tracing; using System.Runtime.CompilerServices; -using System.Text; -using System.Windows; -using System.Windows.Input; -using MS.Internal; -using MS.Internal.Telemetry; using MS.Internal.Telemetry.PresentationCore; namespace System.Windows.Input.Tracing diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Tablet.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Tablet.cs index 00fc3e9df20..fad63e0b34a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Tablet.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/Tablet.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Threading; -using System.Security; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDevice.cs index 7b59e49ef9c..98431d7958a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDevice.cs @@ -2,16 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Internal; -using MS.Win32; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Globalization; -using System.Security; -using System.Windows.Input.StylusWisp; -using System.Windows.Input.Tracing; -using System.Windows.Media; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceBase.cs index 4e110653464..b290f8792cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceBase.cs @@ -2,15 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Internal; -using MS.Win32; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Globalization; -using System.Security; -using System.Windows.Input.StylusWisp; -using System.Windows.Input.Tracing; using System.Windows.Media; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceCollection.cs index da56cb55698..62d581b0a5a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceCollection.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - using System.Collections; -using System.Collections.Generic; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceInfo.cs index 7f61d71318b..2c911f4ecc7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceInfo.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.ObjectModel; -using System.Security; -using MS.Internal; using MS.Win32.Penimc; -using System.Windows.Media; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceType.cs index fad9c641a2f..2a46cae133f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletDeviceType.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletHardwareCapabilities.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletHardwareCapabilities.cs index d28e53e5d7b..76bd8be82b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletHardwareCapabilities.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/TabletHardwareCapabilities.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerData.cs index f840575dff0..40e3969895c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerData.cs @@ -3,10 +3,6 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; -using System.Security; -using System.Windows.Input; -using System.Windows.Interop; using static MS.Win32.Pointer.UnsafeNativeMethods; namespace System.Windows.Input.StylusPointer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerFlickEngine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerFlickEngine.cs index 79234574dfc..a14b8404a61 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerFlickEngine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerFlickEngine.cs @@ -2,26 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Win32.Pointer; -using MS.Internal; -using MS.Internal.Interop; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Utility; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Input; -using System.Windows.Input.StylusPlugIns; -using System.Windows.Interop; -using System.Windows.Media; -using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Input.StylusPointer { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerInteractionEngine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerInteractionEngine.cs index d270bda3264..87804698ca5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerInteractionEngine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerInteractionEngine.cs @@ -4,23 +4,7 @@ using MS.Win32.Pointer; -using MS.Internal; -using MS.Internal.Interop; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Utility; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Input; -using System.Windows.Input.StylusPlugIns; -using System.Windows.Interop; using System.Windows.Media; -using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPointer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerLogic.cs index d164fbb813a..bfeaff90fa1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerLogic.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerLogic.cs @@ -2,27 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using Microsoft.Win32; // for RegistryKey class using MS.Internal; using MS.Internal.Interop; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Utility; -using MS.Win32; // for *NativeMethods -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Input; -using System.Windows.Input.StylusPlugIns; using System.Windows.Input.Tracing; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPointer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs index 908241f2a6b..05ce0910000 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs @@ -2,19 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - using MS.Internal; -using MS.Internal.Interop; -using MS.Internal.PresentationCore; using MS.Win32.Pointer; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows.Input; using System.Windows.Input.StylusPlugIns; using System.Windows.Interop; using System.Windows.Media; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPointer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPlugInCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPlugInCollection.cs index b56ca08daca..67dc1ea80d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPlugInCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPlugInCollection.cs @@ -3,17 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.ObjectModel; -using System.Security; -using System.Windows; -using System.Windows.Input; using System.Windows.Input.StylusPlugIns; -using System.Windows.Interop; using System.Windows.Media; -using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPointer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPlugInManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPlugInManager.cs index 9703b2258ef..639689727ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPlugInManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusPlugInManager.cs @@ -3,22 +3,10 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Utility; -using MS.Win32; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Input; using System.Windows.Input.StylusPlugIns; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPointer { 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 897a8ba602e..61e0198e0ff 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 @@ -3,16 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections.Generic; -using System.Diagnostics; -using System.ComponentModel; -using MS.Utility; using MS.Win32.Pointer; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusPointer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDevice.cs index 1a72a293563..5148d169622 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDevice.cs @@ -4,13 +4,9 @@ using MS.Win32.Pointer; -using System.Collections.Generic; -using System.ComponentModel; -using System.Security; -using System.Windows.Input; namespace System.Windows.Input.StylusPointer -{ +{ /// /// A WM_POINTER based implementation of the TabletDeviceBase class. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDeviceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDeviceCollection.cs index c85ea3e2012..61eb0cd1dd8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDeviceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDeviceCollection.cs @@ -4,12 +4,7 @@ using MS.Win32.Pointer; -using System.Collections.Generic; using System.ComponentModel; -using System.Windows.Input; -using System.Security; -using System.Windows.Threading; -using System.Threading; using System.Windows.Input.Tracing; namespace System.Windows.Input.StylusPointer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDeviceInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDeviceInfo.cs index 7723187b478..6e91747cd41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDeviceInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTabletDeviceInfo.cs @@ -4,11 +4,7 @@ using MS.Win32.Pointer; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Security; -using System.Windows.Input; namespace System.Windows.Input.StylusPointer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTouchDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTouchDevice.cs index 2b996551d04..48e5941d08d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTouchDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerTouchDevice.cs @@ -4,10 +4,6 @@ using MS.Internal; -using MS.Internal.PresentationCore; -using System.Security; -using System.Windows.Input; -using System.Windows.Interop; using System.Windows.Media; namespace System.Windows.Input.StylusPointer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContext.cs index 648410051ef..847fc8dcbc8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContext.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; -using System.Collections.Specialized; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Collections; -using System.Collections.Generic; -using System.Security; -using MS.Internal; using MS.Win32.Penimc; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContextInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContextInfo.cs index e64e3b73141..51f609c6af9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContextInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContextInfo.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using MS.Internal; using MS.Win32.Penimc; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContexts.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContexts.cs index 6686a76ec2a..15c97b8f23b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContexts.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenContexts.cs @@ -2,37 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; - -using System.Windows.Threading; -using System.Windows; -using System.Windows.Input; using System.Windows.Input.StylusWisp; using System.Windows.Media; -using System.Security; -using MS.Internal; - -using MS.Win32; -using MS.Utility; -using System.Runtime.InteropServices; - using System.Windows.Input.StylusPlugIns; using System.Windows.Interop; -using SR=MS.Internal.PresentationCore.SR; - -using MS.Internal.PresentationCore; // SecurityHelper - namespace System.Windows.Input { - ///////////////////////////////////////////////////////////////////////// - internal sealed class PenContexts { - ///////////////////////////////////////////////////////////////////////// - internal PenContexts(WispLogic stylusLogic, PresentationSource inputSource) { HwndSource hwndSource = inputSource as HwndSource; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenImcRcw.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenImcRcw.cs index 5f483059fc4..97b0067ed85 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenImcRcw.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenImcRcw.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace MS.Win32.Penimc { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThread.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThread.cs index e8e91a64500..b05f60eb30e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThread.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThread.cs @@ -4,20 +4,8 @@ //#define TRACE -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.ObjectModel; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Threading; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper using MS.Win32.Penimc; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadPool.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadPool.cs index a942b8cfda3..d44edcb91f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadPool.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadPool.cs @@ -2,15 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Threading; using System.Windows.Input.Tracing; -using System.Windows.Threading; -using System.Security; -using MS.Utility; -using MS.Win32.Penimc; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadWorker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadWorker.cs index 7e10a2dc450..32ef60cdb04 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadWorker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadWorker.cs @@ -4,23 +4,11 @@ //#define TRACEPTW -using System; -using System.Diagnostics; -using System.Collections; using System.Runtime.InteropServices; -using System.Windows.Interop; -using System.Windows.Threading; -using System.Windows.Media; using System.Threading; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper -using System.Collections.Generic; using System.Collections.ObjectModel; using MS.Win32.Penimc; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs index 76732958f01..3cdf049bcde 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs @@ -2,25 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Win32; // for RegistryKey class using MS.Internal; using MS.Internal.Interop; -using MS.Internal.PresentationCore; // SecurityHelper using MS.Utility; -using MS.Win32; // for *NativeMethods -using System; -using System.Collections.Generic; -using System.Diagnostics; +using MS.Win32; using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Input; using System.Windows.Input.StylusPlugIns; using System.Windows.Input.Tracing; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusWisp { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusDevice.cs index 3f5ba53d26b..c038972f610 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusDevice.cs @@ -4,14 +4,11 @@ using MS.Internal; using MS.Win32; -using System.Diagnostics; using System.Globalization; -using System.Security; using System.Windows.Input.StylusPlugIns; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusWisp { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusPlugInCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusPlugInCollection.cs index 68448b0538b..05807bbfd69 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusPlugInCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusPlugInCollection.cs @@ -3,17 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Collections; -using System.Collections.ObjectModel; using System.Windows.Media; -using System.Windows.Threading; -using System.Windows.Interop; using System.Windows.Input.StylusPlugIns; -using System.Security; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusWisp { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusTouchDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusTouchDevice.cs index d373c9d4612..4d88a6de666 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusTouchDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusTouchDevice.cs @@ -5,15 +5,7 @@ // // -using System; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Security; - using MS.Internal; -using MS.Internal.PresentationCore; namespace System.Windows.Input.StylusWisp { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDevice.cs index 76c1dbc5909..3c9e40fe00e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDevice.cs @@ -2,19 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; -using System.Windows; using System.Windows.Input.StylusWisp; using System.Windows.Input.Tracing; -using System.Windows.Media; using System.Globalization; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Runtime.InteropServices; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper using MS.Win32.Penimc; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDeviceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDeviceCollection.cs index d76a736a92b..7d6dcd13f33 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDeviceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDeviceCollection.cs @@ -5,14 +5,8 @@ using Microsoft.Win32; using MS.Win32; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; -using System.Windows.Input.StylusWisp; using System.Windows.Input.Tracing; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Input.StylusWisp { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextComposition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextComposition.cs index b335e6a9ecd..188532db0c7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextComposition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextComposition.cs @@ -2,26 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: TextComposition class is the object that contains // the input text. The text from keyboard input // is packed in this class when TextInput event is generated. // And this class also packs the state of the composition text when // the input text is being composed (for EA input, Speech). -// -// -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Text; using System.Windows.Threading; -using System.Windows; -using System.Security; -using MS.Win32; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionEventArgs.cs index 33583658440..c80e0782f6b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionEventArgs.cs @@ -8,9 +8,7 @@ // // -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The TextCompositionEventArgs class contains a text representation of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionEventHandler.cs index 5b3fc2ea1e0..576892c1cbf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionEventHandler.cs @@ -8,9 +8,7 @@ // // -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// The delegate to use for handlers that receive TextCompositionEventArgs. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionManager.cs index 03513d3ee7a..bcdc12fcccc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionManager.cs @@ -2,27 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: the CompositionManager class -// -// - -using System; -using System.Diagnostics; -using System.Globalization; -using System.Security; using System.Text; using System.Windows.Threading; -using System.Windows; using System.Runtime.InteropServices; - using MS.Win32; -using Microsoft.Win32; // for RegistryKey class -using MS.Internal ; -using MS.Internal.PresentationCore; // SecurityHelper - -using SR=MS.Internal.PresentationCore.SR; +using Microsoft.Win32; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartment.cs index bbf8161882a..8001fe803e0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartment.cs @@ -8,25 +8,17 @@ // // -using System; using System.Runtime.InteropServices; -using System.Windows.Threading; - -using System.Security; -using System.Diagnostics; -using System.Collections; -using MS.Utility; using MS.Win32; -using MS.Internal; -namespace System.Windows.Input +namespace System.Windows.Input { //------------------------------------------------------ // // TextServicesCompartment class // //------------------------------------------------------ - + internal class TextServicesCompartment { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartmentContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartmentContext.cs index 689b52aa600..1e736afbcbf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartmentContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartmentContext.cs @@ -8,25 +8,18 @@ // // -using System; -using System.Runtime.InteropServices; -using System.Windows.Threading; - -using System.Security; -using System.Diagnostics; using System.Collections; using MS.Internal; -using MS.Utility; using MS.Win32; -namespace System.Windows.Input +namespace System.Windows.Input { //------------------------------------------------------ // // TextServicesCompartmentContext class // //------------------------------------------------------ - + internal class TextServicesCompartmentContext { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartmentEventSink.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartmentEventSink.cs index 4e0de199aa6..eccfdce589f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartmentEventSink.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesCompartmentEventSink.cs @@ -8,23 +8,16 @@ // // -using System; -using System.Runtime.InteropServices; -using System.Windows.Threading; - -using System.Diagnostics; -using System.Collections; -using MS.Utility; using MS.Win32; -namespace System.Windows.Input +namespace System.Windows.Input { //------------------------------------------------------ // // TextServicesCompartmentManager class // //------------------------------------------------------ - + /// /// This is a class to have a real implement of ITfCompartmentEventSink. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesContext.cs index 2ee5fef43a7..b814f4dea41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesContext.cs @@ -8,17 +8,11 @@ // // -using System; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Threading; -using System.Security; -using System.Diagnostics; -using System.Collections; -using MS.Utility; using MS.Win32; using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesManager.cs index e84df29f5a1..a7b2c4825f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesManager.cs @@ -15,9 +15,6 @@ using MS.Internal; using MS.Win32; -using System; -using System.Security; - namespace System.Windows.Input { internal class TextServicesManager : DispatcherObject diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Touch.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Touch.cs index ea7d631427e..c47a88bf559 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Touch.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Touch.cs @@ -5,10 +5,6 @@ // // -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Input { public static class Touch diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchAction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchAction.cs index c5d3773cda1..e00c6300d3d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchAction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchAction.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs index 30a48fff777..cf7fdd99e84 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs @@ -2,24 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; -using System.Windows.Input; -using System.Windows.Input.StylusWisp; using System.Windows.Media; using System.Windows.Media.Media3D; using System.Windows.Threading; -using System.Security; using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; using MS.Utility; -using SR = MS.Internal.PresentationCore.SR; using System.Windows.Input.Tracing; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchEventArgs.cs index f907d30d1f4..196f025d173 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchEventArgs.cs @@ -5,11 +5,6 @@ // // -using System; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Input { public class TouchEventArgs : InputEventArgs diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchFrameEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchFrameEventArgs.cs index e6b83e62bfd..5cc6c3af475 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchFrameEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchFrameEventArgs.cs @@ -5,10 +5,6 @@ // // -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchFrameEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchFrameEventHandler.cs index d20c6180f7f..0a2068c35fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchFrameEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchFrameEventHandler.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchPoint.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchPoint.cs index b4e4a8a539e..e1710d5d0a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchPoint.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchPoint.cs @@ -5,10 +5,6 @@ // // -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchPointCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchPointCollection.cs index 5960f1a7b8c..6368fdd95d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchPointCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchPointCollection.cs @@ -5,7 +5,6 @@ // // -using System; using System.Collections.ObjectModel; namespace System.Windows.Input diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchesCapturedWithinProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchesCapturedWithinProperty.cs index ef612fbfed8..3e227d9acf2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchesCapturedWithinProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchesCapturedWithinProperty.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Input; -using MS.Internal.KnownBoxes; - namespace System.Windows.Input { internal class TouchesCapturedWithinProperty : ReverseInheritProperty diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchesOverProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchesOverProperty.cs index 8915dcb729c..21b9d3be14f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchesOverProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchesOverProperty.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Input; -using MS.Internal.KnownBoxes; - namespace System.Windows.Input { internal class TouchesOverProperty : ReverseInheritProperty diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Win32KeyboardDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Win32KeyboardDevice.cs index 7bf1008d67f..20aa91a9d0f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Win32KeyboardDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Win32KeyboardDevice.cs @@ -2,18 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Collections; -using System.Windows; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper -using System.Windows.Media; using MS.Win32; // VK translation. -using System; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Win32MouseDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Win32MouseDevice.cs index 36a3e4013d9..e81dfc33012 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Win32MouseDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Win32MouseDevice.cs @@ -2,20 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Diagnostics; -using System.Collections; -using System.Windows; -using System.Windows.Media; -using System.Windows.Interop; -using System.Windows.Threading; -using System.Security; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper using MS.Win32; // *NativeMethods -using System.Runtime.InteropServices; -using System; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/CursorInteropHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/CursorInteropHelper.cs index 63acad2fb35..694d2a68ad7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/CursorInteropHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/CursorInteropHelper.cs @@ -10,11 +10,8 @@ // // 06/30/05 jdmack Created -using System; using System.Runtime.InteropServices; -using System.Security; using System.Windows.Input; -using SecurityHelper=MS.Internal.SecurityHelper; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/D3DImage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/D3DImage.cs index 445bdbcdd4b..46b40636527 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/D3DImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/D3DImage.cs @@ -2,31 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: D3DImage class // An ImageSource that displays a user created D3D surface -// using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; using MS.Win32.PresentationCore; -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Media; using System.Windows.Media.Composition; using System.Windows.Media.Imaging; using System.Windows.Threading; -using System.Security; using System.Threading; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Interop { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndAppCommandInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndAppCommandInputProvider.cs index 471007720d7..18c3a0f870e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndAppCommandInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndAppCommandInputProvider.cs @@ -5,11 +5,6 @@ using System.Windows.Input; using System.Windows.Media; using System.Windows.Threading; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using MS.Utility; -using MS.Internal; using MS.Internal.Interop; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndKeyboardInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndKeyboardInputProvider.cs index e726b9111c4..6a2008a13bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndKeyboardInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndKeyboardInputProvider.cs @@ -5,16 +5,10 @@ using System.Windows.Input; using System.Windows.Media; using System.Windows.Threading; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; using MS.Utility; -using MS.Internal; using MS.Internal.Interop; using MS.Win32; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndMouseInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndMouseInputProvider.cs index f27373c1966..32fbbb48f1f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndMouseInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndMouseInputProvider.cs @@ -6,17 +6,13 @@ using System.Windows.Input; using System.Windows.Media; using System.Runtime.InteropServices; -using System.Diagnostics; using System.Reflection; -using System.Security; using MS.Internal; using MS.Internal.Interop; using MS.Internal.PresentationCore; // SecurityHelper using MS.Win32; using MS.Utility; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Interop { internal sealed class HwndMouseInputProvider : DispatcherObject, IMouseInputProvider, IDisposable diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndPanningFeedback.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndPanningFeedback.cs index a6441f60652..2dd2c0f1418 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndPanningFeedback.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndPanningFeedback.cs @@ -5,12 +5,7 @@ // // -using System; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndPointerInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndPointerInputProvider.cs index f86498a71eb..8dfe8b8a27a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndPointerInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndPointerInputProvider.cs @@ -3,15 +3,10 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; using MS.Internal.Interop; using MS.Win32.Pointer; -using System.Collections.Generic; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; using System.Windows.Input; -using System.Windows.Input.StylusPlugIns; using System.Windows.Input.StylusPointer; using System.Windows.Media; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs index 647fafee77f..4cfc5c19d0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs @@ -2,28 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System.Collections; -using System.Collections.Generic; using System.Threading; using System.Windows.Threading; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Interop; using System.Runtime.InteropServices; using MS.Win32; using MS.Utility; using MS.Internal; using MS.Internal.Interop; -using Microsoft.Win32; -using System.Diagnostics; using System.ComponentModel; -using System; -using System.Security; -using System.IO; - -using SR = MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceHook.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceHook.cs index 300b9b30aa2..316d930bfa5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceHook.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceHook.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Interop { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceKeyboardInputSite.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceKeyboardInputSite.cs index 664648339b7..c23e4b935d5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceKeyboardInputSite.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceKeyboardInputSite.cs @@ -2,16 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows.Input; -using System.Collections; -using MS.Win32; -using System.Windows.Media; -using System.Windows.Threading; - -using SR=MS.Internal.PresentationCore.SR; -using System.Security ; -using MS.Internal.PresentationCore; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceParameters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceParameters.cs index 91c2c1350fc..fb2aa4183e6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceParameters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSourceParameters.cs @@ -2,14 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - using MS.Win32; -using System.Windows.Media; using System.Windows.Input; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Interop { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndStylusInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndStylusInputProvider.cs index 92516bb4d83..939139370c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndStylusInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndStylusInputProvider.cs @@ -7,16 +7,9 @@ using System.Windows.Input.StylusWisp; using System.Windows.Media; using System.Windows.Threading; -using System.Diagnostics; using MS.Win32; -using MS.Internal; using MS.Internal.Interop; -using MS.Internal.PresentationCore; // SecurityHelper using MS.Utility; -using System.Security; - - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs index 800cb572e61..7e0190fada4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs @@ -2,33 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Diagnostics; using System.Windows.Threading; -using System.Reflection; -using System.Threading; -using System.Windows; -using System.Collections.Generic; using System.ComponentModel; using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Automation.Provider; using System.Windows.Automation.Peers; using System.Windows.Media.Composition; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; using MS.Internal; using MS.Internal.Automation; using MS.Internal.Interop; using MS.Utility; using MS.Win32; -using MS.Internal.PresentationCore; // SecurityHelper +using MS.Internal.PresentationCore; -using SR=MS.Internal.PresentationCore.SR; using HRESULT = MS.Internal.HRESULT; using NativeMethodsSetLastError = MS.Internal.WindowsBase.NativeMethodsSetLastError; using PROCESS_DPI_AWARENESS = MS.Win32.NativeMethods.PROCESS_DPI_AWARENESS; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/IStylusInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/IStylusInputProvider.cs index f813e4edbce..50293bfd67e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/IStylusInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/IStylusInputProvider.cs @@ -3,19 +3,8 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; using MS.Internal.Interop; -using MS.Internal.PresentationCore; -using MS.Win32.Pointer; -using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; using System.Windows.Input; -using System.Windows.Input.StylusPlugIns; -using System.Windows.Input.StylusPointer; -using System.Windows.Media; -using System.Windows.Threading; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/IWin32Window.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/IWin32Window.cs index 3ef4e1b1068..8bd5535e958 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/IWin32Window.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/IWin32Window.cs @@ -2,15 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Windows.Threading; -using System.Security; - -using System.Windows.Media; -using System.Runtime.InteropServices; -using MS.Win32; - namespace System.Windows.Interop { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/Imaging.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/Imaging.cs index 83b048c9002..650df332feb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/Imaging.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/Imaging.cs @@ -5,15 +5,8 @@ // // -using System; -using System.Security; using MS.Internal; -using System.Diagnostics; -using System.Windows; using System.Windows.Media.Imaging; -using Microsoft.Win32.SafeHandles; -using MS.Internal.PresentationCore; // SecurityHelper -using System.Windows.Interop; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/OperatingSystemVersionCheck.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/OperatingSystemVersionCheck.cs index bfd9e8e495c..de71baa4697 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/OperatingSystemVersionCheck.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/OperatingSystemVersionCheck.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows.Interop { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs index 7e5e1747a04..d6e29362957 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs @@ -2,27 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -/***************************************************************************\ -* -* -* Defines a top-level ContextLayoutManager - a layout dirtiness tracking/clearing system. -* -* -\***************************************************************************/ - -using System; using System.Windows.Threading; -using System.Collections; - using System.Windows.Media; -using System.Windows.Media.Media3D; using System.Windows.Automation.Peers; - -using MS.Internal; using MS.Utility; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LocalizabilityAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LocalizabilityAttribute.cs index af44efedbba..d90ac3cc100 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LocalizabilityAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LocalizabilityAttribute.cs @@ -8,11 +8,10 @@ // Contents: Localizability attributes // -using System; using System.ComponentModel; namespace System.Windows -{ +{ /// /// Specifies the localization preferences for a class or property in Baml /// The attribute can be specified on Class, Property and Method diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/IAddChild.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/IAddChild.cs index 419ac738eb0..2a37f975d8b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/IAddChild.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/IAddChild.cs @@ -10,12 +10,7 @@ * \***************************************************************************/ -using System.ComponentModel; -using System.Windows.Markup; -using System; -using MS.Internal; - -namespace System.Windows.Markup +namespace System.Windows.Markup { /// /// The IAddChild interface is used for parsing objects that diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/IProvidePropertyFallback.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/IProvidePropertyFallback.cs index 6f91a947f7a..99c457c6c26 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/IProvidePropertyFallback.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/IProvidePropertyFallback.cs @@ -3,9 +3,10 @@ // See the LICENSE file in the project root for more information. +using System.Runtime.CompilerServices; + namespace System.Windows.Markup { - using System.Runtime.CompilerServices; /// /// This is an interface that should be implemented by classes that wish to provide /// fallback values for one or more of their properties. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XamlSerializerUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XamlSerializerUtil.cs index 78ddce02144..f4f9153c10f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XamlSerializerUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XamlSerializerUtil.cs @@ -9,7 +9,6 @@ // // -using System; using MS.Internal.PresentationCore; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XmlLanguage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XmlLanguage.cs index 283a6f3f603..40ea5087230 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XmlLanguage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XmlLanguage.cs @@ -11,14 +11,10 @@ // // -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Globalization; -using System.Text; using System.IO; -using System.Windows; using MS.Internal.PresentationCore; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XmlLanguageConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XmlLanguageConverter.cs index b2e8ffd25bb..2add288a457 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XmlLanguageConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Markup/XmlLanguageConverter.cs @@ -9,13 +9,10 @@ // // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Security; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MeasureData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MeasureData.cs index 227a4afb758..e36dec82346 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MeasureData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MeasureData.cs @@ -10,8 +10,6 @@ // using MS.Internal; -using System; -using System.Windows.Media; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/AncestorChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/AncestorChangedEventArgs.cs index e20706f5741..36e116b7f01 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/AncestorChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/AncestorChangedEventArgs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Media { internal class AncestorChangedEventArgs diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Animatable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Animatable.cs index 3fd0a6b1576..36f021cefcd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Animatable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Animatable.cs @@ -9,15 +9,8 @@ using MS.Internal; using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Threading; using System.Windows.Media.Composition; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationClockResource.cs index 0a3dc936063..1035622ef56 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationClockResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationClockResource.cs @@ -12,12 +12,7 @@ // // -using System; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Runtime.InteropServices; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationException.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationException.cs index 8f6fd88544a..206aa15a37e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationException.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationException.cs @@ -5,11 +5,7 @@ // // -using System; using System.Runtime.Serialization; -using System.Windows.Media.Animation; - -using MS.Internal.PresentationCore; // SR namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationLayer.cs index ce8480335b1..fd22165531e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationLayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationLayer.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows.Media.Animation { internal class AnimationLayer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationStorage.cs index c8871d05ccb..5cf683661ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationStorage.cs @@ -5,9 +5,6 @@ using MS.Internal; using MS.Utility; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Threading; using System.Windows.Media.Composition; using System.Windows.Media.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationTimeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationTimeline.cs index 853767f2532..87d7cd6afcb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationTimeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationTimeline.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Diagnostics; -using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationType.cs index 1fa47f7a750..917f4462e4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/AnimationType.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Runtime.InteropServices; - -using System; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Clock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Clock.cs index 8ce9b4a0097..8c15840bb31 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Clock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Clock.cs @@ -2,25 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - #if DEBUG #define TRACE #endif // DEBUG -using MS.Internal; -using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media.Composition; -using System.Windows.Markup; using System.Windows.Threading; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ClockController.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ClockController.cs index b87441cd91f..9397a041c8a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ClockController.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ClockController.cs @@ -2,22 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - using MS.Internal; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; using System.Windows.Threading; -using System.Windows; -using System.Windows.Media.Composition; -using System.Windows.Markup; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ClockGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ClockGroup.cs index 41647f7fd74..fe9656999f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ClockGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ClockGroup.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Collections.Generic; -using System.Diagnostics; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/DoubleAnimationUsingPath.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/DoubleAnimationUsingPath.cs index 58db0dc2539..24b0da5ff54 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/DoubleAnimationUsingPath.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/DoubleAnimationUsingPath.cs @@ -4,15 +4,6 @@ // -using MS.Internal; -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/EasingQuaternionKeyFrame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/EasingQuaternionKeyFrame.cs index b7be49a8a66..e3c206d6c00 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/EasingQuaternionKeyFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/EasingQuaternionKeyFrame.cs @@ -5,8 +5,6 @@ // // -using System; -using System.Windows; using MS.Internal.KnownBoxes; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Enums.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Enums.cs index fce4251dc43..dad9ee5e97c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Enums.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Enums.cs @@ -4,10 +4,6 @@ // -using System; -using MS.Internal; -using System.Runtime.InteropServices; - namespace System.Windows.Media.Animation { // IMPORTANT: If you change public Enums, TimeEnumHelper.cs must be updated diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Animatable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Animatable.cs index de165a745ee..d317f765f21 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Animatable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Animatable.cs @@ -2,32 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. // // This file was generated from the codegen template located at: // wpf\src\Graphics\codegen\mcg\generators\AnimatableTemplate.cs // // Please see MilCodeGen.html for more information. -// // Allow suppression of certain presharp messages #pragma warning disable 1634, 1691 -using MS.Internal; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows.Threading; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationBase.cs index 461bc7cc2a0..4922e7786b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs index 09a49ad2dc4..d70840fc440 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs @@ -2,27 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; using MS.Internal.PresentationCore; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanKeyFrameCollection.cs index df1e3b009ba..d7c6b5f6b10 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimation.cs index 68ff1910ea8..db5c57e86b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Byte property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationBase.cs index fdbbe8c7fbf..b84b982ccc3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs index dee26cc5a32..0a3de5ce990 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteKeyFrameCollection.cs index a8c1dc7e7f9..073a51b3c49 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationBase.cs index 4bc89a55669..d5fe31183f3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs index c61fe7ca88a..d93941bc490 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs @@ -2,28 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharKeyFrameCollection.cs index 70b87b20d24..d72b0360043 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimation.cs index 524961efb88..176789c2234 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Color property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationBase.cs index 695e9e319f4..474b7685d5b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs index d032ca7c6f6..0c5c5836a70 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorIndependentAnimationStorage.cs index 3d0334bd3b5..b853496697e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorIndependentAnimationStorage.cs @@ -12,16 +12,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorKeyFrameCollection.cs index 3b8484904c0..88a05ca5e23 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimation.cs index 0be10fac957..2dea7bf2d4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Decimal property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationBase.cs index 7c5faa2387e..1106a696e74 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs index 16612840f78..4a40b81e8fb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalKeyFrameCollection.cs index 98081ae5304..0fcbe541bec 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs index ce9abb32b4a..bc7ffc06789 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs @@ -9,17 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Media3D; -using MS.Internal.PresentationCore; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimation.cs index d71c9087f0e..80f2edd1534 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Double property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationBase.cs index e8e2726acaa..921d9edbeda 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationClockResource.cs index 2653870135b..e610f4c7d98 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationClockResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationClockResource.cs @@ -9,13 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs index f9e156dcfc7..d20661adbf2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleIndependentAnimationStorage.cs index f7670d03e25..7f7adeb679f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleIndependentAnimationStorage.cs @@ -12,16 +12,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleKeyFrameCollection.cs index c9843e4eba2..b480dc459f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs index f3afb56b8ec..5d420b9423e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs @@ -9,13 +9,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16Animation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16Animation.cs index b1edf1fc8d4..3b21d943d2a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16Animation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16Animation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Int16 property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationBase.cs index 7233a94c4ce..1314523ec42 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs index 18dc3dee42d..008f8e92e46 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16KeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16KeyFrameCollection.cs index 308e0dd5210..8ffbc156445 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16KeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16KeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32Animation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32Animation.cs index 78dea8d501e..d0bbbe12ceb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32Animation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32Animation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Int32 property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationBase.cs index 02bd7570107..65a39cc0415 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs index 97d605e265a..d12ba49ee20 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32KeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32KeyFrameCollection.cs index c3803e3e0cb..58612c6991a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32KeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32KeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64Animation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64Animation.cs index 0851b78f9ef..5b80fffe4d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64Animation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64Animation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Int64 property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationBase.cs index 7734c1ad218..d3f8892b397 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs index c6c4dbb7955..f2d3d7804b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64KeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64KeyFrameCollection.cs index 4bde1db7c26..b80c049a0e9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64KeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64KeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/KeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/KeyFrames.cs index 2c020afc257..03a75a4d28d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/KeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/KeyFrames.cs @@ -9,17 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Media3D; -using MS.Internal.PresentationCore; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs index edee1a9a070..07d26283311 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs @@ -9,13 +9,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationBase.cs index 63ffd87f530..177d8a52a72 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs index 64c5fdc3bb8..133a001a7c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs @@ -2,28 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixIndependentAnimationStorage.cs index 5f2a776bb41..8ca0aaf8a6d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixIndependentAnimationStorage.cs @@ -12,16 +12,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixKeyFrameCollection.cs index d87cb356351..08d518b328d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationBase.cs index 045a2313312..b9382224054 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs index e73a08fa3a8..4496d3ae1bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs @@ -2,28 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectKeyFrameCollection.cs index 3fedf09ad3b..2d654789035 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ParallelTimeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ParallelTimeline.cs index 539dbf25c7a..6b11f0cba52 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ParallelTimeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ParallelTimeline.cs @@ -9,36 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Animation { partial class ParallelTimeline : TimelineGroup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimation.cs index 92b0a19b962..6c1a56c1c1b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimation.cs @@ -9,24 +9,14 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Point3D property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationBase.cs index ae25e67e2d8..17f8d335544 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationBase.cs @@ -12,21 +12,10 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; using System.Windows.Media.Media3D; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs index 47bccea44b9..e41b5f4d73b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs @@ -2,28 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - +using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DIndependentAnimationStorage.cs index 389d1c17fd8..6729152cf24 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DIndependentAnimationStorage.cs @@ -12,16 +12,8 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DKeyFrameCollection.cs index 95456ec16e0..a6634400605 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimation.cs index 2ea9bcc0efc..c3d8f2c08d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Point property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationBase.cs index 3c5faf3966b..579a505c7e7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationClockResource.cs index c3ae50448dc..8c096e9773e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationClockResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationClockResource.cs @@ -9,13 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs index f9e80d6459b..fd815a37fac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointIndependentAnimationStorage.cs index a98239f01ec..ac8c3671f9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointIndependentAnimationStorage.cs @@ -12,16 +12,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointKeyFrameCollection.cs index 4bedf00e238..4ba83907fd3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimation.cs index aa91de1c33f..eefa3abaa0c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimation.cs @@ -9,24 +9,14 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Quaternion property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationBase.cs index ee581e46784..ba0714fa19f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationBase.cs @@ -12,21 +12,10 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; using System.Windows.Media.Media3D; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs index 8068c18ac4e..23cad6d0ac5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs @@ -2,28 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - +using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionIndependentAnimationStorage.cs index 513ca454828..9be8ab663e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionIndependentAnimationStorage.cs @@ -12,16 +12,8 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionKeyFrameCollection.cs index 63538d29f03..67f6e48eda0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimation.cs index 98b9af76ff2..ee341621696 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Rect property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationBase.cs index 4496a5af4e6..12c153ff0a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationClockResource.cs index f78f9ce8935..a835df3694d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationClockResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationClockResource.cs @@ -9,13 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs index 77fd98c23eb..77d10daa950 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectIndependentAnimationStorage.cs index 715912da516..c051984cc59 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectIndependentAnimationStorage.cs @@ -12,16 +12,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectKeyFrameCollection.cs index 9a303e251bc..21ba329ff33 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimation.cs index 27e3bda1be0..bd11cf07cf9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimation.cs @@ -9,24 +9,14 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Rotation3D property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationBase.cs index 71be2389605..1c1ee47ed36 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationBase.cs @@ -12,21 +12,10 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; using System.Windows.Media.Media3D; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs index 182cc1eb5ce..99880a5948c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs @@ -2,28 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - +using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DKeyFrameCollection.cs index a1de53379e6..b41f5b6d1d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimation.cs index 883a6383b3d..cc514870c91 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Single property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationBase.cs index bf553f9f7a2..b2ddfa8e160 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs index f08428afc16..ff06e9aa4d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleKeyFrameCollection.cs index c522ce6a4cb..a5e92cf962d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimation.cs index 110ef965bcc..78a2ec56d44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Size property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationBase.cs index 256a7fc7da6..c3004cb68f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationClockResource.cs index 181b9eb7685..ac68ccbe793 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationClockResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationClockResource.cs @@ -9,13 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs index c6103be9faa..e308e9fb2a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeIndependentAnimationStorage.cs index dd6020b839f..42f7bd2aa2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeIndependentAnimationStorage.cs @@ -12,16 +12,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeKeyFrameCollection.cs index bd4621602f7..812ba27f76e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SplineKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SplineKeyFrames.cs index 9fb4347ab0a..1163587a5ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SplineKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SplineKeyFrames.cs @@ -9,13 +9,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationBase.cs index b0a754f79d0..a325405e94b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs index e48b7d54adf..293b260cbd7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs @@ -2,28 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringKeyFrameCollection.cs index 7eb880adb4b..422f7667037 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Timeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Timeline.cs index 5de798b8942..b077097253a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Timeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Timeline.cs @@ -9,36 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Animation { abstract partial class Timeline : Animatable diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/TimelineCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/TimelineCollection.cs index 7883663be4e..9319d003c3f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/TimelineCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/TimelineCollection.cs @@ -2,50 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -//--------------------------------------------------------------------------- -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Animation { /// /// A collection of Timeline objects. /// - - public sealed partial class TimelineCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/TimelineGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/TimelineGroup.cs index a81c79da680..5adc30167df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/TimelineGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/TimelineGroup.cs @@ -10,34 +10,7 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimation.cs index e5587b4b419..e5e3bcfd7eb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimation.cs @@ -9,24 +9,14 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Vector3D property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationBase.cs index 7edfd80f299..1d7cacaf5d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationBase.cs @@ -12,21 +12,10 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; using System.Windows.Media.Media3D; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs index e1a794d73fc..beff2073b49 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs @@ -2,28 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - +using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DIndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DIndependentAnimationStorage.cs index a719b2f8332..0810741c61e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DIndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DIndependentAnimationStorage.cs @@ -12,16 +12,8 @@ // Please see MilCodeGen.html for more information. // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DKeyFrameCollection.cs index 7643ab9111c..35c47fe8753 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimation.cs index 3eaaec0cdb7..5cfa056aa65 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimation.cs @@ -9,24 +9,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Vector property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationBase.cs index c4b4543a417..96721c612e9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationBase.cs @@ -12,21 +12,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs index a62ec0450ca..b162cbb08d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=MS.Internal.PresentationCore.SR; - using MS.Internal.PresentationCore; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorKeyFrameCollection.cs index d8f8ebeb0d4..07d0b98d41f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorKeyFrameCollection.cs @@ -9,16 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IAnimation.cs index ddb30026d59..541d078b633 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IAnimation.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IClock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IClock.cs index 9be26bd6c20..2599d57adf9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IClock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IClock.cs @@ -4,10 +4,6 @@ // -using System; -using MS.Internal; -using System.Runtime.InteropServices; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IndependentAnimationStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IndependentAnimationStorage.cs index 312af28f1c7..0e0427c8676 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IndependentAnimationStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IndependentAnimationStorage.cs @@ -3,10 +3,6 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Threading; using System.Windows.Media.Composition; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IndependentlyAnimatedPropertyMetadata.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IndependentlyAnimatedPropertyMetadata.cs index 891db900196..d9f3af2e77c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IndependentlyAnimatedPropertyMetadata.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/IndependentlyAnimatedPropertyMetadata.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeySpline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeySpline.cs index e3e0fa64294..5aa4d26399a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeySpline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeySpline.cs @@ -2,18 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - // Allow suppression of certain presharp messages #pragma warning disable 1634, 1691 -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeySplineConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeySplineConverter.cs index 4f48bdcc0cd..3cd5d660999 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeySplineConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeySplineConverter.cs @@ -2,21 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - // Allow suppression of certain presharp messages #pragma warning disable 1634, 1691 using MS.Internal; -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Globalization; using System.Reflection; using System.Windows.Media.Animation; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTime.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTime.cs index 52e63ff281c..9adb22b3207 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTime.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTime.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - // Allow suppression of certain presharp messages #pragma warning disable 1634, 1691 -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTimeConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTimeConverter.cs index 7b1d87f101d..ae1584cb0fb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTimeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTimeConverter.cs @@ -4,13 +4,11 @@ // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Globalization; using System.Reflection; using System.Windows.Media.Animation; -using System.Security; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/LinearQuaternionKeyFrame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/LinearQuaternionKeyFrame.cs index b3bb204f6b1..4db00a6bb76 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/LinearQuaternionKeyFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/LinearQuaternionKeyFrame.cs @@ -5,8 +5,6 @@ // // -using System; -using System.Windows; using MS.Internal.KnownBoxes; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/MatrixAnimationUsingPath.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/MatrixAnimationUsingPath.cs index 359ba58330d..356fca3e164 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/MatrixAnimationUsingPath.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/MatrixAnimationUsingPath.cs @@ -4,20 +4,6 @@ // -using MS.Internal; -using System; -using System.IO; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ParallelTimeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ParallelTimeline.cs index 04927362bdf..178e623b765 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ParallelTimeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/ParallelTimeline.cs @@ -4,11 +4,6 @@ using MS.Internal; - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.ComponentModel; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/PointAnimationUsingPath.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/PointAnimationUsingPath.cs index c9ebd0942fa..f5c181e82f2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/PointAnimationUsingPath.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/PointAnimationUsingPath.cs @@ -2,21 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Internal; -using System; -using System.IO; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/QuaternionAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/QuaternionAnimation.cs index 3430a41f8e0..dc62b390fdd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/QuaternionAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/QuaternionAnimation.cs @@ -5,8 +5,6 @@ // // -using System; -using System.Windows; using MS.Internal.KnownBoxes; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehavior.cs index 79b0efc44af..580c21fc9c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehavior.cs @@ -2,19 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - // Allow suppression of certain presharp messages #pragma warning disable 1634, 1691 -using MS.Internal; - using System.ComponentModel; -using System.Diagnostics; using System.Text; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehaviorConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehaviorConverter.cs index 0588b21887a..1d4ff7625b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehaviorConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehaviorConverter.cs @@ -4,13 +4,10 @@ // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Security; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/SplineQuaternionKeyFrame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/SplineQuaternionKeyFrame.cs index b0614d52074..a5de85f0d9e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/SplineQuaternionKeyFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/SplineQuaternionKeyFrame.cs @@ -5,8 +5,6 @@ // // -using System; -using System.Windows; using MS.Internal.KnownBoxes; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Subtree.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Subtree.cs index c1d948ef54d..797eafbe8bc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Subtree.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Subtree.cs @@ -4,11 +4,6 @@ // -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; - namespace System.Windows.Media.Animation { [System.Flags] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeEnumHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeEnumHelper.cs index a7954bc3171..98e7f273565 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeEnumHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeEnumHelper.cs @@ -4,7 +4,6 @@ // -using System; using System.Windows.Media.Animation; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeIntervalCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeIntervalCollection.cs index eb81e10c51c..f8a8365b27a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeIntervalCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeIntervalCollection.cs @@ -87,11 +87,6 @@ #define TRACE #endif // DEBUG -using System; -using System.Collections; -using System.Diagnostics; -using MS.Internal; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeManager.cs index b99a86e7188..5d6da5e629e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimeManager.cs @@ -2,27 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - #if DEBUG #define TRACE #endif // DEBUG -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using MS.Internal; -using MS.Win32; using MS.Utility; using System.Windows.Threading; -using System.Windows.Media; -using System.Windows.Media.Composition; -using System.Runtime.InteropServices; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Timeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Timeline.cs index a3370569573..3629831da69 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Timeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Timeline.cs @@ -2,25 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - #if DEBUG #define TRACE #endif // DEBUG using MS.Internal; -using MS.Utility; -using System; using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimelineClockCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimelineClockCollection.cs index e755d927fc2..820d9079a42 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimelineClockCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimelineClockCollection.cs @@ -2,14 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// ClockCollection.cs - -using System; -using System.Collections.Generic; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; - #pragma warning disable 1634, 1691 // suppressing PreSharp warnings namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimelineGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimelineGroup.cs index e06e4e7d1a7..731c17c27b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimelineGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/TimelineGroup.cs @@ -2,15 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/WeakRefEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/WeakRefEnumerator.cs index 50d630f0d8d..7876fd15e11 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/WeakRefEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/WeakRefEnumerator.cs @@ -4,10 +4,6 @@ // -using System; -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ArcSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ArcSegment.cs index 5847a49da26..523222a1d20 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ArcSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ArcSegment.cs @@ -9,23 +9,7 @@ // using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Text; -using System.Security; -using System.Text.RegularExpressions; -using System.Windows.Media; -using System.Windows; using System.Windows.Media.Composition; -using System.Windows.Media.Animation; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BezierSegment.cs index 27d849a1c9e..1c8f8b11e8d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BezierSegment.cs @@ -4,25 +4,6 @@ // -using System; -using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Composition; -using System.Windows.Media.Animation; -using System.Diagnostics; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BitmapCacheBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BitmapCacheBrush.cs index 49175383b01..0aec82adb5f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BitmapCacheBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BitmapCacheBrush.cs @@ -2,18 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// Microsoft Windows Presentation Foudnation -// - -using System.Diagnostics; -using System.Windows; using System.Windows.Threading; using System.Windows.Media.Media3D; using System.Windows.Media.Composition; using System.Windows.Media.Animation; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BoundsDrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BoundsDrawingContextWalker.cs index 2f33e2a211b..2d2b0e6aae3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BoundsDrawingContextWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/BoundsDrawingContextWalker.cs @@ -12,21 +12,7 @@ // using MS.Internal; -using System; -using System.ComponentModel; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Brush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Brush.cs index 8fea4548e87..e45cd979781 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Brush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Brush.cs @@ -12,22 +12,10 @@ // using MS.Internal; -using System; -using System.IO; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// Brush - diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ByteStreamGeometryContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ByteStreamGeometryContext.cs index 004a66349e1..292f8eeecef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ByteStreamGeometryContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ByteStreamGeometryContext.cs @@ -2,30 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This class is used by the StreamGeometry class to generate an inlined, // flattened geometry stream. -// using MS.Utility; using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CacheMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CacheMode.cs index 4cadf785b06..b82a0651305 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CacheMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CacheMode.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System.ComponentModel; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { public abstract partial class CacheMode diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CapacityStreamGeometryContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CapacityStreamGeometryContext.cs index 5063d564ddf..ef8a51a4d01 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CapacityStreamGeometryContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CapacityStreamGeometryContext.cs @@ -8,24 +8,6 @@ // flattened geometry stream. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; -using System.Security; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ChannelManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ChannelManager.cs index 362d94a3424..af7338394e0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ChannelManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ChannelManager.cs @@ -9,30 +9,11 @@ // that abstracts out channel creation, storage and destruction. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Interop; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; using MS.Internal; -using MS.Utility; -using MS.Win32; -using Microsoft.Win32.SafeHandles; - -using SR=MS.Internal.PresentationCore.SR; - -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi; +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CharacterMetrics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CharacterMetrics.cs index 6ad7a1719c7..d4f02f25edf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CharacterMetrics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CharacterMetrics.cs @@ -2,19 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: CharacterMetrics -// -// - -using System; using System.Globalization; using StringBuilder = System.Text.StringBuilder; using CompositeFontParser = MS.Internal.FontFace.CompositeFontParser; using Constants = MS.Internal.TextFormatting.Constants; -using SR = MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CharacterMetricsDictionary.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CharacterMetricsDictionary.cs index f78b7c47bf6..82306df2896 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CharacterMetricsDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CharacterMetricsDictionary.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: CharacterMetricsDictionary -// -// - -using System; -using SC=System.Collections; -using System.Collections.Generic; - -using SR=MS.Internal.PresentationCore.SR; +using SC = System.Collections; // Allow suppression of presharp warnings #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs index e9f39258468..5322c8b00bf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs @@ -2,18 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; using System.ComponentModel; -using System.IO; using System.Runtime.InteropServices; using System.Text; -using System.Windows.Media.Imaging; using MS.Internal; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorContext.cs index 64c2510d28e..1132c55c573 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorContext.cs @@ -2,32 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages -using System; using MS.Internal; -using MS.Internal.PresentationCore; using MS.Win32; using System.IO; using System.Runtime.InteropServices; -using System.Windows.Media; using System.Resources; -using System.Security; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; using System.Reflection; -using System.Diagnostics; using System.Globalization; -using Microsoft.Win32.SafeHandles; using System.Net; -using System.IO.Packaging; -using System.Windows.Navigation; -using System.Diagnostics.CodeAnalysis; using System.Text; -using SR = MS.Internal.PresentationCore.SR; using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; using IWICCC = MS.Win32.PresentationCore.UnsafeNativeMethods.IWICColorContext; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorContextHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorContextHelper.cs index 5eb333a216e..5d5762e92a9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorContextHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorContextHelper.cs @@ -2,25 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.IO; using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Imaging; using MS.Internal; using MS.Win32; -using System.Security; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Diagnostics; -using System.Globalization; using Microsoft.Win32.SafeHandles; -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethodsMilCoreApi=MS.Win32.PresentationCore.UnsafeNativeMethods; + +using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorConverter.cs index c77c5bd1280..50524110413 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorConverter.cs @@ -2,25 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using MS.Internal; -using System.Windows.Media; -using System.Text; -using System.Collections; using System.Globalization; -using System.Runtime.InteropServices; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media -{ +{ /// /// ColorConverter Parses a color. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorTransform.cs index 42e423e632e..0841f9ec05a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorTransform.cs @@ -2,30 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.IO; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using MS.Internal; -using MS.Win32; -using System.Security; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Diagnostics; -using System.Globalization; -using Microsoft.Win32.SafeHandles; - -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; - namespace System.Windows.Media { - /// - /// internal class ColorTransform { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorTransformHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorTransformHelper.cs index 76daf1b25f5..07975f176b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorTransformHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ColorTransformHelper.cs @@ -2,25 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.IO; using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Imaging; using MS.Internal; -using MS.Win32; -using System.Security; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Diagnostics; -using System.Globalization; using Microsoft.Win32.SafeHandles; -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; + +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CombinedGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CombinedGeometry.cs index 35200e1e46f..b8a5a850533 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CombinedGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CombinedGeometry.cs @@ -10,25 +10,6 @@ // Created it // -using System; -using MS.Internal; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Windows.Media.Composition; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Windows.Markup; -using System.Runtime.InteropServices; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Composition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Composition.cs index bf27c38a4d6..9aa79767051 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Composition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Composition.cs @@ -2,24 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// - -using System; -using System.ComponentModel; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Media3D; using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using MS.Internal.PresentationCore; -using MS.Win32; -using System.Diagnostics; -using System.Windows.Media.Composition; -using System.Security; - -using DllImport=MS.Internal.PresentationCore.DllImport; namespace System.Windows.Media.Composition { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CompositionTarget.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CompositionTarget.cs index 88261e5ae6b..7828a62c888 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CompositionTarget.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CompositionTarget.cs @@ -2,35 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// -// - -using System; -using System.Collections; -using System.Diagnostics; -using System.Threading; using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Automation.Provider; using System.Windows.Media.Composition; -using System.Runtime.InteropServices; -using System.Security; using MS.Internal; -using MS.Win32; using MS.Utility; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { - /// - /// - /// public abstract class CompositionTarget : DispatcherObject, IDisposable, ICompositionTarget { // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ContainerVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ContainerVisual.cs index 9aaa8f3f2ac..5589de8a672 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ContainerVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ContainerVisual.cs @@ -6,17 +6,8 @@ // // Created it. -using System; using System.ComponentModel; -using System.Windows.Threading; -using System.Windows.Media; using System.Windows.Media.Effects; -using System.Diagnostics; -using System.Collections; -using MS.Internal; -using System.Resources; -using System.Runtime.InteropServices; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/BrushValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/BrushValueSerializer.cs index 54346b4631e..fed36e95cb6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/BrushValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/BrushValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/CacheModeValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/CacheModeValueSerializer.cs index 68ee9822f08..e01460dc2ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/CacheModeValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/CacheModeValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/DoubleCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/DoubleCollectionValueSerializer.cs index d600a3668ed..50b15a9c61f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/DoubleCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/DoubleCollectionValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/GeometryValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/GeometryValueSerializer.cs index 49cfc387aea..e6da570e5a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/GeometryValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/GeometryValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/Int32CollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/Int32CollectionValueSerializer.cs index 39003db4bf8..271c0277c41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/Int32CollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/Int32CollectionValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PathFigureCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PathFigureCollectionValueSerializer.cs index ec04f688ee2..74234ea2374 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PathFigureCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PathFigureCollectionValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PointCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PointCollectionValueSerializer.cs index 304629fac8a..3ea8766ddf2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PointCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/PointCollectionValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/TransformValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/TransformValueSerializer.cs index a861ca7bf7a..fcf38d59396 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/TransformValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/TransformValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/VectorCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/VectorCollectionValueSerializer.cs index 025c1350fb8..9d04079f928 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/VectorCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Converters/Generated/VectorCollectionValueSerializer.cs @@ -9,32 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CultureSpecificStringDictionary.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CultureSpecificStringDictionary.cs index 0b1786149da..d8edacda33f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CultureSpecificStringDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/CultureSpecificStringDictionary.cs @@ -2,22 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: LanguageSpecificStringDictionary -// -// - -using System; -using System.ComponentModel; // for TypeConverter -using System.Globalization; -using SC=System.Collections; -using System.Collections.Generic; -using System.Windows.Markup; // for XmlLanguage and XmlLanguageConverter - -using MS.Internal.PresentationCore; -using SR=MS.Internal.PresentationCore.SR; +using SC = System.Collections; +using System.Windows.Markup; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DashStyle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DashStyle.cs index e54abd465cb..231da13e897 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DashStyle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DashStyle.cs @@ -8,26 +8,10 @@ // // -using System; -using MS.Internal; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows; -using System.Text.RegularExpressions; using System.Windows.Media.Animation; -using System.Runtime.InteropServices; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Media +namespace System.Windows.Media { #region DashStyle /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DashStyles.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DashStyles.cs index c7a6b6bfb03..ee29b354374 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DashStyles.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DashStyles.cs @@ -9,10 +9,7 @@ // // -using System; -using System.Windows; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// DashStyles - The DashStyles class is static, and contains properties for well known diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Drawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Drawing.cs index 31ed572245d..ea28f25f080 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Drawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Drawing.cs @@ -7,20 +7,11 @@ // Description: Drawing is the base Drawing class that defines the standard // interface which Drawing's must implement. -using MS.Internal; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Resources; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Markup; -using System.Windows.Threading; -namespace System.Windows.Media -{ +namespace System.Windows.Media +{ /// /// Base class for the enumerable and modifiable Drawing subclasses. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingBrush.cs index a55f7ea6db9..d72c9698bac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingBrush.cs @@ -9,18 +9,7 @@ // The DrawingBrush is a TileBrush which defines its tile content // by use of a Drawing. - -using MS.Internal; -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// DrawingBrush - This TileBrush defines its content as a Drawing diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingCollection.cs index 5171f3b5afa..3ee27a741bc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingCollection.cs @@ -9,9 +9,7 @@ // using System.Collections; -using System.Collections.Generic; using System.Windows.Media.Animation; -using System.Windows.Markup; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContext.cs index 00222d7100f..c8d6bbd4d8d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContext.cs @@ -5,15 +5,8 @@ // // -using System; -using System.Windows; using System.Windows.Threading; - -using System.Windows.Media.Animation; -using System.Windows.Media; -using System.Diagnostics; using MS.Internal; -using System.Runtime.InteropServices; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContextDrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContextDrawingContextWalker.cs index 25f58c8f0dc..ddd517f461f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContextDrawingContextWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContextDrawingContextWalker.cs @@ -8,16 +8,6 @@ // that forwards all of it's calls to a DrawingContext. // -using MS.Internal; -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContextWalker.cs index 0a50bae750f..4e1718c3115 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContextWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingContextWalker.cs @@ -7,18 +7,6 @@ // Description: Contains base class for DrawingContext iterators // -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; - -using MS.Internal; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingDrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingDrawingContext.cs index 64a83bef677..3fbb67463dc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingDrawingContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingDrawingContext.cs @@ -2,27 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -// -// -// Description: Creates a Drawing representation of the Draw calls made -// to this DrawingContext. -// - using MS.Internal; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Threading; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingGroup.cs index c7bffe1d7c7..9d7a524a718 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingGroup.cs @@ -2,40 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: DrawingGroup represents a collection of Drawing objects, and -// can apply group-operations such as clip and opacity to it's -// collections -// - -using System; -using System.Windows.Threading; - -using MS.Win32; -using System.Security; using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Effects; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; -using MS.Internal; -using MS.Internal.Media; -using System.Resources; -using MS.Utility; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; -using System.ComponentModel.Design.Serialization; -using System.ComponentModel; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media -{ +{ /// /// DrawingGroup represents a collection of Drawing objects, and /// can apply group-operations such as clip and opacity to it's diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingGroupDrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingGroupDrawingContext.cs index 4456d7e04eb..41274d7eb1e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingGroupDrawingContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingGroupDrawingContext.cs @@ -7,8 +7,6 @@ // Description: DrawingGroupDrawingContext populates a DrawingGroup // from Draw commands that are called on it. // -using System.Diagnostics; - namespace System.Windows.Media { internal class DrawingGroupDrawingContext : DrawingDrawingContext diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingImage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingImage.cs index 0ea9462fd8c..2bbb381ef01 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingImage.cs @@ -11,17 +11,6 @@ // // -using MS.Internal; -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingServices.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingServices.cs index 271a63677f2..f75633318da 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingServices.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingServices.cs @@ -8,9 +8,6 @@ // and hit-testing. // -using System.Diagnostics; -using System.Windows.Media.Animation; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingVisual.cs index 55f852ed808..6fee311c133 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingVisual.cs @@ -4,17 +4,7 @@ // -using System; -using System.Windows.Threading; - -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Collections.Generic; -using MS.Internal; -using MS.Win32; -using System.Resources; -using System.Runtime.InteropServices; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingVisualDrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingVisualDrawingContext.cs index 68782404e86..b443cb49336 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingVisualDrawingContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingVisualDrawingContext.cs @@ -2,18 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - -using System; -using System.Windows; -using System.Windows.Threading; - -using System.Windows.Media.Animation; -using System.Windows.Media; -using System.Windows.Media.Composition; -using System.Diagnostics; -using MS.Internal; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BevelBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BevelBitmapEffect.cs index b8caf9e3b3a..670bc958f17 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BevelBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BevelBitmapEffect.cs @@ -4,21 +4,7 @@ // -using MS.Internal; -using System; -using System.IO; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal.PresentationCore; -using System.Security; namespace System.Windows.Media.Effects diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffect.cs index fb01826a6f6..c0901b36b41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffect.cs @@ -2,28 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using MS.Internal; -using System; -using System.IO; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Threading; using System.Threading; using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Media.Imaging; -using System.Security; -using MS.Internal.PresentationCore; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectGroup.cs index 8efb40011b9..745b5b1ddf1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectGroup.cs @@ -4,25 +4,8 @@ // -using System; -using System.Windows; -using System.Windows.Media; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using MS.Internal; -using System.Windows.Media.Animation; -using System.Globalization; -using System.Text; using System.Runtime.InteropServices; using System.Windows.Markup; -using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Effects diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectInput.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectInput.cs index c375716d102..73a0de15f7e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectInput.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectInput.cs @@ -4,21 +4,8 @@ // -using MS.Internal; -using System; -using System.IO; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Media.Imaging; -using System.Collections.Generic; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectInputData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectInputData.cs index e955caabe97..3669f9aa936 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectInputData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectInputData.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - namespace System.Windows.Media.Effects { internal struct BitmapEffectInputData diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectState.cs index 60c77e78305..b8a8c6cd7c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffectState.cs @@ -10,28 +10,8 @@ // // -using System; -using System.Windows.Threading; - -using MS.Win32; -using System.Security; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; -using MS.Internal; -using System.Resources; -using MS.Utility; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; - -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Effects -{ +{ /// /// This class is used to store the user provided bitmap effect data on Visual. /// It is necessary to implement the emulation layer for some legacy effects on top diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BlurBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BlurBitmapEffect.cs index a2874528f15..ef55700d7c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BlurBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BlurBitmapEffect.cs @@ -4,21 +4,7 @@ // -using MS.Internal; -using System; -using System.IO; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal.PresentationCore; -using System.Security; namespace System.Windows.Media.Effects diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BlurEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BlurEffect.cs index 36fbd222ed6..e0ca60eebcf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BlurEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BlurEffect.cs @@ -4,11 +4,6 @@ // -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; - namespace System.Windows.Media.Effects { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/DropShadowBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/DropShadowBitmapEffect.cs index ebfc2cab7a8..c0e1d0becf1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/DropShadowBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/DropShadowBitmapEffect.cs @@ -6,12 +6,7 @@ #region Using directives -using System; -using System.Collections.Generic; -using System.Text; using System.Runtime.InteropServices; -using System.Security; -using SecurityHelper=MS.Internal.SecurityHelper; #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/DropShadowEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/DropShadowEffect.cs index e8448c8ebe2..cd279f42919 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/DropShadowEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/DropShadowEffect.cs @@ -4,11 +4,6 @@ // -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; - namespace System.Windows.Media.Effects { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Effect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Effect.cs index 0c04245adc0..cb6fcd7af3c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Effect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Effect.cs @@ -4,13 +4,6 @@ // -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; -using System.Security; -using SecurityHelper=MS.Internal.SecurityHelper; - namespace System.Windows.Media.Effects { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BevelBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BevelBitmapEffect.cs index 91f1018f278..d110bc82d47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BevelBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BevelBitmapEffect.cs @@ -9,35 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Effects { sealed partial class BevelBitmapEffect : BitmapEffect diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffect.cs index 0bec745ff01..ad943ca5116 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffect.cs @@ -9,34 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectCollection.cs index 9d122483dfb..26111e76b82 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectCollection.cs @@ -2,41 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectGroup.cs index 0e3ca64909e..3aa93766e44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectGroup.cs @@ -10,33 +10,7 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectInput.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectInput.cs index 9476a977314..550a94c9092 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectInput.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BitmapEffectInput.cs @@ -9,34 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BlurBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BlurBitmapEffect.cs index f716733f476..f2502ae80c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BlurBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BlurBitmapEffect.cs @@ -9,35 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Effects { sealed partial class BlurBitmapEffect : BitmapEffect diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BlurEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BlurEffect.cs index 0afc677fb01..6376044a486 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BlurEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/BlurEffect.cs @@ -9,34 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR = MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/DropShadowBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/DropShadowBitmapEffect.cs index e538857fba2..2d7378af99a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/DropShadowBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/DropShadowBitmapEffect.cs @@ -9,35 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Effects { sealed partial class DropShadowBitmapEffect : BitmapEffect diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/DropShadowEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/DropShadowEffect.cs index f54d6cb7dfe..00c4d22f50e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/DropShadowEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/DropShadowEffect.cs @@ -9,34 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/EdgeProfile.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/EdgeProfile.cs index d681837d868..96d6742bb41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/EdgeProfile.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/EdgeProfile.cs @@ -10,7 +10,6 @@ // #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/Effect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/Effect.cs index 3e3c26dbd76..a8e93adb0b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/Effect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/Effect.cs @@ -9,34 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/EmbossBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/EmbossBitmapEffect.cs index 8f16410a529..dc7496c1345 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/EmbossBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/EmbossBitmapEffect.cs @@ -9,35 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Effects { sealed partial class EmbossBitmapEffect : BitmapEffect diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ImplicitInputBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ImplicitInputBrush.cs index cce31af46d1..6d913cf6c85 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ImplicitInputBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ImplicitInputBrush.cs @@ -9,34 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/KernelType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/KernelType.cs index e35ee734aa5..eb71edede05 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/KernelType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/KernelType.cs @@ -10,7 +10,6 @@ // #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/OuterGlowBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/OuterGlowBitmapEffect.cs index d8d65c4fefa..503b7b23a99 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/OuterGlowBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/OuterGlowBitmapEffect.cs @@ -9,35 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Effects { sealed partial class OuterGlowBitmapEffect : BitmapEffect diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/PixelShader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/PixelShader.cs index 4dfed16d554..952bf19293c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/PixelShader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/PixelShader.cs @@ -9,34 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/RenderingBias.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/RenderingBias.cs index d752cf3e926..54304eb15e6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/RenderingBias.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/RenderingBias.cs @@ -10,7 +10,6 @@ // #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ShaderEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ShaderEffect.cs index 9ab27b0e199..6e403a6157d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ShaderEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ShaderEffect.cs @@ -9,34 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.KnownBoxes; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ShaderRenderMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ShaderRenderMode.cs index cfb507eaf8b..4aaa0cfcc58 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ShaderRenderMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/Generated/ShaderRenderMode.cs @@ -10,7 +10,6 @@ // #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/ImplicitInputBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/ImplicitInputBrush.cs index 9bde60e7c19..14e75913353 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/ImplicitInputBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/ImplicitInputBrush.cs @@ -5,9 +5,6 @@ // Microsoft Windows Presentation Foundation // - -using System.Windows.Media; - namespace System.Windows.Media.Effects { internal partial class ImplicitInputBrush : Brush diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/OuterGlowBitmapEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/OuterGlowBitmapEffect.cs index 2f4af4b6457..371ef039e22 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/OuterGlowBitmapEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/OuterGlowBitmapEffect.cs @@ -4,21 +4,7 @@ // -using MS.Internal; -using System; -using System.IO; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal.PresentationCore; -using System.Security; namespace System.Windows.Media.Effects diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/PixelShader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/PixelShader.cs index ff2ef91c9e8..e8160d96afe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/PixelShader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/PixelShader.cs @@ -2,33 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// Microsoft Windows Presentation Foundation -// - -using System; using System.IO; using MS.Internal; -using MS.Win32.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Globalization; -using System.Security; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows; -using System.Text.RegularExpressions; -using System.Runtime.InteropServices; -using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; using System.Windows.Navigation; -using System.IO.Packaging; -using MS.Internal.PresentationCore; - -using PackUriHelper = System.IO.Packaging.PackUriHelper; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/ShaderEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/ShaderEffect.cs index 1dcf4305f3a..9aa10b75c8a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/ShaderEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/ShaderEffect.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// Microsoft Windows Presentation Foundation -// - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; -using System.IO; -using System.Windows.Markup; using System.Windows.Media.Composition; using System.Windows.Media.Media3D; -using System.Security; -using System.Runtime.InteropServices; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Effects { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/embossbitmapeffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/embossbitmapeffect.cs index 4b2824b6430..c3f6cb94b6a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/embossbitmapeffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/embossbitmapeffect.cs @@ -6,12 +6,7 @@ #region Using directives -using System; -using System.Collections.Generic; -using System.Text; using System.Runtime.InteropServices; -using System.Security; -using SecurityHelper=MS.Internal.SecurityHelper; #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EllipseGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EllipseGeometry.cs index b67934e4b30..9fdb8c26ba5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EllipseGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EllipseGeometry.cs @@ -2,27 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; using MS.Internal; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Media + +namespace System.Windows.Media { /// /// This is the Geometry class for Circles and Ellipses diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EventProxy.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EventProxy.cs index f4954c849a9..1211eea8a75 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EventProxy.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EventProxy.cs @@ -5,16 +5,9 @@ // #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages -using System.Windows.Media; -using System; using MS.Internal; using MS.Win32; -using System.Reflection; -using System.Collections; -using System.Diagnostics; -using System.Security; using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FactoryMaker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FactoryMaker.cs index 55eb5e861b7..547656c256b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FactoryMaker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FactoryMaker.cs @@ -5,15 +5,8 @@ // // -using System; -using System.Security; -using System.Diagnostics; using MS.Internal; -using MS.Win32; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyMap.cs index 0111f3f1250..8c29cb09bc2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyMap.cs @@ -2,28 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -//+----------------------------------------------------------------------- -// -// -// -// Contents: FontFamilyMap implementation -// -// Spec: Fonts.htm -// -// - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; using System.Globalization; -using System.ComponentModel; using System.Windows.Markup; using MS.Internal.FontFace; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyMapCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyMapCollection.cs index bb2587d7fbb..aab1cc8ac4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyMapCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyMapCollection.cs @@ -2,21 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: FontFamilyMapCollection -// -// - -using System; -using System.Globalization; -using SC=System.Collections; -using System.Collections.Generic; +using SC = System.Collections; using MS.Internal.FontFace; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyTypeface.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyTypeface.cs index 7e07194e43e..77830d916d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyTypeface.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyTypeface.cs @@ -2,25 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -//+----------------------------------------------------------------------- -// -// -// -// Contents: FamilyTypeface implementation -// -// Spec: Fonts.htm -// -// - -using System; -using System.Collections.Generic; -using System.Globalization; using System.ComponentModel; -using System.Windows.Markup; // for XmlLanguage +using System.Windows.Markup; using MS.Internal.FontFace; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyTypefaceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyTypefaceCollection.cs index cc1ef3e7b4f..a243886cafa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyTypefaceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FamilyTypefaceCollection.cs @@ -2,20 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: FamilyTypefaceCollection -// -// - -using System; -using System.Globalization; -using SC=System.Collections; -using System.Collections.Generic; -using MS.Internal.FontFace; - -using SR=MS.Internal.PresentationCore.SR; +using SC = System.Collections; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontEmbeddingManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontEmbeddingManager.cs index e032921f88a..4e713b04b2f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontEmbeddingManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontEmbeddingManager.cs @@ -2,32 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: The FontEmbeddingManager class handles physical and composite font embedding. -// -// See spec at http://avalon/text/DesignDocsAndSpecs/Font%20embedding%20APIs.htm -// -// -// - -using System; -using System.Text; -using System.IO; -using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; - -using MS.Internal.FontCache; -using MS.Internal.FontFace; -using MS.Internal.Shaping; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - // Allow suppression of presharp warnings #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamily.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamily.cs index 230333e0c78..c004756c111 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamily.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamily.cs @@ -2,32 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: FontFamily -// - -using System; -using System.Text; using System.IO; -using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; -using System.Windows.Markup; // for XmlLanguage +using System.Windows.Markup; using System.ComponentModel; -using System.ComponentModel.Design; - -using MS.Utility; using MS.Internal; using MS.Internal.FontCache; using MS.Internal.FontFace; using MS.Internal.Shaping; -using System.Security; - -using SR = MS.Internal.PresentationCore.SR; // Since we disable PreSharp warnings in this file, we first need to disable warnings about unknown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyConverter.cs index f77df1a829b..1ce12089f7b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyConverter.cs @@ -2,26 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -//+----------------------------------------------------------------------- -// -// -// -// Contents: FontFamilyConverter implementation -// -// Spec: Fonts.htm -// -// - -using System; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Windows.Navigation; using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; - // Allow suppression of presharp warnings #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyValueSerializer.cs index 9c25984d951..34e64386ef6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyValueSerializer.cs @@ -10,8 +10,6 @@ // // -using System.ComponentModel; -using System.Globalization; using System.Windows.Markup; // Allow suppression of presharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Fonts.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Fonts.cs index fd96c1b4477..2950802b853 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Fonts.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Fonts.cs @@ -10,21 +10,8 @@ // // -using System; -using System.Text; -using System.IO; -using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; - -using MS.Internal; using MS.Internal.FontCache; -using MS.Internal.FontFace; using MS.Internal.PresentationCore; -using MS.Internal.Shaping; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FormattedText.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FormattedText.cs index 3bb8ea768d0..53ae8f0a493 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FormattedText.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FormattedText.cs @@ -2,28 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Implementation of FormattedText class. The FormattedText class is targeted at programmers -// needing to add some simple text to a MIL visual. -// -// - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.TextFormatting; -using System.Runtime.InteropServices; using MS.Internal; using MS.Internal.TextFormatting; -using MS.Internal.FontFace; - -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 //Allow suppression of Presharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeneralTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeneralTransform.cs index 3fa8cbf302c..1842021b0a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeneralTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeneralTransform.cs @@ -8,20 +8,7 @@ // Description: Declaration of the GeneralTransform class. // -using MS.Internal; -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; using MS.Internal.PresentationCore; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeneralTransformGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeneralTransformGroup.cs index f173e2e716c..588f29975a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeneralTransformGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeneralTransformGroup.cs @@ -4,24 +4,7 @@ // -using System; -using System.Windows; -using System.Windows.Media; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using MS.Internal; -using System.Windows.Media.Animation; -using System.Globalization; -using System.Text; -using System.Runtime.InteropServices; using System.Windows.Markup; -using System.Windows.Media.Composition; -using System.Diagnostics; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/AlignmentX.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/AlignmentX.cs index 1bb9e573c31..c519cd4d5cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/AlignmentX.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/AlignmentX.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/AlignmentY.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/AlignmentY.cs index 6d7a2fd9d56..72d67271ff8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/AlignmentY.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/AlignmentY.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ArcSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ArcSegment.cs index f78ef97d915..1dfaab1baf1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ArcSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ArcSegment.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BezierSegment.cs index 6fb2d145d20..21c9db73285 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BezierSegment.cs @@ -9,37 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media { sealed partial class BezierSegment : PathSegment diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCache.cs index 3097f36b190..519491fe957 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCache.cs @@ -9,36 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs index 625843e94dd..6745d75cea1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapCacheBrush.cs @@ -9,36 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapScalingMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapScalingMode.cs index 1973965165a..1cd6b1f0418 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapScalingMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BitmapScalingMode.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Brush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Brush.cs index 3cf3c162dfb..dbd7388f2d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Brush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Brush.cs @@ -9,36 +9,12 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushConverter.cs index c1c8467686c..e9765eb54c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushConverter.cs @@ -2,39 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// - -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; + using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushMappingMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushMappingMode.cs index cdd3d6ffb84..4591a4a4b7a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushMappingMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/BrushMappingMode.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheMode.cs index 3fa6d05b681..2a8cbe94169 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheMode.cs @@ -9,36 +9,12 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheModeConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheModeConverter.cs index b3ab8d62994..e4c0b4944fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheModeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CacheModeConverter.cs @@ -2,39 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// - -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; + using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CachingHint.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CachingHint.cs index 67c899e0190..bba1222a30f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CachingHint.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CachingHint.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ClearTypeHint.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ClearTypeHint.cs index 38133b41768..f466bf0924a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ClearTypeHint.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ClearTypeHint.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ColorInterpolationMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ColorInterpolationMode.cs index d8810c5ca7b..9dd201cbb5d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ColorInterpolationMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ColorInterpolationMode.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CombinedGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CombinedGeometry.cs index 79962674e84..7dc8cedc0cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CombinedGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/CombinedGeometry.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DashStyle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DashStyle.cs index a76d44b34e9..264f663b824 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DashStyle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DashStyle.cs @@ -10,35 +10,9 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollection.cs index eb789bb0e41..00ed4afa61d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollection.cs @@ -2,43 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollectionConverter.cs index 4ad0eb6f65b..75b2fe1862a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DoubleCollectionConverter.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Drawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Drawing.cs index b0c2d6c582c..65d4e74c9de 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Drawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Drawing.cs @@ -9,36 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingBrush.cs index f0ce48262e7..6561a9dd068 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingBrush.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingCollection.cs index 32096ea4bb8..f12ce84e5ba 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingCollection.cs @@ -2,51 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of Drawing objects. /// - - public sealed partial class DrawingCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContext.cs index 17eae6ba493..471b3e3e915 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContext.cs @@ -9,23 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContextDrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContextDrawingContextWalker.cs index 72ff841c658..a62064faaaf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContextDrawingContextWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContextDrawingContextWalker.cs @@ -9,23 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContextWalker.cs index 2ad288dbbda..ea4e7e9d25f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContextWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingContextWalker.cs @@ -9,23 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingGroup.cs index a881e9fc157..cc25b3c9732 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingGroup.cs @@ -10,35 +10,9 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingImage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingImage.cs index ec3363200fc..b09ba4d25c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/DrawingImage.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EdgeMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EdgeMode.cs index 493b8834e1d..fa91b74de25 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EdgeMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EdgeMode.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EllipseGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EllipseGeometry.cs index 9c0e5fc8ffe..786c53c9599 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EllipseGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/EllipseGeometry.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/FillRule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/FillRule.cs index 273d7b91507..71b724154a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/FillRule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/FillRule.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransform.cs index d45f59b286e..7a30ebcacd5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransform.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformCollection.cs index 89e1716ea2d..336f0f859a9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformCollection.cs @@ -2,51 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of GeneralTransform objects. /// - - public sealed partial class GeneralTransformCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformGroup.cs index f63a82dd16a..edfb98ab2a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeneralTransformGroup.cs @@ -10,35 +10,7 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Geometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Geometry.cs index 80ca94c2980..e35cdd8b4f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Geometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Geometry.cs @@ -9,36 +9,12 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCollection.cs index 64708d0427c..af893d344e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCollection.cs @@ -2,51 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of Geometry objects. /// - - public sealed partial class GeometryCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCombineMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCombineMode.cs index a7a78063a06..e8951fc9b77 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCombineMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryCombineMode.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryConverter.cs index 8a7584b5605..aa0b0db874e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryConverter.cs @@ -2,39 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// - -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; + using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryDrawing.cs index 03424309e09..5812bc773c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryDrawing.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryGroup.cs index d592fcd7e61..632bf429e87 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GeometryGroup.cs @@ -11,34 +11,8 @@ using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GlyphRunDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GlyphRunDrawing.cs index 6a4d940074b..1cc67f37582 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GlyphRunDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GlyphRunDrawing.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientBrush.cs index 6fc5c45aa92..c5c9d81ff58 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientBrush.cs @@ -10,35 +10,7 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientSpreadMethod.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientSpreadMethod.cs index b444c96ebdd..1843b2671af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientSpreadMethod.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientSpreadMethod.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStop.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStop.cs index bcbe31dd325..6195cd8de1e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStop.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStop.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStopCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStopCollection.cs index d8f512eb3dc..01c608eebc2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStopCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GradientStopCollection.cs @@ -2,51 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of GradientStop objects. /// - - public sealed partial class GradientStopCollection : Animatable, IFormattable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GuidelineSet.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GuidelineSet.cs index 3b37beb7301..dc904a6b93f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GuidelineSet.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/GuidelineSet.cs @@ -11,34 +11,9 @@ using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageBrush.cs index 59648556177..4ba293fdd6c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageBrush.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs index 281871c998e..8f7fa3a4eab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageDrawing.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageSource.cs index de5238ee81b..9888a541ba7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ImageSource.cs @@ -9,36 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32Collection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32Collection.cs index 1e15aaab176..821c02279f0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32Collection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32Collection.cs @@ -2,50 +2,24 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of ints. /// - [TypeConverter(typeof(Int32CollectionConverter))] [ValueSerializer(typeof(Int32CollectionValueSerializer))] // Used by MarkupWriter public sealed partial class Int32Collection : Freezable, IFormattable, IList, IList diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32CollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32CollectionConverter.cs index a9974bf4ecc..dc6986cf5b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32CollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Int32CollectionConverter.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineGeometry.cs index 040d5f81cc2..155d4b14adf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineGeometry.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineSegment.cs index ea9289c4169..c06ceb8fd1a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LineSegment.cs @@ -9,37 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media { sealed partial class LineSegment : PathSegment diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LinearGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LinearGradientBrush.cs index 9484c774ab0..c3cd0391d73 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LinearGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/LinearGradientBrush.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MatrixTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MatrixTransform.cs index 8285ee224b1..8f8137b8590 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MatrixTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MatrixTransform.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MediaTimeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MediaTimeline.cs index b44d8ad9037..599742a39c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MediaTimeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/MediaTimeline.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigure.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigure.cs index 23609974f23..89527ccfcaa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigure.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigure.cs @@ -11,34 +11,8 @@ using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollection.cs index 0ef8e4e1ad4..60698998a3b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollection.cs @@ -2,50 +2,24 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of PathFigure objects. /// - [TypeConverter(typeof(PathFigureCollectionConverter))] [ValueSerializer(typeof(PathFigureCollectionValueSerializer))] // Used by MarkupWriter public sealed partial class PathFigureCollection : Animatable, IFormattable, IList, IList diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollectionConverter.cs index 015265d17bd..a769fb7474c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathFigureCollectionConverter.cs @@ -2,39 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// - -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; + using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathGeometry.cs index 7641e462546..d5372443158 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathGeometry.cs @@ -11,34 +11,8 @@ using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegment.cs index 9f5cff69920..e5aaebeb006 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegment.cs @@ -9,36 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegmentCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegmentCollection.cs index 138f07ab41e..957af0692bf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegmentCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PathSegmentCollection.cs @@ -2,51 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of PathSegment objects. /// - - public sealed partial class PathSegmentCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Pen.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Pen.cs index 9ef339b0029..84c5b4773ad 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Pen.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Pen.cs @@ -9,36 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenDashCap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenDashCap.cs index 0c2705b16a2..88a9f2351d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenDashCap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenDashCap.cs @@ -7,10 +7,6 @@ // This file was generated, please do not edit it directly. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenLineCap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenLineCap.cs index 36d3a538979..e9a5a48d2e9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenLineCap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenLineCap.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenLineJoin.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenLineJoin.cs index da35ca5d8bd..438c931f600 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenLineJoin.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PenLineJoin.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollection.cs index 15e59695543..83db4df2921 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollection.cs @@ -2,50 +2,24 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of Points. /// - [TypeConverter(typeof(PointCollectionConverter))] [ValueSerializer(typeof(PointCollectionValueSerializer))] // Used by MarkupWriter public sealed partial class PointCollection : Freezable, IFormattable, IList, IList diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollectionConverter.cs index b223b0b7216..84f71936210 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PointCollectionConverter.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegment.cs index 727cb200ade..cc842a8a290 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegment.cs @@ -10,35 +10,7 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegmentFigureLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegmentFigureLogic.cs index cb2fda2d31a..cb7fca1ec41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegmentFigureLogic.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyBezierSegmentFigureLogic.cs @@ -12,21 +12,6 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Windows; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.ComponentModel.Design.Serialization; -using System.Windows.Media.Composition; -using System.Reflection; -using MS.Internal; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { #region PolyBezierSegment diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegment.cs index a69b28b3269..8d0cefe51fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegment.cs @@ -10,35 +10,7 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegmentFigureLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegmentFigureLogic.cs index e890d439016..6f6d9872a15 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegmentFigureLogic.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyLineSegmentFigureLogic.cs @@ -12,21 +12,6 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Windows; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.ComponentModel.Design.Serialization; -using System.Windows.Media.Composition; -using System.Reflection; -using MS.Internal; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { #region PolyLineSegment diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegment.cs index 2e4ac382a52..dee7ba0d893 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegment.cs @@ -10,35 +10,7 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegmentFigureLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegmentFigureLogic.cs index d808408efd0..1fb2d7e2cb5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegmentFigureLogic.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/PolyQuadraticBezierSegmentFigureLogic.cs @@ -12,21 +12,6 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Windows; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.ComponentModel.Design.Serialization; -using System.Windows.Media.Composition; -using System.Reflection; -using MS.Internal; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { #region PolyQuadraticBezierSegment diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/QuadraticBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/QuadraticBezierSegment.cs index a2d58d593e9..c7d0f93a7fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/QuadraticBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/QuadraticBezierSegment.cs @@ -9,37 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media { sealed partial class QuadraticBezierSegment : PathSegment diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RadialGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RadialGradientBrush.cs index 7fac94096a4..69e8d9d0299 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RadialGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RadialGradientBrush.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RectangleGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RectangleGeometry.cs index 612bb4e35fa..6809766e4af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RectangleGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RectangleGeometry.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RenderData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RenderData.cs index 16cf4d67b0e..76b770f447e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RenderData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RenderData.cs @@ -9,23 +9,10 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RenderDataDrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RenderDataDrawingContext.cs index 53f082da0de..35b76963d00 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RenderDataDrawingContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RenderDataDrawingContext.cs @@ -2,30 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs index 17b89b0bf11..14f63615e06 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Rotation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Rotation.cs index ee17ea0774a..2a21a069d40 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Rotation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Rotation.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ScaleTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ScaleTransform.cs index 4ac5d17741a..555e6eb0a43 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ScaleTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ScaleTransform.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SkewTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SkewTransform.cs index b90e90c1a2d..1c92424ebe1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SkewTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SkewTransform.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SolidColorBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SolidColorBrush.cs index b5f774453e3..6a87a4d602c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SolidColorBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SolidColorBrush.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/StreamGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/StreamGeometry.cs index d660147fce1..afc2d791928 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/StreamGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/StreamGeometry.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Stretch.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Stretch.cs index bbacfe349d6..04bd9f23bed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Stretch.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Stretch.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SweepDirection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SweepDirection.cs index daaafbca4da..6371dc7249e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SweepDirection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/SweepDirection.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffect.cs index 0f64e4ece3e..2f8e648666c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffect.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffectCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffectCollection.cs index 9c3252de274..1c7bebe1334 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffectCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextEffectCollection.cs @@ -2,51 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of TextEffect objects. /// - - public sealed partial class TextEffectCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextHintingMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextHintingMode.cs index f8925f1ec0f..f8c353742cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextHintingMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextHintingMode.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextRenderingMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextRenderingMode.cs index 4276fea5358..05ea684665b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextRenderingMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TextRenderingMode.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileBrush.cs index 5cb0e4d1a55..506203a1dae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileBrush.cs @@ -9,37 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media { abstract partial class TileBrush : Brush diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileMode.cs index 817b8bd2b0e..9998a15129d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TileMode.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ToleranceType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ToleranceType.cs index da4b3a4712c..f7090c5d55a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ToleranceType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/ToleranceType.cs @@ -9,12 +9,7 @@ // Please see MilCodeGen.html for more information. // -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Transform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Transform.cs index 4338eb7dc38..19bec01e268 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Transform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/Transform.cs @@ -9,36 +9,11 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformCollection.cs index 83072f655d4..615f1af218a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformCollection.cs @@ -2,51 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.KnownBoxes; using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of Transform objects. /// - - public sealed partial class TransformCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformConverter.cs index 1db7c545e7b..637e07a7dad 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformConverter.cs @@ -2,39 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// - -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; + using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformGroup.cs index 5bd76397aa5..c532ff43c0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TransformGroup.cs @@ -10,35 +10,8 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TranslateTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TranslateTransform.cs index c970a29a282..158b486f4f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TranslateTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/TranslateTransform.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollection.cs index 95fc56bfcba..58d183f8cd6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollection.cs @@ -2,50 +2,24 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { /// /// A collection of Vectors. /// - [TypeConverter(typeof(VectorCollectionConverter))] [ValueSerializer(typeof(VectorCollectionValueSerializer))] // Used by MarkupWriter public sealed partial class VectorCollection : Freezable, IFormattable, IList, IList diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollectionConverter.cs index 4277cbee238..7913810b30e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VectorCollectionConverter.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VideoDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VideoDrawing.cs index 79a7ac5027a..9d359fe3579 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VideoDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VideoDrawing.cs @@ -9,36 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VisualBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VisualBrush.cs index 1491a2e28fd..8129e403d0d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VisualBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/VisualBrush.cs @@ -9,36 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Effects; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Geometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Geometry.cs index 53051b902a6..1a1e8ad9597 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Geometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Geometry.cs @@ -8,26 +8,14 @@ // // -using System; using MS.Internal; using MS.Win32.PresentationCore; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Globalization; -using System.Security; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows; -using System.Text.RegularExpressions; using System.Windows.Media.Animation; using System.Runtime.InteropServices; -using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; -namespace System.Windows.Media +namespace System.Windows.Media { #region Geometry /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryCollection.cs index 0bb318cebd1..878a7d3086c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryCollection.cs @@ -7,23 +7,8 @@ // Description: Implementation of GeometryCollection // -using System; -using MS.Internal; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; using System.Collections; -using System.Collections.Generic; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Windows.Media.Composition; -using System.Text.RegularExpressions; using System.Windows.Media.Animation; -using System.Windows.Markup; -using System.Runtime.InteropServices; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryDrawing.cs index c5b5f10c67d..8f0ec191f65 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryDrawing.cs @@ -9,8 +9,6 @@ // content. // -using System.Diagnostics; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryGroup.cs index a186e2c4fd6..0f3d1c4d058 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryGroup.cs @@ -7,24 +7,7 @@ // Description: Implementation of GeometryGroup // -using System; -using MS.Internal; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Windows.Media.Composition; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; using System.Windows.Markup; -using System.Runtime.InteropServices; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryHitTestParameters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryHitTestParameters.cs index c3fe89417e6..688bf4b273f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryHitTestParameters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryHitTestParameters.cs @@ -4,17 +4,9 @@ // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; -using System.Security; - -using System.Collections; -using System.Diagnostics; using MS.Internal; -namespace System.Windows.Media +namespace System.Windows.Media { /// /// This is the class for specifying parameters hit testing with a geometry. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryHitTestResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryHitTestResult.cs index 6b11c27d671..59d1ee4ded9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryHitTestResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GeometryHitTestResult.cs @@ -4,16 +4,7 @@ // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; -using MS.Internal; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// This class returns the point and visual hit during a hit test pass. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRun.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRun.cs index f953acf4dc7..07bd1f1015c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRun.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRun.cs @@ -17,29 +17,16 @@ // Enable presharp pragma warning suppress directives. #pragma warning disable 1634, 1691 -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Text; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Converters; using System.Windows.Media.Composition; using System.Windows.Media.TextFormatting; using System.Windows.Markup; -using System.Runtime.InteropServices; using MS.Internal; using MS.Internal.FontCache; -using MS.Internal.FontFace; using MS.Internal.TextFormatting; using MS.Internal.Text.TextInterface; -using MS.Utility; -using System.Security; -using System.Windows.Interop; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRunDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRunDrawing.cs index 1dfae3fa367..4861cc92e38 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRunDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRunDrawing.cs @@ -8,8 +8,6 @@ // a GlyphRun. // -using System.Diagnostics; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphTypeface.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphTypeface.cs index 7275f7c7214..c7eca52c219 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphTypeface.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphTypeface.cs @@ -8,18 +8,11 @@ // Description: GlyphTypeface implementation // -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.IO; using System.Runtime.InteropServices; -using System.Security; - -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Composition; using System.Windows.Media.TextFormatting; using System.Windows.Markup; @@ -29,7 +22,7 @@ using MS.Internal.FontCache; using MS.Internal.FontFace; using MS.Internal.PresentationCore; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphsSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphsSerializer.cs index a16b65b982d..72b4622cceb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphsSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphsSerializer.cs @@ -5,24 +5,8 @@ // // -using System; -using System.Windows.Threading; -using System.Diagnostics; -using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; using System.Globalization; using System.Text; -using System.IO; -using System.Runtime.InteropServices; - -using MS.Internal; -using MS.Win32; -using Microsoft.Win32.SafeHandles; - -using System.Windows; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GradientBrush.cs index 78998c75592..b304dcb1299 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GradientBrush.cs @@ -11,19 +11,10 @@ // ways of interpreting gradient stops. // // - -using System; -using System.Diagnostics; -using System.ComponentModel; -using System.Windows; + using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using MS.Internal; -using System.Runtime.InteropServices; -using System.Windows.Media.Composition; -namespace System.Windows.Media +namespace System.Windows.Media { /// /// GradientBrush diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GradientStop.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GradientStop.cs index d87578cb306..9444318a926 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GradientStop.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GradientStop.cs @@ -11,19 +11,9 @@ // // -using MS.Internal; -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; -namespace System.Windows.Media +namespace System.Windows.Media { /// /// GradientStop - The gradient stop is a tuple consisting of an offset and a color. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GuidelineCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GuidelineCollection.cs index abde802c578..31b407ac04b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GuidelineCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GuidelineCollection.cs @@ -9,16 +9,8 @@ // used in rendering for better adjusting rendered figures to device pixel grid. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestDrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestDrawingContextWalker.cs index 5179a29159a..05a86e6f366 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestDrawingContextWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestDrawingContextWalker.cs @@ -10,20 +10,6 @@ // // -using MS.Internal; -using System; -using System.ComponentModel; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestFilterBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestFilterBehavior.cs index 0e9b9dbf12c..7dd6b62743e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestFilterBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestFilterBehavior.cs @@ -4,16 +4,7 @@ // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; -using MS.Internal; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// Behavior for filtering visuals while hit tesitng diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestParameters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestParameters.cs index cf1b609d19e..08d297feb05 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestParameters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestParameters.cs @@ -4,16 +4,7 @@ // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; -using MS.Internal; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// This is the base class for packing together parameters for a hit test pass. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestResult.cs index d627cd88784..058ff2c7db5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestResult.cs @@ -4,16 +4,7 @@ // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; -using MS.Internal; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// This base returns the visual that was hit during a hit test pass. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestResultBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestResultBehavior.cs index 5b1bdda3465..ed4960884c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestResultBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestResultBehavior.cs @@ -4,16 +4,7 @@ // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; -using MS.Internal; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// Enum controls behavior when a positive hit occurs during hit testing. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithGeometryDrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithGeometryDrawingContextWalker.cs index 0097ebc845a..681dac8ba77 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithGeometryDrawingContextWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithGeometryDrawingContextWalker.cs @@ -10,20 +10,7 @@ // // -using MS.Internal; -using System; -using System.ComponentModel; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithPointDrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithPointDrawingContextWalker.cs index 884e61bc1ef..474e0edfcb0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithPointDrawingContextWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithPointDrawingContextWalker.cs @@ -10,19 +10,7 @@ // // -using MS.Internal; -using System; -using System.ComponentModel; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HostVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HostVisual.cs index 283e33b893e..c092bb8c479 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HostVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HostVisual.cs @@ -2,29 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Host visual. -// +using System.Windows.Threading; +using System.Windows.Media.Composition; +using System.Collections; +using System.Threading; namespace System.Windows.Media { - using System; - using System.Windows.Threading; - using System.Windows.Media; - using System.Windows.Media.Composition; - using System.Diagnostics; - using System.Collections; - using System.Collections.Generic; - using MS.Internal; - using System.Resources; - using System.Runtime.InteropServices; - using MS.Win32; - using System.Threading; - - using SR=MS.Internal.PresentationCore.SR; - /// /// Host visual. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ICompositionTarget.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ICompositionTarget.cs index 561e13c6052..d11a6354c22 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ICompositionTarget.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ICompositionTarget.cs @@ -9,8 +9,6 @@ // composition targets with the MediaContext. // -using System; -using System.Diagnostics; using System.Windows.Media.Composition; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ICyclicBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ICyclicBrush.cs index 6cade145c76..3e05821889e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ICyclicBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ICyclicBrush.cs @@ -9,8 +9,6 @@ // objects whose content can point back into the Visual tree. // -using System; -using System.Windows.Media; using System.Windows.Media.Composition; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IDrawingContent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IDrawingContent.cs index d36da24fb59..eccbd39ede7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IDrawingContent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IDrawingContent.cs @@ -10,10 +10,9 @@ // or DrawingGroups. // -using System.Windows.Media; using System.Windows.Media.Composition; -namespace System.Windows.Media +namespace System.Windows.Media { /// /// IDrawingContent defines a common interface for representations diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IFreezeFreezables.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IFreezeFreezables.cs index fa55d0d04a3..508d70f6e63 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IFreezeFreezables.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IFreezeFreezables.cs @@ -5,8 +5,6 @@ // // -using System.Windows; - namespace System.Windows.Media { internal interface IFreezeFreezables diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageBrush.cs index f9afb879802..2a7e979991a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageBrush.cs @@ -9,22 +9,6 @@ // by use of an ImageSource. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageDrawing.cs index 6c4c5335dbd..672ead7497b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageDrawing.cs @@ -8,11 +8,6 @@ // an image into a destination rectangle. // - -using System.Diagnostics; -using System.Windows.Media.Imaging; -using MS.Internal; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageMetadata.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageMetadata.cs index eb9d15e08bd..a8900f26753 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageMetadata.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageMetadata.cs @@ -5,25 +5,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; -using System.IO; -using System.Security; -using System.Windows.Media.Imaging; -using System.Windows.Threading; -using System.Text; -using MS.Internal.PresentationCore; // SecurityHelper - namespace System.Windows.Media { #region ImageMetadata diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSource.cs index 443a7fe74da..7057e067f05 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSource.cs @@ -5,21 +5,10 @@ // // -using System; -using System.Collections; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Security; -using System.Runtime.InteropServices; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; using System.Windows.Markup; -using MS.Win32; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSourceConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSourceConverter.cs index 5a8a8ae74cd..49d540e56bc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSourceConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSourceConverter.cs @@ -2,25 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; using System.IO; -using System.Security; -using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; using System.Globalization; using System.Runtime.InteropServices; using System.Windows.Markup; -using MMCF = System.IO.Packaging; -using SR=MS.Internal.PresentationCore.SR; using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings @@ -316,5 +303,3 @@ private struct OBJECTHEADER { #endregion // ImageSourceConverter } - - diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSourceValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSourceValueSerializer.cs index 1d14d980a16..924dbfe1846 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSourceValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ImageSourceValueSerializer.cs @@ -10,11 +10,6 @@ // #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Text; - using System.Windows.Markup; using System.Windows.Media.Imaging; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCacheOption.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCacheOption.cs index 30589f7fa89..09c0b68786d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCacheOption.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCacheOption.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows.Media.Imaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCodecInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCodecInfo.cs index be666732c2a..2da17eb0970 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCodecInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCodecInfo.cs @@ -5,23 +5,9 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; -using System.IO; -using System.Security; -using System.Windows.Media.Imaging; using System.Text; -using MS.Internal.PresentationCore; // SecurityHelper namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCodecInfoInternal.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCodecInfoInternal.cs index 4896aea8ed6..9caa603f3bf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCodecInfoInternal.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCodecInfoInternal.cs @@ -5,22 +5,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using MS.Win32; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; -using System.IO; -using System.Windows.Media.Imaging; -using System.Text; - namespace System.Windows.Media.Imaging { #region BitmapCodecInfoInternal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCreateOptions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCreateOptions.cs index 966fd9977f6..347166a9ee1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCreateOptions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapCreateOptions.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows.Media.Imaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDecoder.cs index 3317723d168..ca0edcb0cfb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDecoder.cs @@ -2,34 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages -using System; using System.IO; using System.IO.Packaging; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; using System.Collections.ObjectModel; -using System.Reflection; -using System.Security; -using System.Text.RegularExpressions; using MS.Internal; -using MS.Internal.AppModel; using MS.Win32.PresentationCore; using Microsoft.Win32.SafeHandles; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Threading; using System.Windows.Threading; -using System.Windows.Media.Imaging; -using MS.Internal.PresentationCore; // SecurityHelper -using SR=MS.Internal.PresentationCore.SR; +using MS.Internal.PresentationCore; using System.Net; using System.Net.Cache; using System.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDownload.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDownload.cs index dc2a668f3d2..e2aadb1d9a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDownload.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDownload.cs @@ -2,32 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages -using System; using System.IO; -using System.Collections.Generic; using System.Collections; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using System.Threading; using System.Windows.Threading; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Security; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using MS.Win32.PresentationCore; -using MS.Internal.AppModel; -using MS.Internal.PresentationCore; -using SR=MS.Internal.PresentationCore.SR; using System.Net; using System.Net.Cache; using System.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapEncoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapEncoder.cs index 4a0fc5fdd47..ebfb262c206 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapEncoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapEncoder.cs @@ -2,27 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.IO; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Threading; -using System.Globalization; using System.Runtime.InteropServices; -using System.Windows.Media.Imaging; -using System.Security; using MS.Win32.PresentationCore; -using SR=MS.Internal.PresentationCore.SR; -using System.Diagnostics.CodeAnalysis; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrame.cs index ebc18b3755b..fb9b679fdfb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrame.cs @@ -2,29 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Security; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using MS.Win32; -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; using System.Windows.Markup; using System.Net.Cache; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrameDecode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrameDecode.cs index d4288874e1d..1527655d7a9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrameDecode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrameDecode.cs @@ -5,23 +5,8 @@ // // -using System; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using MS.Internal.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Security; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using MS.Win32.PresentationCore; #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrameEncode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrameEncode.cs index d8d5a630ad3..0eb490b9448 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrameEncode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapFrameEncode.cs @@ -5,22 +5,7 @@ // // -using System; -using System.Collections; using System.Collections.ObjectModel; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Security; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using MS.Win32; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapImage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapImage.cs index f3ad8e798f3..0fc131879ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapImage.cs @@ -2,28 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - - -using System; using System.IO; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Internal.PresentationCore; -using MS.Win32; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using SR=MS.Internal.PresentationCore.SR; using System.Windows.Markup; using System.Net.Cache; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapInitialize.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapInitialize.cs index 085bc4fe3d2..03e1dbb29ec 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapInitialize.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapInitialize.cs @@ -2,27 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - - -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using MS.Win32; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadata.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadata.cs index 752e50f4050..ae8f0353562 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadata.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadata.cs @@ -5,23 +5,12 @@ // // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections.Specialized; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; -using System.IO; -using System.Security; -using System.Windows.Media.Imaging; -using System.Windows.Threading; using System.Text; using MS.Internal.PresentationCore; // SecurityHelper diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadataBlob.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadataBlob.cs index 24c02140e69..de0e03f2773 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadataBlob.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadataBlob.cs @@ -5,25 +5,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; -using System.IO; -using System.Security; -using System.Windows.Media.Imaging; -using System.Windows.Threading; -using System.Text; -using MS.Internal.PresentationCore; // SecurityHelper - namespace System.Windows.Media.Imaging { #region BitmapMetadataBlob diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadataEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadataEnumerator.cs index b2780bec519..345fb4831ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadataEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadataEnumerator.cs @@ -2,23 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - // Allow suppression of certain presharp messages #pragma warning disable 1634, 1691 -using System; using System.Collections; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Security; -using System.Diagnostics; using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper using MS.Win32.PresentationCore; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Imaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapPalette.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapPalette.cs index 1f051c4851f..b4e2659a081 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapPalette.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapPalette.cs @@ -2,28 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Security; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using MS.Internal.PresentationCore; //SecurityHelper -using System.Diagnostics; using System.Windows.Threading; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Globalization; using System.Runtime.InteropServices; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Imaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapPalettes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapPalettes.cs index 23cbdfbb90d..0db3dac1c00 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapPalettes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapPalettes.cs @@ -5,16 +5,7 @@ // // -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSizeOptions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSizeOptions.cs index 667743a62c5..51bd639ce78 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSizeOptions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSizeOptions.cs @@ -2,20 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSource.cs index 2d5b8bb8d79..99908947ab1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSource.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; using System.IO; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Security; -using System.Net; using System.Runtime.InteropServices; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Win32; -using System.IO.Packaging; + using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSourceSafeMILHandle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSourceSafeMILHandle.cs index 0f53e6288bb..197979e32ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSourceSafeMILHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSourceSafeMILHandle.cs @@ -9,13 +9,9 @@ // A sub-class of SafeMILHandle that can estimate size for bitmap // source objects. -using System; -using System.Diagnostics; -using System.Security; using MS.Internal; -using MS.Win32; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapVisualManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapVisualManager.cs index b03617340e3..8174bcfc9a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapVisualManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapVisualManager.cs @@ -2,22 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Windows; -using System.Threading; using System.Windows.Threading; -using System.Diagnostics; -using System.Collections; -using System.Runtime.InteropServices; -using System.IO; using MS.Internal; -using System.Security; -using System.Windows.Media; using System.Windows.Media.Composition; -using SR=MS.Internal.PresentationCore.SR; using MS.Win32.PresentationCore; namespace System.Windows.Media.Imaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BmpBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BmpBitmapDecoder.cs index 02228c073ca..a0cced86a86 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BmpBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BmpBitmapDecoder.cs @@ -5,19 +5,9 @@ // // -using System; using System.IO; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using Microsoft.Win32.SafeHandles; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BmpBitmapEncoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BmpBitmapEncoder.cs index 28f3db6ec07..4127350365b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BmpBitmapEncoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BmpBitmapEncoder.cs @@ -5,18 +5,8 @@ // // -using System; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Windows.Media.Imaging; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/CachedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/CachedBitmap.cs index cb57ef068f2..ed5519621ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/CachedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/CachedBitmap.cs @@ -2,29 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - - -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/ColorConvertedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/ColorConvertedBitmap.cs index cacface1df8..9960e5cfdf1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/ColorConvertedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/ColorConvertedBitmap.cs @@ -2,28 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - - -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/CroppedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/CroppedBitmap.cs index df53e4027ff..f7721e4775d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/CroppedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/CroppedBitmap.cs @@ -2,28 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - - -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/FormatConvertedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/FormatConvertedBitmap.cs index 1246e94c2fa..5a4670ff811 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/FormatConvertedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/FormatConvertedBitmap.cs @@ -2,28 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - - -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/BitmapImage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/BitmapImage.cs index 3c0122b2fd2..1eaebf2270a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/BitmapImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/BitmapImage.cs @@ -9,26 +9,10 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; using System.IO; -using System.Collections; using System.ComponentModel; using System.Net.Cache; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/ColorConvertedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/ColorConvertedBitmap.cs index 817763939b6..337e9ac4442 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/ColorConvertedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/ColorConvertedBitmap.cs @@ -9,26 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.IO; -using System.Collections; -using System.ComponentModel; -using System.Net.Cache; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/CroppedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/CroppedBitmap.cs index fe044e4eff5..8966a32a253 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/CroppedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/CroppedBitmap.cs @@ -9,26 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.IO; -using System.Collections; -using System.ComponentModel; -using System.Net.Cache; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/FormatConvertedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/FormatConvertedBitmap.cs index aeac6fc9090..4c5a97dd56c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/FormatConvertedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/FormatConvertedBitmap.cs @@ -9,26 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.IO; -using System.Collections; -using System.ComponentModel; -using System.Net.Cache; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/TransformedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/TransformedBitmap.cs index 6a6bda2c61b..bd9b331725b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/TransformedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/Generated/TransformedBitmap.cs @@ -9,26 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.IO; -using System.Collections; -using System.ComponentModel; -using System.Net.Cache; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/GifBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/GifBitmapDecoder.cs index 04a9fd3d112..3ffc9094a73 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/GifBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/GifBitmapDecoder.cs @@ -5,19 +5,9 @@ // // -using System; using System.IO; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using Microsoft.Win32.SafeHandles; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/GifBitmapEncoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/GifBitmapEncoder.cs index fe2907cac83..56f4ccf34e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/GifBitmapEncoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/GifBitmapEncoder.cs @@ -5,19 +5,8 @@ // // -using System; -using System.Security; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Imaging; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/IconBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/IconBitmapDecoder.cs index c31af467997..f6be3aeeb4d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/IconBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/IconBitmapDecoder.cs @@ -5,19 +5,9 @@ // // -using System; using System.IO; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using Microsoft.Win32.SafeHandles; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/ImagingCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/ImagingCache.cs index 823fafefa5c..94cbebe226c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/ImagingCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/ImagingCache.cs @@ -5,23 +5,7 @@ // // -using System; -using System.IO; using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Security; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using MS.Win32; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/InplaceBitmapMetadataWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/InplaceBitmapMetadataWriter.cs index 114ab99eeba..157e9dd4803 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/InplaceBitmapMetadataWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/InplaceBitmapMetadataWriter.cs @@ -5,23 +5,8 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; -using System.IO; -using System.Security; -using System.Windows.Media.Imaging; -using System.Windows.Threading; -using System.Text; using MS.Internal.PresentationCore; // SecurityHelper namespace System.Windows.Media.Imaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/InteropBitmapSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/InteropBitmapSource.cs index 69a807928b5..3cb22a1aa29 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/InteropBitmapSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/InteropBitmapSource.cs @@ -6,24 +6,10 @@ // -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using MS.Internal.PresentationCore; // SecurityHelper -using SR=MS.Internal.PresentationCore.SR; using System.Windows.Media.Imaging; namespace System.Windows.Interop diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/JpegBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/JpegBitmapDecoder.cs index 47646c29177..822b4ba9e4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/JpegBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/JpegBitmapDecoder.cs @@ -5,19 +5,9 @@ // // -using System; using System.IO; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using Microsoft.Win32.SafeHandles; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/JpegBitmapEncoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/JpegBitmapEncoder.cs index a01ba35a9e4..ba96c2fb7a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/JpegBitmapEncoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/JpegBitmapEncoder.cs @@ -5,21 +5,8 @@ // // -using System; -using System.Security; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Imaging; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/LateBoundBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/LateBoundBitmapDecoder.cs index 63a2ff9718e..a66dfce3413 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/LateBoundBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/LateBoundBitmapDecoder.cs @@ -6,28 +6,8 @@ // #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages -using System; using System.IO; -using System.IO.Packaging; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; using System.Collections.ObjectModel; -using System.Reflection; -using System.Security; -using MS.Internal; -using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Threading; -using System.Windows.Threading; -using System.Windows.Media.Imaging; -using MS.Internal.PresentationCore; // SecurityHelper -using SR=MS.Internal.PresentationCore.SR; -using System.Net; using System.Net.Cache; namespace System.Windows.Media.Imaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PngBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PngBitmapDecoder.cs index 1cc709359f2..23f5fb6a348 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PngBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PngBitmapDecoder.cs @@ -5,19 +5,9 @@ // // -using System; using System.IO; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using Microsoft.Win32.SafeHandles; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PngBitmapEncoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PngBitmapEncoder.cs index e8272f17192..3aa2b327139 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PngBitmapEncoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PngBitmapEncoder.cs @@ -5,18 +5,8 @@ // // -using System; -using System.Security; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PropVariant.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PropVariant.cs index 3c5748ba293..4a5ac3bcd61 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PropVariant.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/PropVariant.cs @@ -5,25 +5,10 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Globalization; using System.Runtime.InteropServices; -using System.IO; -using System.Security; -using System.Windows.Media.Imaging; -using System.Windows.Media.Composition; -using System.Text; using MS.Internal.PresentationCore; -using System.Diagnostics.CodeAnalysis; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/RenderTargetBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/RenderTargetBitmap.cs index 52d6c410d3b..cf87a573029 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/RenderTargetBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/RenderTargetBitmap.cs @@ -2,29 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - - -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Imaging { #region RenderTargetBitmap diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TiffBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TiffBitmapDecoder.cs index 179e0e1d20d..0af4e977696 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TiffBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TiffBitmapDecoder.cs @@ -5,19 +5,9 @@ // // -using System; using System.IO; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using Microsoft.Win32.SafeHandles; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TiffBitmapEncoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TiffBitmapEncoder.cs index 30082564695..8f965626de9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TiffBitmapEncoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TiffBitmapEncoder.cs @@ -5,19 +5,8 @@ // // -using System; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Imaging; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TransformedBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TransformedBitmap.cs index 29bf51f839d..0ecc22e5748 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TransformedBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/TransformedBitmap.cs @@ -2,28 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - - -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnknownBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnknownBitmapDecoder.cs index e74ffde2eba..5baaeb9e16f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnknownBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnknownBitmapDecoder.cs @@ -5,19 +5,8 @@ // // -using System; using System.IO; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using Microsoft.Win32.SafeHandles; -using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnknownBitmapEncoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnknownBitmapEncoder.cs index d4f953d3596..106ec00ce29 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnknownBitmapEncoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnknownBitmapEncoder.cs @@ -5,18 +5,8 @@ // // -using System; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Windows.Media.Imaging; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnmanagedBitmapWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnmanagedBitmapWrapper.cs index 1c24a767263..47cd8597f9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnmanagedBitmapWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/UnmanagedBitmapWrapper.cs @@ -5,28 +5,6 @@ // // -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal.PresentationCore; - -using SR = MS.Internal.PresentationCore.SR; - - namespace System.Windows.Media.Imaging { internal sealed class UnmanagedBitmapWrapper : BitmapSource diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WmpBitmapDecoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WmpBitmapDecoder.cs index 4f3fdddfcf9..2063deca011 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WmpBitmapDecoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WmpBitmapDecoder.cs @@ -5,19 +5,9 @@ // // -using System; using System.IO; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using Microsoft.Win32.SafeHandles; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WmpBitmapEncoder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WmpBitmapEncoder.cs index dd6eff0f41b..2478a4b8deb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WmpBitmapEncoder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WmpBitmapEncoder.cs @@ -5,21 +5,8 @@ // // -using System; -using System.Collections; -using System.Security; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media.Imaging; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Imaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WriteableBitmap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WriteableBitmap.cs index 27a50dd75eb..ab96f9e8919 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WriteableBitmap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/WriteableBitmap.cs @@ -2,28 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; using MS.Win32.PresentationCore; -using System.Security; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using SR=MS.Internal.PresentationCore.SR; -using MS.Internal.PresentationCore; // SecurityHelper using System.Threading; namespace System.Windows.Media.Imaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IntersectionDetail.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IntersectionDetail.cs index 521ed20cf65..99f269b0f31 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IntersectionDetail.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/IntersectionDetail.cs @@ -9,11 +9,7 @@ // // -using System.Runtime.InteropServices; - -using System; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// IntersectionDetail - Indicates detailed information on the nature diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/InvalidWMPVersionException.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/InvalidWMPVersionException.cs index 97f728a7002..13f0fa646ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/InvalidWMPVersionException.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/InvalidWMPVersionException.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.Serialization; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Invokable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Invokable.cs index 1840eabe84a..5d4b44065fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Invokable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Invokable.cs @@ -4,9 +4,6 @@ // -using System.Windows.Media; -using System; - namespace System.Windows.Media { #region IInvokable diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineGeometry.cs index 93e1d68afe4..113f9d303fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineGeometry.cs @@ -4,26 +4,9 @@ // -using System; -using MS.Internal; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// This is the Geometry class for Lines. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineSegment.cs index f2e0c427f91..941fbdeb8e0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineSegment.cs @@ -4,25 +4,6 @@ // -using System; -using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LinearGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LinearGradientBrush.cs index a3e4d00da1f..f2204209af6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LinearGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LinearGradientBrush.cs @@ -10,20 +10,7 @@ // // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Runtime.InteropServices; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MILUtilities.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MILUtilities.cs index 63903b87783..a6ae8561157 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MILUtilities.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MILUtilities.cs @@ -5,16 +5,10 @@ // // -using System; -using System.Diagnostics; -using System.Security; -using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal; using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MatrixStack.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MatrixStack.cs index b288a389a37..aa8cc316faa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MatrixStack.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MatrixStack.cs @@ -4,11 +4,7 @@ // -using System; -using System.Diagnostics; -using System.Collections; using MS.Internal; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MatrixTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MatrixTransform.cs index d0de643ddff..0847b9394fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MatrixTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MatrixTransform.cs @@ -4,24 +4,7 @@ // -using System.Windows.Media; -using System; -using System.Windows; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Security; -using System.Collections; using MS.Internal; -using MS.Internal.PresentationCore; -using System.Windows.Media.Animation; -using System.Globalization; -using System.Text; -using System.Runtime.InteropServices; -using System.Windows.Media.Composition; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs index 44b35afb74b..00e222801f5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs @@ -2,37 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// The MediaContext class controls the media layer. -// - -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; using System.Threading; using System.Windows.Threading; -using System.Windows; using System.Windows.Input; using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using System.Windows.Media.Effects; - using MS.Internal; using MS.Utility; using MS.Win32; -using Microsoft.Win32.SafeHandles; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContextNotificationWindow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContextNotificationWindow.cs index 48734c3f5c9..ac1e3246ac7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContextNotificationWindow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContextNotificationWindow.cs @@ -2,33 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // A wrapper for a top-level hidden window that is used to process // messages broadcasted to top-level windows only (such as DWM's // WM_DWMCOMPOSITIONCHANGED). If the WPF application doesn't have // a top-level window (as it is the case for XBAP applications), // such messages would have been ignored. -// -using System; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using Microsoft.Win32; -using MS.Internal; -using MS.Internal.PresentationCore; using MS.Internal.Interop; using MS.Win32; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; -using DllImport=MS.Internal.PresentationCore.DllImport; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaPlayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaPlayer.cs index 167f17522ac..8cfa36faf00 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaPlayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaPlayer.cs @@ -2,34 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Threading; -using System.Security; -using System.Diagnostics; -using System.ComponentModel; -using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper -using MS.Win32; using System.Windows.Media.Animation; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows.Threading; -using System.Windows.Navigation; -using System.Runtime.InteropServices; -using System.IO; -using System.Security.AccessControl;//for semaphore access permissions -using System.Net; -using Microsoft.Win32; -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; - -// + // Disable the warnings that C# emmits when it finds pragmas it does not recognize, this is to // get rid of false positive PreSharp warning -// #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaPlayerState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaPlayerState.cs index de7dcbde464..f7fbc3ed54e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaPlayerState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaPlayerState.cs @@ -2,38 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Threading; -using System.Security; -using System.Diagnostics; -using System.ComponentModel; using MS.Internal; -using MS.Internal.PresentationCore; // SecurityHelper +using MS.Internal.PresentationCore; using MS.Win32; using System.IO.Packaging; -using System.Windows.Media.Animation; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; using System.Windows.Threading; using System.Windows.Navigation; -using System.Runtime.InteropServices; -using System.IO; -using System.Security.AccessControl;//for semaphore access permissions -using System.Net; -using Microsoft.Win32; -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; -// -// Disable the warnings that C# emmits when it finds pragmas it does not recognize, this is to -// get rid of false positive PreSharp warning -// -#pragma warning disable 1634, 1691 +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; +#pragma warning disable 1634, 1691 namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaSystem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaSystem.cs index 55e28ce421e..4e667e318ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaSystem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaSystem.cs @@ -2,30 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -//+---------------------------------------------------------------------------- -// -// // Abstract: // Media system holds the relation between an application // domain and the underlying transport system. -// - -using System; -using System.Windows.Threading; using System.Collections; -using System.Diagnostics; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using Microsoft.Win32; +using System.Windows.Threading; using MS.Internal; -using MS.Internal.FontCache; -using MS.Win32; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi; -using SafeNativeMethods=MS.Win32.PresentationCore.SafeNativeMethods; +using SafeNativeMethods = MS.Win32.PresentationCore.SafeNativeMethods; +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaTimeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaTimeline.cs index 95934e40efe..a44cf137bc2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaTimeline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaTimeline.cs @@ -2,24 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Diagnostics; using System.ComponentModel; -using MS.Internal; using System.Windows.Media.Animation; -using System.Windows.Media; -using System.Windows.Media.Composition; using System.Windows.Markup; -using System.Windows.Threading; -using System.Runtime.InteropServices; -using System.IO; -using System.Collections; -using System.Collections.Generic; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Parsers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Parsers.cs index b5a68487689..cf278d012d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Parsers.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Parsers.cs @@ -2,24 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// // Synopsis: Implements class Parsers for internal use of type converters -// -using System; -using System.Collections; -using System.Collections.Specialized; -using System.Diagnostics; -using MS.Internal; using System.ComponentModel; -using System.Globalization; using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Media.Imaging; -using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ParsersCommon.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ParsersCommon.cs index 7f5fcfd9aa1..885aec823ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ParsersCommon.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ParsersCommon.cs @@ -2,23 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// // Synopsis: Implements class Parsers for internal use of type converters // // This file contains all the code that is shared between PresentationBuildTasks and PresentationCore -// -// Changes to this file will likely result in a compiler update. -// +// Changes to this file will likely result in a compiler update. using System; -using System.Collections; -using System.Collections.Specialized; -using System.Diagnostics; -using MS.Internal; -using System.ComponentModel; -using System.Globalization; -using System.IO; - +using System.IO; #if PRESENTATION_CORE @@ -27,16 +17,14 @@ using System.Windows.Media.Animation; using System.Windows.Media.Imaging; using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; -using MS.Internal.Media; +using MS.Internal.Media; using TypeConverterHelper = System.Windows.Markup.TypeConverterHelper; namespace MS.Internal #elif PBTCOMPILER -using MS.Utility ; +using MS.Utility; using MS.Internal.Markup; using TypeConverterHelper = MS.Internal.Markup.TypeConverterHelper; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathFigure.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathFigure.cs index 06b2596be8a..ae0d9340831 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathFigure.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathFigure.cs @@ -2,27 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows.Media.Composition; -using System.Windows; -using System.Text.RegularExpressions; using System.Windows.Media.Animation; using System.Windows.Markup; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathFigureCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathFigureCollection.cs index f32703be6a5..14f825bdcde 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathFigureCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathFigureCollection.cs @@ -5,22 +5,8 @@ // // -using MS.Internal; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Text; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathGeometry.cs index 12a800b80bf..8e6ec842f1a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathGeometry.cs @@ -2,35 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Implementation of the class PathGeometry -// - -using System; using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using System.Text; -using System.Globalization; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; using System.Windows.Markup; -using System.Windows.Converters; -using System.Runtime.InteropServices; -using System.Security; -using MS.Win32; -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathSegment.cs index 6abb15d71f2..2cd80189876 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathSegment.cs @@ -4,22 +4,7 @@ // -using System; -using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Text.RegularExpressions; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathSegmentCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathSegmentCollection.cs index 8793913b810..03ba9b0ae85 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathSegmentCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathSegmentCollection.cs @@ -5,23 +5,9 @@ // // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Text; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathStreamGeometryContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathStreamGeometryContext.cs index 75f7f4e9d6e..d77e471d8cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathStreamGeometryContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathStreamGeometryContext.cs @@ -8,24 +8,7 @@ // flattened geometry stream. // -using MS.Internal; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Pen.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Pen.cs index c7aa3601dd4..3141dd7c848 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Pen.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Pen.cs @@ -12,16 +12,8 @@ // using MS.Internal; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Markup; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormat.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormat.cs index c6cbd8c88df..3ad6804d24a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormat.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormat.cs @@ -2,26 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages -using System; -using System.Security; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using MS.Win32; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; - -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; + +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; using System.Runtime.CompilerServices; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormatConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormatConverter.cs index b78200fae04..c34a4a1ba9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormatConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormatConverter.cs @@ -2,26 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; -using MS.Internal; -using System.Text; -using System.Collections; using System.Globalization; -using System.Windows; -using System.Windows.Media; -using System.Runtime.InteropServices; -using System.Diagnostics; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; -namespace System.Windows.Media +namespace System.Windows.Media { #region PixelFormatConverter //------------------------------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormats.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormats.cs index fc9b4f75b49..e74201e5ad9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormats.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PixelFormats.cs @@ -5,16 +5,7 @@ // // -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using System.Diagnostics; -using System.Windows.Media; -using System.Globalization; -using System.Runtime.InteropServices; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointCollection.cs index 24d954d41ff..bd84b1470c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointCollection.cs @@ -9,11 +9,8 @@ // // -using System.Windows; -using System.Windows.Media.Media3D; -using System; -using System.IO; -using MS.Internal.Media; +using System.IO; +using MS.Internal.Media; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointHitTestParameters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointHitTestParameters.cs index d5b94b0ea40..c23e7d36c4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointHitTestParameters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointHitTestParameters.cs @@ -5,16 +5,7 @@ // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; -using MS.Internal; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// This is the class for specifying parameters hit testing with a point. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointHitTestResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointHitTestResult.cs index 689c6655096..dd8122e8eab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointHitTestResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PointHitTestResult.cs @@ -4,16 +4,7 @@ // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; -using MS.Internal; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// This class returns the point and visual hit during a hit test pass. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyBezierSegment.cs index 8a4513c2b07..4000415913a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyBezierSegment.cs @@ -4,25 +4,6 @@ // -using System; -using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyLineSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyLineSegment.cs index 4c4452d32b1..38113b0c84b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyLineSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyLineSegment.cs @@ -4,25 +4,6 @@ // -using System; -using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyQuadraticBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyQuadraticBezierSegment.cs index 2d85067649c..0da40cf4385 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyQuadraticBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PolyQuadraticBezierSegment.cs @@ -4,25 +4,6 @@ // -using System; -using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/QuadraticBezierSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/QuadraticBezierSegment.cs index 5e86d38dce9..81108742b95 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/QuadraticBezierSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/QuadraticBezierSegment.cs @@ -4,25 +4,6 @@ // -using System; -using MS.Internal; -using MS.Internal.PresentationCore; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Diagnostics; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RadialGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RadialGradientBrush.cs index abe3fa8bda6..fbca4c86456 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RadialGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RadialGradientBrush.cs @@ -10,20 +10,7 @@ // // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs index 5c6316dc425..0bdd6e876df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs @@ -4,25 +4,10 @@ // -using System; using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Text; -using System.Globalization; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// This is the Geometry class for Rectangles and RoundedRectangles. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderCapability.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderCapability.cs index c13e8def800..f180b41364b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderCapability.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderCapability.cs @@ -10,9 +10,6 @@ // notification on change. // -using System; -using System.Diagnostics; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderContext.cs index 434e38e71e2..4014b1570fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderContext.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media.Composition; + // // // Description: @@ -10,17 +12,6 @@ namespace System.Windows.Media { - using System; - using System.Windows.Threading; - - using System.Collections; - using System.Diagnostics; - using System.Windows.Media; - using System.Windows.Media.Animation; - using System.Windows.Media.Composition; - using System.Runtime.InteropServices; - using MS.Internal; - /// /// This class accumulates state during a render pass of the scene. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderData.cs index 9c52ca58d0f..3a0472c0c9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderData.cs @@ -14,21 +14,10 @@ using MS.Internal; using MS.Utility; -using System; using System.Buffers; -using System.ComponentModel; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Media.Imaging; -using System.Windows.Media.Effects; -using System.Security; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderDataDrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderDataDrawingContext.cs index 4df120abcd3..6273c76ed28 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderDataDrawingContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderDataDrawingContext.cs @@ -4,17 +4,6 @@ -using System; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Threading; -using System.Windows.Media.Animation; -using System.Windows.Media; -using System.Windows.Media.Composition; -using System.Diagnostics; -using MS.Internal; -using System.Security; - //------------------------------------------------------------------------------ // This section lists various things that we could improve on the DrawingContext // class. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderOptions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderOptions.cs index 80cd4925525..ba243cf838e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderOptions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderOptions.cs @@ -10,10 +10,6 @@ // using MS.Win32.PresentationCore; - -using System; -using System.Diagnostics; -using System.Security; using System.Windows.Interop; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Renderer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Renderer.cs index 75eb9e33ad3..1fb3454a820 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Renderer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Renderer.cs @@ -9,20 +9,8 @@ // to a BitmapImage' case, and not when rendering to an HwndTarget. // -using System; -using System.Windows; -using System.Collections.Generic; -using System.Windows.Threading; - -using System.Diagnostics; - -using MS.Internal; -using System.Windows.Media; using System.Windows.Media.Composition; -using MS.Win32; -using System.Security; - namespace System.Windows.Media { static internal class Renderer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderingEventArgs.cs index 547670c2478..b599eed69aa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RenderingEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RequestCachePolicyConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RequestCachePolicyConverter.cs index 743bc40d780..5bdff2f53ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RequestCachePolicyConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RequestCachePolicyConverter.cs @@ -2,26 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; -using MS.Internal; -using System.Windows.Media; -using System.Text; -using System.Collections; using System.Globalization; -using System.Runtime.InteropServices; -using System.Security; using System.Net.Cache; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media -{ +{ /// /// RequestCachePolicyConverter Parses a RequestCachePolicy. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RotateTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RotateTransform.cs index f5530b96d92..456efadb23b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RotateTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RotateTransform.cs @@ -4,24 +4,6 @@ // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeMILHandle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeMILHandle.cs index a36ceeb364b..9df128f29d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeMILHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeMILHandle.cs @@ -8,8 +8,6 @@ // Description: // A safe way to deal with unmanaged MIL interface pointers. -using System; -using System.Security; using Microsoft.Win32.SafeHandles; using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeMILHandleMemoryPressure.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeMILHandleMemoryPressure.cs index ecfb22a7757..6ebe42e535a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeMILHandleMemoryPressure.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeMILHandleMemoryPressure.cs @@ -8,9 +8,6 @@ // Description: // Tracks the amount of native memory used by SafeMILHandle objects. -using System; -using System.Security; -using MS.Internal; using System.Threading; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeNativeMethodsMilCoreApi.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeNativeMethodsMilCoreApi.cs index 1dba7fe41c9..0f59f1135c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeNativeMethodsMilCoreApi.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeNativeMethodsMilCoreApi.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Runtime.InteropServices; + // // ABOUT THIS FILE: // -- This file contains native methods which are deemed SAFE for partial trust callers @@ -13,19 +15,6 @@ namespace MS.Win32.PresentationCore { - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System; - using System.Security; - using System.Collections; - using System.IO; - using System.Text; - using System.Windows.Media.Composition; - using MS.Internal.PresentationCore; - - using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; - using DllImport=MS.Internal.PresentationCore.DllImport; - internal static partial class SafeNativeMethods { internal static int MilCompositionEngine_InitializePartitionManager(int nPriority) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeReversePInvokeHandle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeReversePInvokeHandle.cs index 5cdefc1ce60..056de9ec34c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeReversePInvokeHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SafeReversePInvokeHandle.cs @@ -8,20 +8,10 @@ // Description: // A safe way to deal with unmanaged MIL interface pointers. -using System; -using System.IO; -using System.Security; -using System.Collections; -using System.Reflection; using MS.Internal; -using MS.Win32; -using System.Diagnostics; -using System.Windows.Media; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; using Microsoft.Win32.SafeHandles; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ScaleTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ScaleTransform.cs index 830ad3abcbe..ba9de030d5d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ScaleTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ScaleTransform.cs @@ -4,24 +4,7 @@ // -using System; -using System.Windows; -using System.Windows.Media; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Security; -using System.Collections; using MS.Internal; -using MS.Internal.PresentationCore; -using System.Windows.Media.Animation; -using System.Globalization; -using System.Text; -using System.Runtime.InteropServices; -using System.Windows.Media.Composition; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SkewTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SkewTransform.cs index b68954c50a3..c32bacb9a70 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SkewTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SkewTransform.cs @@ -4,24 +4,6 @@ // -using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SolidColorBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SolidColorBrush.cs index 2ba9684a852..4fae385472e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SolidColorBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/SolidColorBrush.cs @@ -2,33 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: This file contains the implementation of SolidColorBrush. -// The SolidColorBrush is the simplest of the Brushes. consisting -// as it does of just a color. -// -// - using MS.Internal; -using System; using System.IO; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; -namespace System.Windows.Media +namespace System.Windows.Media { /// /// SolidColorBrush diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamAsIStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamAsIStream.cs index bc77c468b4b..62fd460f39d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamAsIStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamAsIStream.cs @@ -2,24 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// #pragma warning disable 1634, 1691 // Allow suppression of certain presharp messages -using System.Windows.Media; -using System.Security; -using System; using MS.Internal; using MS.Win32; -using System.Buffers; -using System.Reflection; -using System.Collections; -using System.Diagnostics; using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometry.cs index 72efbe652be..313d03286ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometry.cs @@ -7,30 +7,9 @@ // Description: Implementation of the class StreamGeometry // -using System; using MS.Internal; -using MS.Internal.PresentationCore; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using System.Text; -using System.Globalization; -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Windows; -using System.Text.RegularExpressions; -using System.Windows.Media.Animation; -using System.Windows.Markup; -using System.Windows.Converters; -using System.Runtime.InteropServices; -using System.Security; -using MS.Win32; - -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometryContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometryContext.cs index e3f5fd66f89..a2a65f29543 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometryContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometryContext.cs @@ -2,18 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// // This class is used by the StreamGeometry class to generate an inlined, // flattened geometry stream. -// - -using MS.Internal; using System; -using System.Collections; using System.Collections.Generic; -using System.Security; - #if !PBTCOMPILER using System.Runtime.InteropServices; @@ -26,24 +19,22 @@ using System.Windows.Media.Imaging; using System.Windows.Media.Media3D; using System.Diagnostics; -using SR=MS.Internal.PresentationCore.SR; using MS.Internal.PresentationCore; namespace System.Windows.Media -#elif PBTCOMPILER - -using MS.Internal.Markup; +#elif PBTCOMPILER +using MS.Internal.Markup; namespace MS.Internal.Markup #endif { /// /// StreamGeometryContext - /// -#if ! PBTCOMPILER + /// +#if !PBTCOMPILER public abstract class StreamGeometryContext : DispatcherObject, IDisposable #else internal abstract class StreamGeometryContext : IDisposable diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StyleSimulations.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StyleSimulations.cs index d7c1476abe6..8eb7de6399f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StyleSimulations.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StyleSimulations.cs @@ -10,8 +10,6 @@ // // -using System; - namespace System.Windows.Media { // Compatibility warning: diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TextEffect.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TextEffect.cs index ae23738e0e3..aea416244db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TextEffect.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TextEffect.cs @@ -10,17 +10,7 @@ // -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; -using System.Collections; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Markup; -using System.ComponentModel; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TextEffectCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TextEffectCollection.cs index c1984a25ecf..5a1f182e486 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TextEffectCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TextEffectCollection.cs @@ -10,15 +10,8 @@ // -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; using System.Collections; -using System.Collections.Generic; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Markup; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TileBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TileBrush.cs index 814688efb1c..26d3dd7d4fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TileBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TileBrush.cs @@ -11,19 +11,10 @@ // are described by classes derived from TileBrush. // // - -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; + using System.Windows.Media.Composition; -using MS.Internal; -using System.Runtime.InteropServices; -namespace System.Windows.Media +namespace System.Windows.Media { /// /// TileBrush diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Transform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Transform.cs index 4adc95e5587..a6661882051 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Transform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Transform.cs @@ -11,19 +11,7 @@ \***************************************************************************/ using MS.Internal; -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Windows.Markup; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TransformGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TransformGroup.cs index 411c8faf5af..9944d8e35b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TransformGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TransformGroup.cs @@ -4,24 +4,7 @@ // -using System; -using System.Windows; -using System.Windows.Media; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using MS.Internal; -using System.Windows.Media.Animation; -using System.Globalization; -using System.Text; -using System.Runtime.InteropServices; using System.Windows.Markup; -using System.Windows.Media.Composition; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TranslateTransform.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TranslateTransform.cs index 3f8cf0551c3..7cc76904518 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TranslateTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/TranslateTransform.cs @@ -5,23 +5,6 @@ // using MS.Internal; -using MS.Internal.PresentationCore; -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Typeface.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Typeface.cs index 2e6bdae7db4..2333c6fcdd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Typeface.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Typeface.cs @@ -9,21 +9,12 @@ // // -using System; using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows; using System.Windows.Media.TextFormatting; -using System.Runtime.InteropServices; -using System.ComponentModel; using MS.Internal; using MS.Internal.FontFace; using MS.Internal.FontCache; -using MS.Internal.Shaping; using MS.Internal.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/UniqueEventHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/UniqueEventHelper.cs index 08e4b08cbea..8d36af20bd0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/UniqueEventHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/UniqueEventHelper.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/UnsafeNativeMethodsMilCoreApi.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/UnsafeNativeMethodsMilCoreApi.cs index c985cd93f84..40962845841 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/UnsafeNativeMethodsMilCoreApi.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/UnsafeNativeMethodsMilCoreApi.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// // ABOUT THIS FILE: // -- This file contains native methods which are deemed NOT SAFE in the sense that any usage of them // must be carefully reviewed. FXCop will flag callers of these for review. @@ -11,23 +10,12 @@ // -- Put methods in here when a stack walk is innappropriate due to performance concerns using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; -using System.Runtime.ConstrainedExecution; -using System; using MS.Internal; -using MS.Internal.PresentationCore; -using System.Security; -using System.Collections; -using System.IO; using System.Text; using System.Windows.Media.Composition; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows; -using MS.Win32; -using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; - -using DllImport = MS.Internal.PresentationCore.DllImport; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VideoDrawing.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VideoDrawing.cs index 83aaaffdc98..bc4b815af57 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VideoDrawing.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VideoDrawing.cs @@ -8,8 +8,6 @@ // video into a destination rectangle. // -using System.Diagnostics; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Visual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Visual.cs index aecae3285aa..280aee3e258 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Visual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Visual.cs @@ -2,34 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Defines a node in the composition scene graph. -// -using System; -using System.Security; using System.Windows.Threading; -using MS.Win32; using System.Windows.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Media.Effects; -using System.Diagnostics; -using System.Collections; using System.Windows.Interop; -using System.Collections.Generic; using MS.Internal; using MS.Internal.Media; using MS.Internal.Media3D; -using System.Resources; -using MS.Utility; -using System.Runtime.InteropServices; - -using SR=MS.Internal.PresentationCore.SR; //------------------------------------------------------------------------------ // This section lists various things that we could improve on the Visual class. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualBrush.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualBrush.cs index e7b3268afac..ea98a166d61 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualBrush.cs @@ -11,20 +11,11 @@ // // -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Threading; -using MS.Internal; -namespace System.Windows.Media +namespace System.Windows.Media { /// /// VisualBrush - This TileBrush defines its content as a Visual diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualCollection.cs index ba16e620b96..34a759f487d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualCollection.cs @@ -2,26 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // The VisualCollection implementation is based on the // CLR's Lightning ArrayList implementation. -// -using MS.Win32; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Threading; - -using System; -using System.Diagnostics; using System.Collections; using MS.Internal; -using System.Runtime.InteropServices; - -using SR=MS.Internal.PresentationCore.SR; //------------------------------------------------------------------------------ // - There is an exception thrown inside of ConnectChild which could render diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualProxy.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualProxy.cs index 17456dab43a..d6ee778f728 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualProxy.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualProxy.cs @@ -10,14 +10,6 @@ namespace System.Windows.Media.Composition { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows; - using System.Windows.Media; - - /// /// Mapping between a visual and its handles on different channels. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualTarget.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualTarget.cs index 7fd6cd2e87d..aff08d20909 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualTarget.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualTarget.cs @@ -8,12 +8,7 @@ // // -using System.Windows.Media; using System.Windows.Media.Composition; -using System.Security; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualTreeHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualTreeHelper.cs index c7fd0e505d9..a59166ca899 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualTreeHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/VisualTreeHelper.cs @@ -4,20 +4,11 @@ // -using System; -using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; -using System.Windows.Threading; using System.Windows.Media.Effects; - -using System.Collections; -using System.Diagnostics; using MS.Internal; using MS.Internal.Media; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/brushes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/brushes.cs index a91dd4ec56a..21381c4d63b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/brushes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/brushes.cs @@ -9,12 +9,7 @@ // // -using System.Windows.Media; -using MS.Internal; - -using System; - -namespace System.Windows.Media +namespace System.Windows.Media { /// /// Brushes - A collection of well-known SolidColorBrushes diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaclock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaclock.cs index 1146c970713..ae946039eac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaclock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaclock.cs @@ -5,24 +5,8 @@ // // -using System; -using System.Diagnostics; -using System.ComponentModel; -using MS.Internal; -using MS.Win32; using System.Windows.Media.Animation; -using System.Windows.Media; -using System.Windows.Media.Composition; using System.Windows.Markup; -using System.Security; -using MS.Internal.PresentationCore; // SecurityHelper -using System.Windows.Threading; - -using System.Runtime.InteropServices; -using System.IO; - -using SR=MS.Internal.PresentationCore.SR; -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventargs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventargs.cs index cdb93f372d6..1cf0eff7a56 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventargs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventargs.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows.Media { #region ExceptionEventArgs diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventshelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventshelper.cs index a783a8627d0..056cee85b76 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventshelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventshelper.cs @@ -5,21 +5,10 @@ // // -using System; using System.Text; -using System.Diagnostics; -using System.ComponentModel; using MS.Internal; -using System.Windows.Media.Animation; -using System.Windows.Media; -using System.Windows.Media.Composition; using System.Windows.Threading; -using System.Runtime.InteropServices; using System.IO; -using System.Collections; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/safemediahandle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/safemediahandle.cs index 3c3ad0691d6..3e486c425ad 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/safemediahandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/safemediahandle.cs @@ -5,20 +5,9 @@ // // -using System; -using System.IO; -using System.Security; -using System.Collections; -using System.Reflection; using MS.Internal; -using MS.Win32; -using System.Diagnostics; -using System.Windows.Media; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using Microsoft.Win32.SafeHandles; - -using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; + +using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterBufferReference.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterBufferReference.cs index 6c11e353d40..347f456d673 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterBufferReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterBufferReference.cs @@ -12,11 +12,7 @@ // -using System; -using System.Diagnostics; using MS.Internal; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterHit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterHit.cs index 39ceebb1748..d609778ea07 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterHit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterHit.cs @@ -16,8 +16,6 @@ #region Using directives -using System; - #endregion namespace System.Windows.Media.TextFormatting diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterString.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterString.cs index d5cd47a4102..d24df1feeda 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterString.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CharacterString.cs @@ -12,11 +12,7 @@ // -using System; -using System.Diagnostics; -using System.Security; using MS.Internal; -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media.TextFormatting diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CultureSpecificCharacterBufferRange.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CultureSpecificCharacterBufferRange.cs index cde95d10861..4e2a1ebe723 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CultureSpecificCharacterBufferRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/CultureSpecificCharacterBufferRange.cs @@ -7,11 +7,7 @@ // Description: CultureSpecificCharacterBufferRange class // -using System; using System.Globalization; -using System.Windows.Media.TextFormatting; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/IndexedGlyphRun.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/IndexedGlyphRun.cs index 4b7e055e9e8..386b93613e6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/IndexedGlyphRun.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/IndexedGlyphRun.cs @@ -9,9 +9,6 @@ // // -using System; -using System.Windows.Media; - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/MinMaxParagraphWidth.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/MinMaxParagraphWidth.cs index 9172dffa795..fc4c4f46577 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/MinMaxParagraphWidth.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/MinMaxParagraphWidth.cs @@ -12,12 +12,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/NumberSubstitution.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/NumberSubstitution.cs index 4c93802b423..dd0d8c2e3dc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/NumberSubstitution.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/NumberSubstitution.cs @@ -2,23 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: Number substitution related types -// -// Spec: Cultural%20digit%20substitution.htm -// -// - - -using System; using System.Globalization; using System.ComponentModel; -using System.Windows; -using MS.Internal.FontCache; // for HashFn - -using SR = MS.Internal.PresentationCore.SR; +using MS.Internal.FontCache; // Allow suppression of presharp warnings #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextBounds.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextBounds.cs index afb92798706..da7f78409b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextBounds.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextBounds.cs @@ -11,12 +11,6 @@ // // - -using System; -using System.Collections.Generic; -using System.Windows; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextBreakpoint.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextBreakpoint.cs index 9aaae8b2970..3ea33110d37 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextBreakpoint.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextBreakpoint.cs @@ -13,10 +13,6 @@ // -using System; -using System.Security; - -using MS.Internal; using MS.Internal.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextCharacters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextCharacters.cs index 90d19a3b39f..faa022b4acd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextCharacters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextCharacters.cs @@ -12,19 +12,10 @@ // -using System; -using System.Diagnostics; using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Security; -using System.Windows; -using MS.Internal; using MS.Internal.Shaping; using MS.Internal.TextFormatting; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextCollapsingProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextCollapsingProperties.cs index 7194c78ca74..7cd3b912d89 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextCollapsingProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextCollapsingProperties.cs @@ -11,12 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEmbeddedObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEmbeddedObject.cs index 774e12dc494..6f4a012f2e9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEmbeddedObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEmbeddedObject.cs @@ -11,14 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; -using System.Windows.Media; -using MS.Internal.TextFormatting; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfLine.cs index 828db4da5d6..e39bea591f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfLine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfLine.cs @@ -11,13 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfParagraph.cs index 475196bcc74..8d8d5b93952 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfParagraph.cs @@ -11,12 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfSegment.cs index dc7ee9e86a5..9eba1c39447 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextEndOfSegment.cs @@ -11,14 +11,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Media; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextFormatter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextFormatter.cs index 909cd9b96a5..dede8b15851 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextFormatter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextFormatter.cs @@ -12,9 +12,7 @@ // -using System; using System.Windows.Threading; -using System.Collections.Generic; using MS.Internal; using MS.Internal.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextFormatterContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextFormatterContext.cs index 40f18bd650e..4834fdc1641 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextFormatterContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextFormatterContext.cs @@ -2,33 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -//+----------------------------------------------------------------------- -// -// -// -// Contents: Implementation of TextFormatter context -// -// - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Threading; -using System.Security; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; - using MS.Internal; using MS.Internal.TextFormatting; -using IndexedGlyphRun = System.Windows.Media.TextFormatting.IndexedGlyphRun; -using SR=MS.Internal.PresentationCore.SR; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextHidden.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextHidden.cs index 0a78596c37c..18b539da96c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextHidden.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextHidden.cs @@ -11,13 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLexicalBreaks.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLexicalBreaks.cs index 7664c064ac0..789fb37eee4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLexicalBreaks.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLexicalBreaks.cs @@ -10,9 +10,6 @@ // // -using System; -using System.Globalization; - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLexicalService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLexicalService.cs index 8500d09ab4a..e1b3b2f0d47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLexicalService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLexicalService.cs @@ -10,7 +10,6 @@ // // -using System; using System.Globalization; namespace System.Windows.Media.TextFormatting diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLine.cs index 52161106ada..036b5803d74 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLine.cs @@ -11,12 +11,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Media; using MS.Internal.TextFormatting; namespace System.Windows.Media.TextFormatting diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLineBreak.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLineBreak.cs index a2ecbb8a65b..16c8796a066 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLineBreak.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextLineBreak.cs @@ -2,28 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Contents: Text properties and state at the point where text is broken // by the line breaking process, which may need to be carried over // when formatting the next line. -// -// Spec: Text Formatting API.doc -// -// - -using System; -using System.Security; -using System.Collections; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Media; -using MS.Internal; -using MS.Internal.TextFormatting; - -using SR = MS.Internal.PresentationCore.SR; +using MS.Internal.TextFormatting; namespace System.Windows.Media.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextMarkerProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextMarkerProperties.cs index 941d7dd4b7c..9055ba6505d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextMarkerProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextMarkerProperties.cs @@ -11,12 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextModifier.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextModifier.cs index 833150f9b0e..446edd16809 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextModifier.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextModifier.cs @@ -11,13 +11,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Media; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextModifierScope.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextModifierScope.cs index f7a0d6e41cd..03369259ee2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextModifierScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextModifierScope.cs @@ -11,12 +11,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Windows; -using System.Windows.Media; - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextParagraphCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextParagraphCache.cs index 9fda4dbab17..d04ab3b4316 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextParagraphCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextParagraphCache.cs @@ -2,28 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Contents: Cache object of paragraph content used to improve performance // of optimal paragraph formatting // // Spec: Text Formatting API.doc -// -// - -using System; -using System.Runtime.InteropServices; -using System.Diagnostics; -using System.Collections.Generic; -using System.Security; -using System.Windows; -using System.Windows.Media; using MS.Internal; using MS.Internal.TextFormatting; -using SR = MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextParagraphProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextParagraphProperties.cs index 51de4089a24..c2d236ab242 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextParagraphProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextParagraphProperties.cs @@ -11,10 +11,6 @@ // // -using System; -using System.Collections.Generic; -using System.Windows; - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRun.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRun.cs index da8c900a6ff..f5981b2ccb6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRun.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRun.cs @@ -11,14 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; -using System.Windows.Media; -using MS.Internal.TextFormatting; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunCache.cs index 55ab8949b5b..5215be9a613 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunCache.cs @@ -12,9 +12,6 @@ // -using System; -using System.Collections.Generic; - using MS.Internal.TextFormatting; namespace System.Windows.Media.TextFormatting diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunProperties.cs index a421fc7a0de..98b6f009a89 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunProperties.cs @@ -12,10 +12,7 @@ // -using System; using System.Globalization; -using System.Windows; -using MS.Internal; namespace System.Windows.Media.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunTypographyProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunTypographyProperties.cs index 3c4078bcf17..e9c95746bec 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunTypographyProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextRunTypographyProperties.cs @@ -12,10 +12,7 @@ // -using System; -using System.Windows; using MS.Internal.Text.TextInterface; -using MS.Internal.Shaping; namespace System.Windows.Media.TextFormatting { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSimpleMarkerProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSimpleMarkerProperties.cs index 19efa3f1095..524aa79a00b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSimpleMarkerProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSimpleMarkerProperties.cs @@ -2,23 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: Generic implementation of text marker properties -// -// Spec: Text Formatting API.doc -// -// - - -using System; -using System.Collections; -using System.Windows; using MS.Internal.TextFormatting; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.TextFormatting { /// @@ -29,7 +14,6 @@ public class TextSimpleMarkerProperties : TextMarkerProperties private double _offset; private TextSource _textSource; - /// /// Construct a text marker object /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSource.cs index de9d484286e..d0bab1b331f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSource.cs @@ -11,10 +11,6 @@ // // - -using System; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSpan.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSpan.cs index 99b1f7cc035..78feaf150ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSpan.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextSpan.cs @@ -11,12 +11,6 @@ // // - -using System; -using System.Collections.Generic; -using System.Diagnostics; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTabProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTabProperties.cs index 4fbb5f91333..37e2a69a316 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTabProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTabProperties.cs @@ -11,12 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTrailingCharacterEllipsis.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTrailingCharacterEllipsis.cs index a32a08c22fd..637d075dc8a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTrailingCharacterEllipsis.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTrailingCharacterEllipsis.cs @@ -11,12 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTrailingWordEllipsis.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTrailingWordEllipsis.cs index 683020d6199..4b4aca21863 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTrailingWordEllipsis.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/textformatting/TextTrailingWordEllipsis.cs @@ -11,12 +11,6 @@ // // - -using System; -using System.Collections; -using System.Windows; - - namespace System.Windows.Media.TextFormatting { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AffineTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AffineTransform3D.cs index 824ff3024fc..614e092423f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AffineTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AffineTransform3D.cs @@ -11,8 +11,6 @@ // // -using System; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AmbientLight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AmbientLight.cs index a329d838b8d..dcf21ff35c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AmbientLight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AmbientLight.cs @@ -11,13 +11,6 @@ // // -using System; -using System.Windows.Media; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AxisAngleRotation3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AxisAngleRotation3D.cs index d8738ddac34..712f05623d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AxisAngleRotation3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/AxisAngleRotation3D.cs @@ -5,7 +5,6 @@ // // -using System; using MS.Internal; namespace System.Windows.Media.Media3D diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Camera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Camera.cs index 39643acde46..f0ba82bca80 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Camera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Camera.cs @@ -5,11 +5,7 @@ // // -using System; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ContainerUIElement3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ContainerUIElement3D.cs index ab4a564325c..9bac8df6047 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ContainerUIElement3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ContainerUIElement3D.cs @@ -8,18 +8,9 @@ // // -using MS.Internal; -using MS.Internal.Media; -using MS.Internal.Media3D; -using System; -using System.Diagnostics; -using System.Collections.Specialized; using System.ComponentModel; using System.Windows.Automation.Peers; -using System.Windows.Media.Composition; using System.Windows.Markup; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Matrix3DValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Matrix3DValueSerializer.cs index e617d9a51d5..8e36638c27c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Matrix3DValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Matrix3DValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point3DCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point3DCollectionValueSerializer.cs index 6bc37722190..1d23344d728 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point3DCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point3DCollectionValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point3DValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point3DValueSerializer.cs index 1464c5db770..0cd4d07afed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point3DValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point3DValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point4DValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point4DValueSerializer.cs index cd07c14c0fe..19fae559b4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point4DValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Point4DValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/QuaternionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/QuaternionValueSerializer.cs index 3abb25f5cc6..b9e6f68b9ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/QuaternionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/QuaternionValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Rect3DValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Rect3DValueSerializer.cs index dc26bf24bdd..47f5627958d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Rect3DValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Rect3DValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Size3DValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Size3DValueSerializer.cs index 06f81d33f3d..4857164f5dd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Size3DValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Size3DValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Vector3DCollectionValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Vector3DCollectionValueSerializer.cs index 28c61e01e25..c051f1604fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Vector3DCollectionValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Vector3DCollectionValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Vector3DValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Vector3DValueSerializer.cs index cb2d254586b..dfd84600ef9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Vector3DValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Converters/Generated/Vector3DValueSerializer.cs @@ -9,28 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/DiffuseMaterial.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/DiffuseMaterial.cs index 136d7bc603f..983a641872b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/DiffuseMaterial.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/DiffuseMaterial.cs @@ -8,16 +8,6 @@ // Description: 3D diffuse material // - -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/DirectionalLight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/DirectionalLight.cs index 1c63b25d94d..f2a74788be8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/DirectionalLight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/DirectionalLight.cs @@ -11,13 +11,6 @@ // // -using System; -using System.Windows.Media; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/EmissiveMaterial.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/EmissiveMaterial.cs index 9995276743f..25969bdfefd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/EmissiveMaterial.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/EmissiveMaterial.cs @@ -10,15 +10,6 @@ // See spec at *** FILL IN LATER *** // -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform2DTo3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform2DTo3D.cs index 1e764731467..55cdf3e3f9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform2DTo3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform2DTo3D.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: Declaration of the GeneralTransform2DTo3D class. -// - -using System.Diagnostics; - -using System.Windows.Media; -using System.Windows.Media.Animation; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3D.cs index 8b0c82d28b7..32d72d551b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3D.cs @@ -8,20 +8,7 @@ // Description: Declaration of the GeneralTransform3D class. // -using MS.Internal; -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Markup; -using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; namespace System.Windows.Media.Media3D diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3DGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3DGroup.cs index 3a095a6329a..926e1c7e5b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3DGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3DGroup.cs @@ -4,24 +4,7 @@ // -using System; -using System.Windows; -using System.Windows.Media; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using MS.Internal; -using System.Windows.Media.Animation; -using System.Globalization; -using System.Text; -using System.Runtime.InteropServices; using System.Windows.Markup; -using System.Windows.Media.Composition; -using System.Diagnostics; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3DTo2D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3DTo2D.cs index 0aa41944241..f094f668603 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3DTo2D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeneralTransform3DTo2D.cs @@ -2,16 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: Declaration of the GeneralTransform3DTo2D class. -// - -using System.Windows.Media; -using System.Windows.Media.Animation; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AffineTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AffineTransform3D.cs index 6b8bb4a0f81..b84f3a86806 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AffineTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AffineTransform3D.cs @@ -9,33 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Media3D { abstract partial class AffineTransform3D : Transform3D diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AmbientLight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AmbientLight.cs index 660760932f8..cf67e5fff5c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AmbientLight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AmbientLight.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AxisAngleRotation3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AxisAngleRotation3D.cs index d7f7590d3ea..fbc545319ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AxisAngleRotation3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/AxisAngleRotation3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Camera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Camera.cs index 428348f22c6..59732bd5e7a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Camera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Camera.cs @@ -9,32 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/DiffuseMaterial.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/DiffuseMaterial.cs index ef9a21f3485..8ad3cdbba7f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/DiffuseMaterial.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/DiffuseMaterial.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/DirectionalLight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/DirectionalLight.cs index 69eff2f0f40..bc141416c90 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/DirectionalLight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/DirectionalLight.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/EmissiveMaterial.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/EmissiveMaterial.cs index 4deb1aedc51..e73f8421e82 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/EmissiveMaterial.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/EmissiveMaterial.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3D.cs index 87eeb1232d4..0ddd2fc0591 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3DCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3DCollection.cs index d24bd87e1c9..68ae2a86a88 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3DCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3DCollection.cs @@ -2,47 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { /// /// A collection of GeneralTransform3D objects. /// - - public sealed partial class GeneralTransform3DCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3DGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3DGroup.cs index 7a86707782f..8c0c00ab138 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3DGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeneralTransform3DGroup.cs @@ -10,31 +10,7 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Geometry3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Geometry3D.cs index ff03d7c712a..721b4efffc5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Geometry3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Geometry3D.cs @@ -9,32 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeometryModel3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeometryModel3D.cs index 11126a64fcc..f335f5c8745 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeometryModel3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/GeometryModel3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Light.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Light.cs index ad36dc44eb1..4d684a39015 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Light.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Light.cs @@ -9,33 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Media3D { abstract partial class Light : Model3D diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Material.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Material.cs index cc4914ce303..7517c67fca0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Material.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Material.cs @@ -9,32 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MaterialCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MaterialCollection.cs index fb21b82122d..2c1236fb2af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MaterialCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MaterialCollection.cs @@ -2,47 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { /// /// A collection of Material objects. /// - - public sealed partial class MaterialCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MaterialGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MaterialGroup.cs index d30e4777198..49e66c7b1f1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MaterialGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MaterialGroup.cs @@ -10,31 +10,8 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Matrix3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Matrix3D.cs index 4d9d24f127b..0ee4c29493a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Matrix3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Matrix3D.cs @@ -10,31 +10,10 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Matrix3DConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Matrix3DConverter.cs index 15870b19aeb..4431bb52837 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Matrix3DConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Matrix3DConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MatrixCamera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MatrixCamera.cs index 8d76a9d820c..7e293e1fd94 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MatrixCamera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MatrixCamera.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MatrixTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MatrixTransform3D.cs index e1c2d149960..1c46bdea358 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MatrixTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MatrixTransform3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MeshGeometry3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MeshGeometry3D.cs index 713f37c5d82..6cdcdd2efab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MeshGeometry3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/MeshGeometry3D.cs @@ -10,31 +10,8 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3D.cs index 6abee12c6d7..9a43339679b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3D.cs @@ -9,32 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3DCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3DCollection.cs index 2a677e2f608..0df553fc146 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3DCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3DCollection.cs @@ -2,47 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { /// /// A collection of Model3D objects. /// - - public sealed partial class Model3DCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3DGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3DGroup.cs index 9b84f16db6c..b195fdb312f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3DGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Model3DGroup.cs @@ -10,31 +10,8 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/OrthographicCamera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/OrthographicCamera.cs index a0f75c8fa8e..797c6221d2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/OrthographicCamera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/OrthographicCamera.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PerspectiveCamera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PerspectiveCamera.cs index 28c61c0f07a..f761d65363f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PerspectiveCamera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PerspectiveCamera.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3D.cs index 2467d386c27..6566a00084e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3D.cs @@ -10,31 +10,10 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DCollection.cs index 9a7c56e29b9..f2eff13c443 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DCollection.cs @@ -2,39 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DCollectionConverter.cs index e995dba13da..0a62f28ef10 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DCollectionConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DConverter.cs index 644cc18e96a..5f2526131df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point3DConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point4D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point4D.cs index d7c178e923c..0a80374010e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point4D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point4D.cs @@ -10,31 +10,10 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point4DConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point4DConverter.cs index 5d79c455f7f..9ba81adf824 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point4DConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Point4DConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PointLight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PointLight.cs index a992f59de52..6bd27edb363 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PointLight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PointLight.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PointLightBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PointLightBase.cs index 2b53ed15629..20fd891db63 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PointLightBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/PointLightBase.cs @@ -9,33 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Media3D { abstract partial class PointLightBase : Light diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ProjectionCamera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ProjectionCamera.cs index ab8281573e6..5ee10e68d55 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ProjectionCamera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ProjectionCamera.cs @@ -9,33 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; - namespace System.Windows.Media.Media3D { abstract partial class ProjectionCamera : Camera diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Quaternion.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Quaternion.cs index e8b6d43b6d6..29eab1b7cec 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Quaternion.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Quaternion.cs @@ -10,31 +10,10 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/QuaternionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/QuaternionConverter.cs index 686d82ac2ac..c8c7d0d38b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/QuaternionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/QuaternionConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/QuaternionRotation3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/QuaternionRotation3D.cs index 442c69ff0bb..44c826a60f2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/QuaternionRotation3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/QuaternionRotation3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rect3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rect3D.cs index 8a48a23541e..5aa09ae8c58 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rect3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rect3D.cs @@ -10,31 +10,10 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rect3DConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rect3DConverter.cs index eeddc9e5a69..7a7216e5843 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rect3DConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rect3DConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/RotateTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/RotateTransform3D.cs index ec74fe258eb..e50b0a77a2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/RotateTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/RotateTransform3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rotation3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rotation3D.cs index d1de334cb49..8959272393a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rotation3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Rotation3D.cs @@ -9,32 +9,9 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ScaleTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ScaleTransform3D.cs index 84f4a9c9f59..398caf18f9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ScaleTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/ScaleTransform3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Size3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Size3D.cs index 39f24cd0628..419a25e070e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Size3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Size3D.cs @@ -10,31 +10,10 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Size3DConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Size3DConverter.cs index 0d11e9c1738..f7494fe2a4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Size3DConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Size3DConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/SpecularMaterial.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/SpecularMaterial.cs index 5fe5b44d51a..bd5687871e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/SpecularMaterial.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/SpecularMaterial.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/SpotLight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/SpotLight.cs index 383392b4a17..880b3e2bcff 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/SpotLight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/SpotLight.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3D.cs index 9d3d9b8c0e6..5288b5968f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3DCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3DCollection.cs index 8949caa93c2..0a8491b8428 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3DCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3DCollection.cs @@ -2,47 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// -using MS.Internal; using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { /// /// A collection of Transform3D objects. /// - - public sealed partial class Transform3DCollection : Animatable, IList, IList { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3DGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3DGroup.cs index e6b2e004b18..70cecc24eae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3DGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Transform3DGroup.cs @@ -10,31 +10,8 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/TranslateTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/TranslateTransform3D.cs index 062e54d136a..c56a1b49408 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/TranslateTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/TranslateTransform3D.cs @@ -9,32 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3D.cs index ee60fd98a22..09c379db60f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3D.cs @@ -10,31 +10,10 @@ // using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DCollection.cs index d1dffa178db..402b2598f1e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DCollection.cs @@ -2,39 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. -// // Please see MilCodeGen.html for more information. -// using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; + // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DCollectionConverter.cs index 106f07de087..abf4906c9b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DCollectionConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DConverter.cs index 3e5acae5cc9..09a6f811a0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Vector3DConverter.cs @@ -9,28 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.Collections; -using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Windows.Markup; -using System.Windows.Media.Media3D.Converters; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; -using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Visual3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Visual3D.cs index 8bcac4f0536..e08a3343394 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Visual3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/Visual3D.cs @@ -2,31 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // This file was generated, please do not edit it directly. // // This file was generated from the codegen template located at: // wpf\src\Graphics\codegen\mcg\generators\AnimatableTemplate.cs // // Please see MilCodeGen.html for more information. -// // Allow suppression of certain presharp messages #pragma warning disable 1634, 1691 -using MS.Internal; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows.Threading; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; - -using SR = MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Geometry3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Geometry3D.cs index ec9d047846b..088b02760c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Geometry3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Geometry3D.cs @@ -7,8 +7,6 @@ // using MS.Internal.Media3D; -using System; -using System.Diagnostics; using System.Windows.Media.Animation; using System.Windows.Media.Composition; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeometryModel3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeometryModel3D.cs index 1193459bac9..11c81404b36 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeometryModel3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/GeometryModel3D.cs @@ -11,16 +11,7 @@ // // -using MS.Internal; using MS.Internal.Media3D; -using System; -using System.Collections; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Composition; -using System.Windows.Media.Media3D; -using System.Windows.Markup; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/HitTestParameters3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/HitTestParameters3D.cs index 4e7682c4c32..fc2aa55e119 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/HitTestParameters3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/HitTestParameters3D.cs @@ -6,13 +6,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using MS.Internal.Media3D; -using CultureInfo = System.Globalization.CultureInfo; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Light.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Light.cs index 144dfc07670..0d9fc10ca76 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Light.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Light.cs @@ -11,11 +11,6 @@ // // -using System; -using System.Diagnostics; -using System.Windows.Media; -using MS.Internal.Media3D; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Material.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Material.cs index 1c149e37b49..492674e1a95 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Material.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Material.cs @@ -11,11 +11,7 @@ // // -using System; -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.Composition; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MaterialGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MaterialGroup.cs index 64e1a24c0af..ca18fa206d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MaterialGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MaterialGroup.cs @@ -8,17 +8,7 @@ // Description: Material group // -using System; -using System.Collections; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; using System.Windows.Markup; -using MS.Internal; -using MS.Internal.Media3D; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3D.cs index 6b1c0c0d170..b1a4a451e82 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3D.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: 3D matrix implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht @@ -20,20 +17,9 @@ // All methods that read the _mXX fields on the diagonal (_m11, _m22, _m33, _m44) need // to be use the IsDistinguishedIdentity property to special case this (which frequently // turns out to be a nice optimization). -// -// -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Windows; -using System.Windows.Markup; using MS.Internal; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3DStack.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3DStack.cs index 4f9810ab8f9..1376f473b98 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3DStack.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3DStack.cs @@ -9,15 +9,6 @@ // of structs. This was written as a stop-gap to address // a - - - - - -using System; -using System.Collections; -using System.Collections.Generic; - namespace System.Windows.Media.Media3D { // Use Generics to port MatrixStack to Matrix3D diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MatrixCamera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MatrixCamera.cs index 562f91390cc..3a574302cd0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MatrixCamera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MatrixCamera.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; -using System.Diagnostics; -using System.Windows; using MS.Internal.Media3D; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using CultureInfo = System.Globalization.CultureInfo; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MatrixTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MatrixTransform3D.cs index 8405a8ac361..ebf2e377d6c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MatrixTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MatrixTransform3D.cs @@ -11,14 +11,6 @@ // // -using System; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MeshGeometry3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MeshGeometry3D.cs index 1df0cac6b54..9f10ce3a31f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MeshGeometry3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/MeshGeometry3D.cs @@ -11,14 +11,8 @@ // // -using MS.Internal; using MS.Internal.Media3D; -using MS.Internal.PresentationCore; using MS.Utility; -using System; -using System.Diagnostics; -using System.Windows.Markup; -using System.Windows.Media.Composition; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Model3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Model3D.cs index 160ec84a490..98c33c8fba6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Model3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Model3D.cs @@ -11,12 +11,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.Animation; using MS.Internal.Media3D; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Model3DGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Model3DGroup.cs index a7905da23ad..1c772a24b48 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Model3DGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Model3DGroup.cs @@ -11,17 +11,7 @@ // // -using System; -using System.Collections; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; using System.Windows.Markup; -using MS.Internal; -using MS.Internal.Media3D; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ModelUIElement3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ModelUIElement3D.cs index acd41418e5c..f59b0edbdc0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ModelUIElement3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ModelUIElement3D.cs @@ -8,19 +8,9 @@ // // -using MS.Internal; -using MS.Internal.Media; -using MS.Internal.Media3D; -using System; -using System.Diagnostics; -using System.Collections.Specialized; -using System.ComponentModel; using System.Windows.Automation.Peers; -using System.Windows.Media.Composition; using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ModelVisual3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ModelVisual3D.cs index 8afab0f285a..80469c929c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ModelVisual3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ModelVisual3D.cs @@ -2,25 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// -// - -using MS.Internal; -using MS.Internal.Media; -using MS.Internal.Media3D; -using System; -using System.Diagnostics; -using System.Collections.Specialized; using System.ComponentModel; -using System.Security; -using System.Windows.Media.Composition; using System.Windows.Markup; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/OrthographicCamera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/OrthographicCamera.cs index cb2ac987660..48e8218c8cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/OrthographicCamera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/OrthographicCamera.cs @@ -5,13 +5,7 @@ // // -using System; -using System.Diagnostics; -using System.Windows; using MS.Internal.Media3D; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using CultureInfo = System.Globalization.CultureInfo; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PerspectiveCamera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PerspectiveCamera.cs index a2bb51420f9..719e8e7b742 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PerspectiveCamera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PerspectiveCamera.cs @@ -5,13 +5,7 @@ // // -using System; -using System.Diagnostics; -using System.Windows; using MS.Internal.Media3D; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using CultureInfo = System.Globalization.CultureInfo; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point3D.cs index 566dade90c6..481a882f327 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point3D.cs @@ -11,11 +11,6 @@ // // -using System.Windows; -using System.Windows.Media.Media3D; - -using System; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point3DCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point3DCollection.cs index 89d308c3e6b..ec6907367e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point3DCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point3DCollection.cs @@ -10,11 +10,8 @@ // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // -using System.Windows; -using System.Windows.Media.Media3D; -using System; -using System.IO; -using MS.Internal.Media; +using System.IO; +using MS.Internal.Media; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point4D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point4D.cs index 26ca8758fc0..00025e4671c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point4D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Point4D.cs @@ -11,11 +11,6 @@ // // -using System.Windows; -using System.Windows.Media.Media3D; - -using System; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PointLight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PointLight.cs index 8d952bacc4e..eb258da2ee5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PointLight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PointLight.cs @@ -11,14 +11,6 @@ // // -using System; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PointLightBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PointLightBase.cs index bfc3cd76a7f..73391a3d121 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PointLightBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/PointLightBase.cs @@ -11,14 +11,6 @@ // // -using System; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ProjectionCamera.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ProjectionCamera.cs index ab8155af602..3c7cd803503 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ProjectionCamera.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ProjectionCamera.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Quaternion.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Quaternion.cs index dd0a2bc4d40..f87269faeb2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Quaternion.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Quaternion.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: 3D quaternion implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht @@ -23,24 +20,8 @@ // Don't mess it up! using MS.Internal; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -// These types are aliased to match the unamanaged names used in interop -using BOOL = System.Boolean; -using WORD = System.UInt16; -using Float = System.Single; -using SR=MS.Internal.PresentationCore.SR; +// These types are aliased to match the unamanaged names used in interop namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/QuaternionRotation3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/QuaternionRotation3D.cs index 64976b51778..1051a0072e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/QuaternionRotation3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/QuaternionRotation3D.cs @@ -8,8 +8,6 @@ // // -using System; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Ray3DHitTestResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Ray3DHitTestResult.cs index 4d0084684bd..6cbc795fec2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Ray3DHitTestResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Ray3DHitTestResult.cs @@ -7,11 +7,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RayHitTestParameters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RayHitTestParameters.cs index ea7b13c45db..dd3abeb5fdd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RayHitTestParameters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RayHitTestParameters.cs @@ -6,12 +6,7 @@ // // -using System; -using System.IO; -using System.Diagnostics; -using System.Collections.Generic; using MS.Internal.Media3D; -using CultureInfo = System.Globalization.CultureInfo; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RayMeshGeometry3DHitTestResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RayMeshGeometry3DHitTestResult.cs index 59afff171ac..8b3a87c584d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RayMeshGeometry3DHitTestResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RayMeshGeometry3DHitTestResult.cs @@ -7,11 +7,6 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rect3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rect3D.cs index eba76596f22..c3caa2ca8d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rect3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rect3D.cs @@ -2,26 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: 3D rectangle implementation. -// -// -// -// - - -using System; -using System.Windows; -using System.Diagnostics; -using MS.Internal; -using MS.Internal.Media3D; -using System.Reflection; -using System.ComponentModel.Design.Serialization; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RotateTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RotateTransform3D.cs index 1efa1d6d151..c25c805a48a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RotateTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/RotateTransform3D.cs @@ -11,15 +11,6 @@ // // -using System; -using System.ComponentModel; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rotation3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rotation3D.cs index 06f294a6c4a..05cc0b939ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rotation3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rotation3D.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ScaleTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ScaleTransform3D.cs index fc6138844f0..38af0ad794f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ScaleTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/ScaleTransform3D.cs @@ -11,14 +11,6 @@ // // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Size3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Size3D.cs index 722f4b46df8..4c6eff1bb79 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Size3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Size3D.cs @@ -2,22 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: 3D size implementation. -// -// -// -// - -using System.Windows; -using System.Windows.Media.Media3D; - -using System; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/SpecularMaterial.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/SpecularMaterial.cs index 40adfee10fc..620452b3309 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/SpecularMaterial.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/SpecularMaterial.cs @@ -10,15 +10,6 @@ // See spec at *** FILL IN LATER *** // -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/SpotLight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/SpotLight.cs index af79b80f291..f645fa87027 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/SpotLight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/SpotLight.cs @@ -11,13 +11,6 @@ // // -using System; -using System.Windows.Media; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Transform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Transform3D.cs index f153a41521b..962da867d7e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Transform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Transform3D.cs @@ -12,11 +12,6 @@ // using MS.Internal.Media3D; -using System; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; namespace System.Windows.Media.Media3D diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Transform3DGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Transform3DGroup.cs index d75c18c5f4d..e8c50de118c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Transform3DGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Transform3DGroup.cs @@ -12,24 +12,7 @@ -using System; -using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Composition; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using MS.Internal; -using System.Windows.Media.Animation; -using System.Globalization; -using System.Text; -using System.Runtime.InteropServices; using System.Windows.Markup; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/TranslateTransform3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/TranslateTransform3D.cs index c5d3ddfa949..80f611a1aed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/TranslateTransform3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/TranslateTransform3D.cs @@ -11,14 +11,6 @@ // // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using MS.Internal; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Vector3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Vector3D.cs index 1f1dd29e723..8bec65a81a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Vector3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Vector3D.cs @@ -10,11 +10,7 @@ // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // -using MS.Internal; using MS.Internal.Media3D; -using System; -using System.Windows; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Vector3dCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Vector3dCollection.cs index 9eac0776029..db4526cbe2c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Vector3dCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Vector3dCollection.cs @@ -10,11 +10,8 @@ // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht -using System.Windows; -using System.Windows.Media.Media3D; -using System; -using System.IO; -using MS.Internal.Media; +using System.IO; +using MS.Internal.Media; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs index 35780a10233..b6486544643 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs @@ -2,27 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Utility; using MS.Internal; -using MS.Internal.Media; using MS.Internal.Media3D; -using MS.Internal.PresentationCore; using MS.Internal.KnownBoxes; - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Windows; -using System.Windows.Media.Composition; using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Documents; -using System.Collections; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport3DVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport3DVisual.cs index f770631a7bb..51ca2ee4653 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport3DVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport3DVisual.cs @@ -2,25 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - using MS.Internal; -using MS.Internal.Media; using MS.Internal.Media3D; -using System; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Windows; using System.Windows.Diagnostics; -using System.Windows.Media; using System.Windows.Media.Composition; using System.Windows.Markup; using System.Windows.Media.Effects; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows.Media.Media3D { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Visual3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Visual3D.cs index 12118c81005..e6a0e9966f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Visual3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Visual3D.cs @@ -2,19 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - using MS.Internal; using MS.Internal.Media; using MS.Internal.Media3D; -using System; -using System.Diagnostics; -using System.Security; using System.Windows.Diagnostics; using System.Windows.Media.Composition; -using System.Windows.Media; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Visual3DCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Visual3DCollection.cs index 4ea1abdd52a..e005f24b811 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Visual3DCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Visual3DCollection.cs @@ -2,23 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// - #pragma warning disable 1634, 1691 // suppressing PreSharp warnings using MS.Utility; using MS.Internal; -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; -using System.Windows; -using MS.Internal.PresentationCore; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows.Media.Media3D { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseCaptureWithinProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseCaptureWithinProperty.cs index fb046006277..8a151693509 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseCaptureWithinProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseCaptureWithinProperty.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Input; using MS.Internal.KnownBoxes; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseOverProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseOverProperty.cs index 4fc9c7fbacb..66aca09f565 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseOverProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseOverProperty.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using MS.Internal.KnownBoxes; using System.Windows.Input; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Navigation/BaseUriHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Navigation/BaseUriHelper.cs index 478e8dd7d99..12efc822af0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Navigation/BaseUriHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Navigation/BaseUriHelper.cs @@ -6,17 +6,11 @@ // // -using System; -using System.Diagnostics; -using System.IO.Packaging; using System.Globalization; -using System.Net; using System.Text; -using System.Windows; using System.Windows.Markup; using System.Windows.Media; using System.Reflection; -using System.IO; using MS.Internal; using MS.Internal.AppModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Nrbf/SerializationRecordExtensions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Nrbf/SerializationRecordExtensions.cs index 1f8ca58837a..af805eb0d84 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Nrbf/SerializationRecordExtensions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Nrbf/SerializationRecordExtensions.cs @@ -4,8 +4,6 @@ using System.Collections; using System.Drawing; -using System.Collections.Generic; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; #nullable enable diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/OleServicesContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/OleServicesContext.cs index 134a0dde0a8..12c60ebf310 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/OleServicesContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/OleServicesContext.cs @@ -2,22 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Ole Services for DragDrop and Clipboard. -// -// using MS.Win32; using MS.Internal; -using System.Security; -using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Threading; using System.Windows.Input; -using SR=MS.Internal.PresentationCore.SR; using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs index 0d87aaa3c8d..df763b6cb19 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs @@ -2,23 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Diagnostics; -using System.ComponentModel; -using System.Runtime.InteropServices; using System.Windows.Threading; -using System.Security; using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Markup; using System.Windows.Input; -using MS.Win32; using MS.Utility; using MS.Internal; -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/QueryContinueDragEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/QueryContinueDragEventArgs.cs index 5c70a1fa8fa..269e70dbab6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/QueryContinueDragEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/QueryContinueDragEventArgs.cs @@ -2,18 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: QueryContinueDragEventArgs for drag-and-drop operation. -// -// - -using System; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/QueryContinueDragEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/QueryContinueDragEventHandler.cs index 326dfdc7f1a..2b2563deeef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/QueryContinueDragEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/QueryContinueDragEventHandler.cs @@ -9,8 +9,6 @@ // // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ReadOnlyPropertyMetadata.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ReadOnlyPropertyMetadata.cs index 2c822e1a341..4e4ee34cc25 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ReadOnlyPropertyMetadata.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ReadOnlyPropertyMetadata.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { internal class ReadOnlyPropertyMetadata : PropertyMetadata diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Resources/AssemblyAssociatedContentFileAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Resources/AssemblyAssociatedContentFileAttribute.cs index b22944aed76..becd031b214 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Resources/AssemblyAssociatedContentFileAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Resources/AssemblyAssociatedContentFileAttribute.cs @@ -10,8 +10,6 @@ // // -using System; - namespace System.Windows.Resources { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ReverseInheritProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ReverseInheritProperty.cs index 2b15e1cc976..c433f2e51e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ReverseInheritProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ReverseInheritProperty.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Input; using MS.Internal; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RouteItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RouteItem.cs index ee4f713513a..acdef31dac6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RouteItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RouteItem.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { // An item in the EventRoute diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEvent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEvent.cs index 85123b2219d..1fa66a9b465 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEvent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEvent.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; using System.Windows.Markup; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventArgs.cs index 62f82da66b5..d6ff6e3c6ba 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventArgs.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; -using System.Collections.Specialized ; -using System.Windows.Input; -using System.Diagnostics; +using System.Collections.Specialized; using MS.Internal; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventHandlerInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventHandlerInfo.cs index c8dc909ad32..d98bdc346b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventHandlerInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventHandlerInfo.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutingStrategy.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutingStrategy.cs index 104a59e3bc6..463210bfadd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutingStrategy.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutingStrategy.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SizeChangedInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SizeChangedInfo.cs index 30714d3cee4..3acfefc4afb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SizeChangedInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SizeChangedInfo.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SourceChangedEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SourceChangedEventHandler.cs index 7e67beee7c3..4a4e294fee5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SourceChangedEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SourceChangedEventHandler.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SourceItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SourceItem.cs index 93611a1a106..804323f1e98 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SourceItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/SourceItem.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { // An item in the source context diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusCaptureWithinProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusCaptureWithinProperty.cs index 704e652a2dc..b21dab228a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusCaptureWithinProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusCaptureWithinProperty.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Input; using MS.Internal.KnownBoxes; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusOverProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusOverProperty.cs index 43ae2406493..f3f2dfd87d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusOverProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusOverProperty.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows.Input; -using MS.Internal.KnownBoxes; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextAndFontProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextAndFontProperties.cs index 01d2e0d44fc..e9603865127 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextAndFontProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextAndFontProperties.cs @@ -7,8 +7,6 @@ //--------------------------------------------------------------------------- -using System; - namespace System.Windows { #region Text formatting properties diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecoration.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecoration.cs index e57bb23b8d2..1450c7108b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecoration.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecoration.cs @@ -9,10 +9,8 @@ // // -using System; using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Markup; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorationCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorationCollection.cs index cd5de497f26..48e846ed7f2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorationCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorationCollection.cs @@ -9,14 +9,10 @@ // // -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Globalization; using System.Windows.Media.Animation; -using System.Windows.Markup; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorationCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorationCollectionConverter.cs index 3ae332c02b3..194f805bc17 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorationCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorationCollectionConverter.cs @@ -2,29 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: TextDecorationCollectionConverter class -// -// - -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Globalization; using System.Reflection; -using System.Security; - -using SR=MS.Internal.PresentationCore.SR; namespace System.Windows { /// /// TypeConverter for TextDecorationCollection - /// + /// public sealed class TextDecorationCollectionConverter : TypeConverter { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs index 8d069c701b3..c5737d7694c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs @@ -11,17 +11,12 @@ using MS.Internal.Media; using MS.Internal.PresentationCore; using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Security; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Input; using System.Windows.Input.StylusPlugIns; -using System.Windows.Interop; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement3D.cs index 53d7da8aa27..f4db8a5eca9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement3D.cs @@ -8,27 +8,12 @@ using MS.Internal; using MS.Internal.Interop; using MS.Internal.KnownBoxes; -using MS.Internal.Media; using MS.Internal.PresentationCore; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Security; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Input; -using System.Windows.Input.StylusPlugIns; -using System.Windows.Interop; -using System.Windows.Markup; using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Composition; -using System.Windows.Media.Effects; using System.Windows.Media.Media3D; -using System.Windows.Threading; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIPropertyMetadata.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIPropertyMetadata.cs index c0bf7c945e0..29c9b279757 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIPropertyMetadata.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIPropertyMetadata.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Collections.Generic; - -using SR=MS.Internal.PresentationCore.SR; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/clipboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/clipboard.cs index 7bc1983ec21..19b90b15ea1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/clipboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/clipboard.cs @@ -2,28 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Clipboard implementation to provide methods to place/get data from/to the system // clipboard. // // See spec at http://avalon/uis/Data%20Transfer%20clipboard%20dragdrop/Avalon%20Clipboard.htm -// -// using MS.Win32; using MS.Internal; using System.Collections.Specialized; using System.IO; -using System.Security; using System.ComponentModel; using System.Runtime.InteropServices; -using System.Runtime.Serialization; using System.Threading; using System.Windows.Media.Imaging; -using System.Windows.Threading; -using SR = MS.Internal.PresentationCore.SR; using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs index 62da9e0cf5e..e5f24310b5d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs @@ -2,41 +2,32 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// +using MS.Win32; +using System.Collections; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Formats.Nrbf; +using System.IO; +using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters.Binary; +using System.Windows.Interop; +using System.Windows.Media.Imaging; +using System.Text; +using MS.Internal; + +using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; + // Description: Top-level class for data transfer for drag-drop and clipboard. // // See spec at http://avalon/uis/Data%20Transfer%20clipboard%20dragdrop/Avalon%20Data%20Transfer%20Object.htm -// -// namespace System.Windows { - using System; - using MS.Win32; - using System.Collections; - using System.Collections.Specialized; - using System.ComponentModel; - using System.Diagnostics; - using System.Formats.Nrbf; - using System.IO; - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System.Runtime.Serialization; - using System.Runtime.Serialization.Formatters.Binary; - using System.Security; - using System.Windows.Interop; - using System.Windows.Media.Imaging; - using System.Text; - using MS.Internal; - - using SR=MS.Internal.PresentationCore.SR; - using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; - -// PreSharp uses message numbers that the C# compiler doesn't know about. -// Disable the C# complaints, per the PreSharp documentation. + // PreSharp uses message numbers that the C# compiler doesn't know about. + // Disable the C# complaints, per the PreSharp documentation. #pragma warning disable 1634, 1691 #region DataObject Class diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/GlobalUsings.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/GlobalUsings.cs new file mode 100644 index 00000000000..f73ee7d808f --- /dev/null +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/GlobalUsings.cs @@ -0,0 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +global using System; +global using System.Collections.Generic; +global using System.Diagnostics; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/HashHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/HashHelper.cs new file mode 100644 index 00000000000..3f3863bdc46 --- /dev/null +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/HashHelper.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Linq; + +namespace MS.Internal.Hashing.PresentationFramework; + +internal static class HashHelper +{ + private static readonly Type[] s_unreliableTypes = + [ + // The first four are from PresentationCore + typeof(System.Windows.Media.CharacterMetrics), // bug 1612093 + typeof(System.Windows.Ink.ExtendedProperty), // bug 1612101 + typeof(System.Windows.Media.FamilyTypeface), // bug 1612103 + typeof(System.Windows.Media.NumberSubstitution), // bug 1612105 + + // Next two are PresentationFramework + typeof(System.Windows.Markup.Localizer.BamlLocalizableResource), // bug 1612118 + typeof(System.Windows.ComponentResourceKey) // bug 1612119 + ]; + + /// + /// Certain objects don't have reliable hashcodes, and cannot be used in a Hashtable, Dictionary, etc. + /// + internal static bool HasReliableHashCode(object item) => item is not null && !s_unreliableTypes.Contains(item.GetType()); +} diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AnimatedTypeHelpers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AnimatedTypeHelpers.cs index 897c5ccfb43..25bcb156120 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AnimatedTypeHelpers.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AnimatedTypeHelpers.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Windows; -using System.Windows.Media; -using System.Windows.Media.Media3D; namespace MS.Internal.PresentationFramework { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/AttachedAnnotation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/AttachedAnnotation.cs index d5ac91c089d..f134ed7487c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/AttachedAnnotation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/AttachedAnnotation.cs @@ -13,15 +13,9 @@ // Spec: Annotation Service Spec.doc // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Annotations; using System.Windows.Annotations.Storage; -using System.Windows.Media; -using System.Xml; -using System.Collections.Generic; -using MS.Utility; namespace MS.Internal.Annotations.Anchoring { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/DataIdProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/DataIdProcessor.cs index 9a14801ebee..14c3f7f924b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/DataIdProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/DataIdProcessor.cs @@ -13,20 +13,11 @@ // Spec: Anchoring Namespace Spec.doc // -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Windows; using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Markup; -using System.Windows.Threading; using System.Xml; -using MS.Utility; - namespace MS.Internal.Annotations.Anchoring { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/FixedPageProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/FixedPageProcessor.cs index 6c2a016f1f9..fd14024f584 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/FixedPageProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/FixedPageProcessor.cs @@ -13,19 +13,12 @@ // // -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; using System.Globalization; using System.Xml; using System.Windows; using System.Windows.Annotations; -using System.Windows.Annotations.Storage; using System.Windows.Controls.Primitives; using System.Windows.Documents; -using System.Windows.Media; -using MS.Utility; namespace MS.Internal.Annotations.Anchoring { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/FixedTextSelectionProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/FixedTextSelectionProcessor.cs index ff9bba82f89..469eb118610 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/FixedTextSelectionProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/FixedTextSelectionProcessor.cs @@ -14,24 +14,13 @@ // Spec: Anchoring to text in paginated docs.doc // -using System; -using System.IO; using System.Windows; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Globalization; using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; -using System.Windows.Media; using System.Xml; -using MS.Utility; -using MS.Internal.Documents; -using MS.Internal.PtsHost; namespace MS.Internal.Annotations.Anchoring { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/LocatorManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/LocatorManager.cs index c480add7f71..d1c8628a0fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/LocatorManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/LocatorManager.cs @@ -13,25 +13,14 @@ // // -using System; -using System.IO; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; using System.Windows; using System.Windows.Annotations; using System.Windows.Annotations.Storage; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Documents; -using System.Windows.Markup; using System.Windows.Threading; using System.Xml; -using MS.Internal; -using MS.Utility; namespace MS.Internal.Annotations.Anchoring diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/PathNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/PathNode.cs index 8f2c116e88f..d5be1646d41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/PathNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/PathNode.cs @@ -12,15 +12,10 @@ // Spec: Anchoring Namespace Spec.doc // -using System; -using System.Diagnostics; using System.Collections; -using System.ComponentModel; using System.Windows; using System.Windows.Annotations; using System.Windows.Media; -using System.Windows.Markup; -using MS.Utility; namespace MS.Internal.Annotations.Anchoring { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/SelectionProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/SelectionProcessor.cs index d2942fb60ed..d26d7fd2242 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/SelectionProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/SelectionProcessor.cs @@ -12,13 +12,8 @@ // Spec: Anchoring Namespace Spec.doc // -using System; -using System.Collections; -using System.Collections.Generic; using System.Windows; using System.Windows.Annotations; -using System.Windows.Media; -using MS.Utility; using System.Xml; namespace MS.Internal.Annotations.Anchoring diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/SubTreeProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/SubTreeProcessor.cs index d4a1a0e1017..e832a03a6ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/SubTreeProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/SubTreeProcessor.cs @@ -12,15 +12,8 @@ // Spec: Anchoring Namespace Spec.doc // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Media; -using MS.Utility; using System.Xml; namespace MS.Internal.Annotations.Anchoring 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 bec53e8b85f..f40e5c67029 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 @@ -10,22 +10,13 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.Windows; using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using MS.Internal.Annotations.Component; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Media; -using System.Xml; using MS.Internal.Documents; -using MS.Utility; namespace MS.Internal.Annotations.Anchoring diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextSelectionProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextSelectionProcessor.cs index ab3a7d83aa7..98a3a5f8d0a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextSelectionProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextSelectionProcessor.cs @@ -12,22 +12,12 @@ // Spec: Anchoring Namespace Spec.doc // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; using System.Windows; using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; -using System.Windows.Media; using System.Xml; -using MS.Utility; - -using MS.Internal.Documents; namespace MS.Internal.Annotations.Anchoring { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextViewSelectionProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextViewSelectionProcessor.cs index d15ff899e3e..92f1f40892a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextViewSelectionProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TextViewSelectionProcessor.cs @@ -9,23 +9,11 @@ // all anchors that intersect with the text in an element's TextView. // -using System; using System.Windows; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; using System.Globalization; using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Controls; using System.Windows.Documents; using System.Xml; -using MS.Utility; -using System.Windows.Media; -using System.Windows.Controls.Primitives; -using MS.Internal.Documents; -using MS.Internal.PtsHost; namespace MS.Internal.Annotations.Anchoring { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TreeNodeSelectionProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TreeNodeSelectionProcessor.cs index 9a459f983d9..083eb8982fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TreeNodeSelectionProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Anchoring/TreeNodeSelectionProcessor.cs @@ -10,17 +10,10 @@ // Spec: Anchoring Namespace Spec.doc // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; using System.Windows; using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Documents; using System.Windows.Media; using System.Xml; -using MS.Utility; namespace MS.Internal.Annotations.Anchoring { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationMap.cs index 735da2366af..1a2214301ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationMap.cs @@ -8,12 +8,6 @@ // map between annotation id and attached annotations used by the service // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Annotations; - namespace MS.Internal.Annotations { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationObservableCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationObservableCollection.cs index 96ce541e57e..94fdf7a7cb9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationObservableCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationObservableCollection.cs @@ -11,15 +11,10 @@ // ItemChanged event. // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows; -using System.Windows.Data; namespace MS.Internal.Annotations { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationResourceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationResourceCollection.cs index b45dd8084da..a95e27676ad 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationResourceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationResourceCollection.cs @@ -9,15 +9,9 @@ // is used specifically for AnnotationResources. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Annotations; -using System.Windows.Data; namespace MS.Internal.Annotations { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationXmlConstants.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationXmlConstants.cs index dfd8a0e2c0e..c374aab65b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationXmlConstants.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AnnotationXmlConstants.cs @@ -8,8 +8,6 @@ // adheres to the annotation schema. // -using System; - namespace MS.Internal.Annotations { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AttachedAnnotation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AttachedAnnotation.cs index 8331e76062b..11eb1cfe995 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AttachedAnnotation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AttachedAnnotation.cs @@ -7,13 +7,9 @@ // AttachedAnnotation defines the IAttachedAnnotation interface // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Annotations; using System.Windows.Annotations.Storage; -using System.Windows.Media; -using MS.Utility; namespace MS.Internal.Annotations { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AttachedAnnotationChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AttachedAnnotationChangedEventArgs.cs index 4caeb1f60c6..cede993dcb1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AttachedAnnotationChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/AttachedAnnotationChangedEventArgs.cs @@ -8,23 +8,6 @@ // for the AttachedAnnotationChanged event fired by the AnnotationService // -using System; -using System.Collections; -using System.ComponentModel; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Annotations.Storage; -using System.Windows.Controls; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Xml; -using System.Diagnostics; -using MS.Internal; -using MS.Utility; -using System.Reflection; // for BindingFlags -using System.Globalization; // for CultureInfo - namespace MS.Internal.Annotations { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AdornerPresentationContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AdornerPresentationContext.cs index a152d03c03b..415930d86ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AdornerPresentationContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AdornerPresentationContext.cs @@ -12,11 +12,7 @@ // presentation context stored in the annotation component. // -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; -using System.Windows.Annotations; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationAdorner.cs index abd176a4a0f..1504cd918fb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationAdorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationAdorner.cs @@ -8,9 +8,6 @@ // between the component and the adorner layer. // -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationComponentManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationComponentManager.cs index a5b69defcaa..6496dc51145 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationComponentManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationComponentManager.cs @@ -7,13 +7,9 @@ // AnnotationComponentManager // -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Annotations; using System.Windows.Documents; -using System.Windows.Media; namespace MS.Internal.Annotations.Component { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationHighlightLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationHighlightLayer.cs index 12ebae93a13..65da4d051c2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationHighlightLayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/AnnotationHighlightLayer.cs @@ -8,20 +8,13 @@ // and StickyNote anchors as well. // -using System; -using MS.Internal; -using System.Diagnostics; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Documents; -using MS.Internal.Documents; using System.Windows.Media; -using MS.Internal.Text; using System.Windows.Shapes; using MS.Internal.Annotations.Anchoring; -using System.Windows.Controls; namespace MS.Internal.Annotations.Component { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/HighlightComponent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/HighlightComponent.cs index 79e90f5bd21..473124e7292 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/HighlightComponent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/HighlightComponent.cs @@ -7,23 +7,15 @@ // Description: AnnotationComponent that visualizes highlights // -using System; -using MS.Internal; -using System.Diagnostics; using System.Collections; -using System.Collections.Generic; using System.Windows; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Shapes; -using MS.Internal.Text; using System.Xml; using System.IO; using System.Windows.Annotations; -using System.Reflection; -using System.Windows.Annotations.Storage; using System.Windows.Controls; -using MS.Internal.Annotations.Anchoring; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/IAnnotationComponent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/IAnnotationComponent.cs index 48a987016bf..3cbdb733539 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/IAnnotationComponent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/IAnnotationComponent.cs @@ -7,10 +7,8 @@ // IAnnotationComponent // -using System; using System.Collections; using System.Windows; -using System.Windows.Annotations; using System.Windows.Media; namespace MS.Internal.Annotations.Component diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/IHighlightRange.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/IHighlightRange.cs index 2a367fb7c67..400e0900c1b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/IHighlightRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/IHighlightRange.cs @@ -7,20 +7,9 @@ // between HighlightComponent and AnnotationHighlightLayer // -using System; -using MS.Internal; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Windows; using System.Windows.Annotations; -using System.Windows.Documents; using System.Windows.Media; -using MS.Internal.Text; using System.Windows.Shapes; -using MS.Internal.Annotations.Anchoring; -using System.Windows.Controls; namespace MS.Internal.Annotations.Component { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/MarkedHighlightComponent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/MarkedHighlightComponent.cs index 88d3c535cd5..3da58ffa113 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/MarkedHighlightComponent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/MarkedHighlightComponent.cs @@ -12,9 +12,6 @@ // See spec at StickyNoteControlSpec.mht // -using System; -using System.ComponentModel; -using System.Windows.Threading; using System.Windows; using System.Windows.Controls; using System.Windows.Data; @@ -22,12 +19,9 @@ using System.Windows.Documents; using System.Windows.Media; using System.Windows.Shapes; -using System.Text; using System.Collections; -using System.Collections.Generic; using System.Xml; using System.Windows.Input; -using System.Diagnostics; // Assert using MS.Internal.Annotations.Anchoring; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/PresentationContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/PresentationContext.cs index 60779063c43..5c28f355bef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/PresentationContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/PresentationContext.cs @@ -7,9 +7,7 @@ // PresentationContext // -using System; using System.Windows; -using System.Windows.Media; namespace MS.Internal.Annotations.Component { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/ObservableDictionary.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/ObservableDictionary.cs index c6562a0faaf..5d36870c74b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/ObservableDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/ObservableDictionary.cs @@ -12,11 +12,8 @@ // Spec: Simplifying Store Cache Model.doc // -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; namespace MS.Internal.Annotations diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/OwnedObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/OwnedObject.cs index 85b2dd59373..d8dcfe74d85 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/OwnedObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/OwnedObject.cs @@ -11,8 +11,6 @@ // reproduced from a round-trip serialization/deserialization. // -using System; - namespace MS.Internal.Annotations { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Serializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Serializer.cs index 5a69eeb668d..a00acbc352f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Serializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Serializer.cs @@ -12,14 +12,9 @@ // choose not to for our purposes. // -using System; -using System.Diagnostics; using System.Reflection; -using System.Windows.Annotations.Storage; using System.Xml; -using System.Xml.Schema; using System.Xml.Serialization; -using MS.Internal; namespace MS.Internal.Annotations { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Storage/StoreAnnotationsMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Storage/StoreAnnotationsMap.cs index a07233111d8..ad3376e5329 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Storage/StoreAnnotationsMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Storage/StoreAnnotationsMap.cs @@ -12,14 +12,7 @@ // Spec: CAF Storage Spec.doc // -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Diagnostics; -using System.IO; -using System.Windows; using System.Windows.Annotations; -using MS.Utility; namespace MS.Internal.Annotations.Storage diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/TextAnchor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/TextAnchor.cs index 594bb99590c..2264e0431fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/TextAnchor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/TextAnchor.cs @@ -13,11 +13,8 @@ // a table). // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; -using System.Windows; using System.Windows.Documents; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/XmlElementCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/XmlElementCollection.cs index 3ab15e4498c..c14213f5c98 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/XmlElementCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/XmlElementCollection.cs @@ -13,16 +13,10 @@ // // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; using System.Windows; -using System.Windows.Data; using System.Xml; -using MS.Internal; namespace MS.Internal.Annotations { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppModelKnownContentFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppModelKnownContentFactory.cs index 9c67b4bf932..a8007a5505a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppModelKnownContentFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppModelKnownContentFactory.cs @@ -7,14 +7,10 @@ // Provides a method to turn a baml stream into an object. // -using System; using System.IO; using System.Windows; using System.Windows.Markup; using System.Windows.Navigation; -using MS.Internal.Controls; -using MS.Internal.Navigation; -using MS.Internal.Utility; using MS.Internal.Resources; using System.IO.Packaging; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppSecurityManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppSecurityManager.cs index f819a711b0a..47ab6841795 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppSecurityManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppSecurityManager.cs @@ -13,13 +13,6 @@ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // -using System; -using System.Collections; -using System.Diagnostics; -using System.Globalization; -using System.Security; -using Microsoft.Win32; -using System.IO.Packaging; using System.Windows; using System.Windows.Interop; using MS.Internal.Utility; @@ -27,8 +20,6 @@ using System.Runtime.InteropServices; using MS.Internal.Documents.Application; -using SecurityHelper = MS.Internal.SecurityHelper; - namespace MS.Internal.AppModel { enum LaunchResult diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/BamlStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/BamlStream.cs index ef13fd71c18..00d1c30d7ee 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/BamlStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/BamlStream.cs @@ -8,13 +8,9 @@ // the assembly which hosts the baml stream. // -using System; using System.IO; using System.Reflection; -using System.Resources; -using System.Globalization; using System.Windows.Markup; -using System.Security; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ContentFilePart.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ContentFilePart.cs index 1c26339ac09..91b46575037 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ContentFilePart.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ContentFilePart.cs @@ -7,17 +7,10 @@ // ContentFilePart is an implementation of the abstract PackagePart class. It contains an override for GetStreamCore. // -using System; using System.IO.Packaging; using System.Windows; -using System.Windows.Resources; using System.IO; -using System.Resources; -using System.Globalization; -using System.Security; using System.Windows.Navigation; -using System.Diagnostics; -using System.Reflection; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IBrowserHostServices.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IBrowserHostServices.cs index dbd66cb1c0d..4723b17883d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IBrowserHostServices.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IBrowserHostServices.cs @@ -27,10 +27,6 @@ // and unmanaged worlds // -using System; -using System.Runtime.InteropServices; -using System.Security; - namespace MS.Internal.AppModel { //********************************************************************************************// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IContentContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IContentContainer.cs index d2fae0041a8..1dac838740a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IContentContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IContentContainer.cs @@ -6,10 +6,6 @@ // Description: BindProduct. Abstract representation of the product of a bind // -using System; -using System.IO; -using MS.Internal.Utility; - namespace MS.Internal.AppModel { // Interface that's required to be implemented by all classes that diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/INavigator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/INavigator.cs index d8fac0973d5..efbee81a6af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/INavigator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/INavigator.cs @@ -9,14 +9,8 @@ // by NavigationWindow and Frame. // -using System; using System.Collections; -using System.ComponentModel; - -using MS.Internal.Utility; -using System.Windows; using System.Windows.Navigation; -using System.Windows.Documents; using System.Windows.Media; namespace MS.Internal.AppModel diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IconHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IconHelper.cs index 637a51de895..cb7abdcb82a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IconHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IconHelper.cs @@ -7,21 +7,13 @@ // implementation for the Window class. // -using System; -using System.Security; -using System.Diagnostics; using System.Collections.ObjectModel; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows; -using System.Windows.Interop; using System.Windows.Media.Imaging; using System.Windows.Media; - -using MS.Internal; using MS.Internal.Interop; -using MS.Internal.PresentationFramework; // SecurityHelper using MS.Win32; namespace MS.Internal.AppModel diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/JournalNavigationScope.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/JournalNavigationScope.cs index 9d88b4cc4ee..9f3afdaaade 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/JournalNavigationScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/JournalNavigationScope.cs @@ -13,10 +13,7 @@ // NavigationService. // -using System; using System.Collections; -using System.Security; -using System.Diagnostics; using System.Windows; using System.Windows.Navigation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/Journaling.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/Journaling.cs index 4a4ba6a8427..757b426d118 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/Journaling.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/Journaling.cs @@ -6,15 +6,11 @@ // Description: Contains various journaling related internal enums and classes // -using System; -using System.Security; using System.Runtime.Serialization; -using System.Diagnostics; using System.Windows; using System.Windows.Markup; using System.Windows.Navigation; -using MS.Internal.Utility; //In order to avoid generating warnings about unknown message numbers and //unknown pragmas when compiling your C# source code with the actual C# compiler, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/MimeObjectFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/MimeObjectFactory.cs index cdcc8aad3c9..3d8ee4bcb96 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/MimeObjectFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/MimeObjectFactory.cs @@ -8,13 +8,7 @@ // mime type + stream into objects. // -using System; -using System.Windows; using System.IO; -using System.Collections.Generic; -using MS.Internal.Utility; -using System.Diagnostics; -using System.Globalization; using System.Windows.Markup; namespace MS.Internal.AppModel diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/NavigationHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/NavigationHelper.cs index 44f213bdc8d..81ce98102a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/NavigationHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/NavigationHelper.cs @@ -2,15 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Navigation; using System.Windows.Controls; -using System.Windows.Automation; using System.Windows.Media; -using System.Globalization; -using System.Diagnostics; -using MS.Internal; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/OleCmdHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/OleCmdHelper.cs index d6405e60464..14b406d4af1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/OleCmdHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/OleCmdHelper.cs @@ -8,21 +8,15 @@ // IOleCommandTarget calls in browser hosting scenario // -using System; using System.Collections; -using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Threading; using System.Windows; -using System.Security; using System.Windows.Input; -using System.Windows.Interop; -using System.Windows.Navigation; using System.Windows.Controls; using MS.Internal.Documents; // DocumentApplicationDocumentViewer -using MS.Internal.PresentationFramework; // SecurityHelper using MS.Internal.KnownBoxes; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ProgressPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ProgressPage.cs index 9e65c42d767..3be58d9322b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ProgressPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ProgressPage.cs @@ -8,11 +8,9 @@ // the managed one from up to v3.5. See Host\DLL\ProgressPage.hxx for details. // -using System; using System.Runtime.InteropServices; using System.Windows.Interop; using System.Windows.Threading; -using System.Security; // Disambiguate MS.Internal.HRESULT... using HR = MS.Internal.Interop.HRESULT; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/RequestStatusBarUpdateEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/RequestStatusBarUpdateEventArgs.cs index 2817f06ee4c..001dec550fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/RequestStatusBarUpdateEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/RequestStatusBarUpdateEventArgs.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Net; using System.Windows; using MS.Internal.Utility; -using System.Security; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ResourceContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ResourceContainer.cs index 082f7b0779f..244de190f12 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ResourceContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ResourceContainer.cs @@ -12,20 +12,13 @@ // the NotSupportedException. // -using System; using System.IO.Packaging; using System.IO; -using System.Collections.Generic; -using System.Windows.Resources; -using System.Resources; using System.Reflection; using System.Globalization; -using MS.Internal.PresentationFramework; // SafeSecurityHelper using System.Windows; using System.Windows.Navigation; using MS.Internal.Resources; -using System.Windows.Interop; -using System.Security; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ResourcePart.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ResourcePart.cs index b4f5115abda..6e91bad1f47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ResourcePart.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ResourcePart.cs @@ -8,17 +8,11 @@ // ResourcePart is an implementation of the abstract PackagePart class. It contains an override for GetStreamCore. // -using System; using System.IO.Packaging; using System.Windows; -using System.Windows.Resources; using System.IO; -using System.Resources; -using System.Globalization; -using System.Security; using MS.Internal.Resources; -using MS.Internal; //In order to avoid generating warnings about unknown message numbers and //unknown pragmas when compiling your C# source code with the actual C# compiler, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ReturnEventSaver.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ReturnEventSaver.cs index e247ea7f99e..24e9e6a63b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ReturnEventSaver.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ReturnEventSaver.cs @@ -15,14 +15,9 @@ // saved list to the calling pagefunction // -using System; using System.Windows.Navigation; using System.Windows; -using System.Diagnostics; -using System.Collections; using System.Reflection; -using System.IO; -using System.Security; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/SecurityMgrSite.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/SecurityMgrSite.cs index f73249c2c80..a901b7146e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/SecurityMgrSite.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/SecurityMgrSite.cs @@ -8,12 +8,8 @@ // It is primarily used to supply an hwnd to be modal to- when a ProcessUrlAction call // is required to show UI. -using System; using MS.Win32; -using System.Runtime.InteropServices; using System.Windows; -using System.Security; -using MS.Internal.AppModel; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ShellProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ShellProvider.cs index 16ddad1bebf..01987ea9e74 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ShellProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ShellProvider.cs @@ -2,25 +2,24 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; +using System.Text; +using MS.Win32; +using MS.Internal.Interop; + +// Some COM interfaces and Win32 structures are already declared in the framework. +// Interesting ones to remember in System.Runtime.InteropServices.ComTypes are: +using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; // Interfaces and enums are taken from ShObjIdl.idl namespace MS.Internal.AppModel { - using System; - using System.Runtime.CompilerServices; - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System.Security; - using System.Text; - using MS.Win32; - using MS.Internal.Interop; - - // Some COM interfaces and Win32 structures are already declared in the framework. - // Interesting ones to remember in System.Runtime.InteropServices.ComTypes are: - using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; - using IPersistFile = System.Runtime.InteropServices.ComTypes.IPersistFile; - using IStream = System.Runtime.InteropServices.ComTypes.IStream; + // There are THREE definitions of HRESULT. Two in ErrorCodes, and one in wgx_render.cs. + // wgx_render.cs wins if we don't put this inside of the namespace. + using Win32Error = MS.Internal.Interop.Win32Error; + using HRESULT = MS.Internal.Interop.HRESULT; #region Structs @@ -652,7 +651,7 @@ internal interface IFileSaveDialog : IFileDialog ] internal interface IApplicationDestinations { - // Set the App User Model ID for the application removing destinations from its list. If an AppID is not provided + // Set the App User Model ID for the application removing destinations from its list. If an AppID is not provided // via this method, the system will use a heuristically determined ID. This method must be called before // RemoveDestination or RemoveAllDestinations. void SetAppID([MarshalAs(UnmanagedType.LPWStr)] string pszAppID); @@ -676,14 +675,14 @@ internal interface IApplicationDocumentLists { /// /// Set the App User Model ID for the application retrieving this list. If an AppID is not provided via this method, - /// the system will use a heuristically determined ID. This method must be called before GetList. + /// the system will use a heuristically determined ID. This method must be called before GetList. /// /// App Id. void SetAppID([MarshalAs(UnmanagedType.LPWStr)] string pszAppID); /// - /// Retrieve an IEnumObjects or IObjectArray for IShellItems and/or IShellLinks. - /// Items may appear in both the frequent and recent lists. + /// Retrieve an IEnumObjects or IObjectArray for IShellItems and/or IShellLinks. + /// Items may appear in both the frequent and recent lists. /// /// Which of the known list types to retrieve /// The number of items desired. @@ -739,7 +738,7 @@ internal interface IObjectWithAppUserModelId }; /// - /// Provides access to the ProgID associated with an object + /// Provides access to the ProgID associated with an object /// [ ComImport, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Commands/CommandHelpers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Commands/CommandHelpers.cs index 2c6b79663f3..0f47f46e942 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Commands/CommandHelpers.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Commands/CommandHelpers.cs @@ -3,13 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Windows; -using System.Windows.Controls; using System.Windows.Input; -using System.Windows.Media; -using System.Security; namespace MS.Internal.Commands { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXContainer.cs index 52ca9447136..395c152e716 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXContainer.cs @@ -9,15 +9,8 @@ // Source copied from AxContainer.cs // -using System; -using System.Collections; -using System.Diagnostics; -using Microsoft.Win32; - using System.Windows.Interop; using MS.Win32; -using System.Security; -using System.Windows.Controls; namespace MS.Internal.Controls { 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 c1c683b7401..f947b2f27c5 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 @@ -9,11 +9,8 @@ // Source copied from axhosthelper.cs // -using System; -using System.Collections; using System.Collections.Specialized; using System.Runtime.InteropServices; -using System.Security; using MS.Win32; namespace MS.Internal.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXSite.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXSite.cs index ac2dc48a6f8..1b3f7d9e187 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXSite.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ActiveXSite.cs @@ -3,18 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Runtime.InteropServices; -using Microsoft.Win32; using System.Windows; using System.Windows.Interop; -using MS.Internal.Controls; -using MS.Internal; -using MS.Internal.PresentationFramework; using MS.Win32; -using System.Security; -using System.Windows.Controls; namespace MS.Internal.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ConnectionPointCookie.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ConnectionPointCookie.cs index 49814b3aa31..f9998b07633 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ConnectionPointCookie.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ConnectionPointCookie.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security ; using System.Windows; -using MS.Internal; using MS.Win32; // Since we disable PreSharp warnings in this file, PreSharp warning is unknown to C# compiler. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/CustomCategoryAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/CustomCategoryAttribute.cs index e597c6c98c0..41c45fe0e1f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/CustomCategoryAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/CustomCategoryAttribute.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using MS.Internal; -using System.Windows; -using System.Diagnostics; -using System.Globalization; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EmptyEnumerable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EmptyEnumerable.cs index eeaf55ffa85..055bd02a92c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EmptyEnumerable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EmptyEnumerable.cs @@ -6,7 +6,6 @@ // Description: Empty enumerable // -using System; using System.Collections; namespace MS.Internal.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EmptyEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EmptyEnumerator.cs index 6781c0c5580..130b88b79f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EmptyEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EmptyEnumerator.cs @@ -6,7 +6,6 @@ // Description: Empty enumerator // -using System; using System.Collections; namespace MS.Internal.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EnumUnknown.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EnumUnknown.cs index 764197d91ba..da041e9ca32 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EnumUnknown.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/EnumUnknown.cs @@ -8,12 +8,7 @@ // Source copied from AxContainer.cs // -using System; -using System.Collections; -using System.Diagnostics; using System.Runtime.InteropServices; -using Microsoft.Win32; -using System.Security; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/IGeneratorHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/IGeneratorHost.cs index 4cac5b2bdea..6ea80779523 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/IGeneratorHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/IGeneratorHost.cs @@ -8,8 +8,6 @@ // Specs: Data Styling.mht // -using System; -using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasFeedbackAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasFeedbackAdorner.cs index b7e74104698..a0f118b5c72 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasFeedbackAdorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasFeedbackAdorner.cs @@ -7,9 +7,6 @@ // A class which is used as the feedback adorner of the InkCanvas selection // -using MS.Internal; -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasInnerCanvas.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasInnerCanvas.cs index 4e80a2ec105..ebccee9e043 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasInnerCanvas.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasInnerCanvas.cs @@ -7,10 +7,7 @@ // Defines a Canvas-like class which is used by InkCanvas for the layout. // -using System; using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasSelectionAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasSelectionAdorner.cs index 1de0463a27d..ef2e8d37411 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasSelectionAdorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasSelectionAdorner.cs @@ -7,13 +7,6 @@ // A class which is used as the selection adorner of the InkCanvas selection // -using MS.Internal; -using MS.Internal.Controls; -using MS.Internal.Ink; -using System; -using System.Diagnostics; -using System.Collections.Generic; -using System.Collections; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InnerItemCollectionView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InnerItemCollectionView.cs index 7855b423152..42706c9fb9e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InnerItemCollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InnerItemCollectionView.cs @@ -10,7 +10,6 @@ // See specs at ItemsControl.mht // -using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ModelTreeEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ModelTreeEnumerator.cs index c8b005e2b8a..07b937641ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ModelTreeEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ModelTreeEnumerator.cs @@ -3,16 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; -using System.Windows.Data; -using MS.Internal.Controls; -using MS.Internal.Data; -using MS.Utility; namespace MS.Internal.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteAnnotations.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteAnnotations.cs index 4f7e3463861..b929376ad0b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteAnnotations.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteAnnotations.cs @@ -12,26 +12,16 @@ using MS.Internal; using MS.Internal.Annotations; using MS.Internal.Annotations.Component; -using MS.Internal.Controls; using MS.Internal.Controls.StickyNote; -using MS.Internal.KnownBoxes; -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; // Assert using System.Globalization; -using System.IO; using System.Windows; using System.Windows.Annotations; using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Input; using System.Windows.Media; using System.Windows.Threading; using System.Xml; -using System.Windows.Documents; using MS.Internal.Documents; -using MS.Internal.Annotations.Anchoring; //TextSelectionHelper using System.Windows.Controls.Primitives; // IScrollInfo using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteContentControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteContentControl.cs index 0ad3188cb51..8948482c712 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteContentControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteContentControl.cs @@ -8,17 +8,12 @@ // See spec at StickyNoteControlSpec.mht // -using System; -using System.Diagnostics; using System.IO; using System.Text; using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Ink; -using System.Windows.Markup; using System.Xml; namespace MS.Internal.Controls.StickyNote diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteHelper.cs index d7dd325b83f..2e0c6d49050 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/StickyNote/StickyNoteHelper.cs @@ -8,38 +8,6 @@ // See spec at http://tabletpc/longhorn/Specs/StickyNoteControlSpec.mht // -using MS.Internal.Annotations.Component; -using MS.Utility; -using System; -using System.ComponentModel; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.IO; -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Security; -using System.Threading; -using System.Windows; -using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Resources; -using System.Windows.Markup; -using System.Windows.Shapes; -using System.Xml; -using System.Xml.XPath; - namespace MS.Internal.Controls.StickyNote { //------------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/TemplatedAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/TemplatedAdorner.cs index 9d7faed1a78..dea11cab1bc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/TemplatedAdorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/TemplatedAdorner.cs @@ -12,17 +12,10 @@ // See specs at Specs/Validation.mht // -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; using System.Windows.Media; using System.Windows; -using System.Windows.Data; using System.Windows.Controls; using System.Windows.Documents; -using MS.Utility; namespace MS.Internal.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ValidationErrorCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ValidationErrorCollection.cs index 11357274108..143f320db61 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ValidationErrorCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ValidationErrorCollection.cs @@ -12,13 +12,8 @@ // -using System; -using System.ComponentModel; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Windows; using System.Windows.Controls; -using System.Windows.Data; namespace MS.Internal.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ValidationRuleCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ValidationRuleCollection.cs index c5dc7333cb8..671b0a653a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ValidationRuleCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/ValidationRuleCollection.cs @@ -12,8 +12,6 @@ // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/WebBrowserEvent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/WebBrowserEvent.cs index a2c811a7e6f..b7a00e4194d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/WebBrowserEvent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/WebBrowserEvent.cs @@ -10,15 +10,8 @@ // Copied from WebBrowse.cs in winforms // -using System; -using System.ComponentModel; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; -using System.Windows; -using System.Text; using System.Windows.Navigation; -using MS.Internal.PresentationFramework; using System.Windows.Controls; using MS.Win32; using MS.Internal.AppModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/WebBrowserSite.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/WebBrowserSite.cs index d8bb6b3f8a2..37e365d1550 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/WebBrowserSite.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/WebBrowserSite.cs @@ -10,15 +10,8 @@ // Copied from WebBrowser.cs in winforms // -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; using MS.Win32; -using System.Security; using MS.Internal.Interop; -using MS.Internal.PresentationFramework; using System.Windows.Controls; using System.Windows.Interop; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/AccessorTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/AccessorTable.cs index 1cefa808957..83b99c794aa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/AccessorTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/AccessorTable.cs @@ -14,15 +14,7 @@ property. We cache the result of this discovery process in the AccessorTable; table lookup is cheaper than doing reflection again. \***************************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; // IBindingList -using System.Diagnostics; -using System.Reflection; // TypeDescriptor -using System.Windows; // SR using System.Windows.Threading; // Dispatcher -using MS.Internal; // Invariant.Assert namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/AsyncDataRequest.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/AsyncDataRequest.cs index 12773f0682d..00cd86b79c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/AsyncDataRequest.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/AsyncDataRequest.cs @@ -8,8 +8,6 @@ // Specs: Asynchronous Data Model.mht // -using System; - namespace MS.Internal.Data { /// Type for the work and completion delegates of an AsyncDataRequest diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingCollection.cs index cc4ef37085a..8b881dc95ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingCollection.cs @@ -9,16 +9,9 @@ // Specs: UIBind.mht // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Windows; -using System.Windows.Markup; using System.Windows.Data; -using MS.Utility; -using MS.Internal; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingExpressionUncommonField.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingExpressionUncommonField.cs index a500324d15b..01c6b26a5f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingExpressionUncommonField.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingExpressionUncommonField.cs @@ -7,7 +7,6 @@ // Description: Defines an UncommonField of type BindingExpression. // -using System; using System.Windows; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingValueChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingValueChangedEventArgs.cs index 936188b41f6..8e96c363301 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingValueChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingValueChangedEventArgs.cs @@ -8,8 +8,6 @@ // Specs: UIBinding.mht // -using System; - namespace MS.Internal.Data { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingWorker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingWorker.cs index 5f02b403e82..53f181d6ba3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingWorker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/BindingWorker.cs @@ -6,13 +6,9 @@ // Description: Defines BindingWorker base class. // -using System; -using System.Diagnostics; -using System.Reflection; using System.ComponentModel; using System.Windows; -using System.Windows.Controls; using System.Windows.Data; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ClrBindingWorker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ClrBindingWorker.cs index ae5e9c459f7..2b5997fb4a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ClrBindingWorker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ClrBindingWorker.cs @@ -6,23 +6,14 @@ // Description: Defines ClrBindingWorker object, workhorse for CLR bindings // -using System; -using System.Collections; using System.Reflection; -using System.Globalization; using System.Windows.Threading; using System.Threading; using System.ComponentModel; - -using System.Diagnostics; using System.Windows; using System.Windows.Controls; // Validation using System.Windows.Data; -using System.Windows.Markup; // for GetTypeFromName -using MS.Internal.Controls; // Validation -using MS.Internal.Utility; // for GetTypeFromName -using MS.Utility; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewGroupInternal.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewGroupInternal.cs index c4c4070dd13..5cf4dd3e171 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewGroupInternal.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewGroupInternal.cs @@ -8,10 +8,8 @@ // See spec at Grouping.mht // -using System; using System.Collections; // IEnumerator using System.ComponentModel; // PropertyChangedEventArgs, GroupDescription -using System.Diagnostics; // Debug using System.Windows; // DependencyProperty.UnsetValue using System.Windows.Data; // CollectionViewGroup using System.Windows.Threading; // Dispatcher diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewGroupRoot.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewGroupRoot.cs index ffb15fc6c85..c2a3ff8473c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewGroupRoot.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewGroupRoot.cs @@ -9,13 +9,10 @@ // See spec at Grouping.mht // -using System; using System.Collections; // IComparer -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ObservableCollection using System.Collections.Specialized; // INotifyCollectionChanged using System.ComponentModel; // PropertyChangedEventArgs, GroupDescription -using System.Diagnostics; // Debug.Assert using System.Globalization; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewProxy.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewProxy.cs index 41bd1c5e4d6..b246dca732f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewProxy.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CollectionViewProxy.cs @@ -9,9 +9,7 @@ // doesn't already have it. // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CommitManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CommitManager.cs index 9947e2166b4..2d54403ac10 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CommitManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CommitManager.cs @@ -6,16 +6,10 @@ // Description: CommitManager provides global services for committing dirty bindings. // -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; - using System.Windows; using System.Windows.Data; using System.Windows.Media; -using MS.Internal.Data; - namespace MS.Internal.Data { internal class CommitManager diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CompositeCollectionView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CompositeCollectionView.cs index 11199433d12..0c053c99a19 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CompositeCollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/CompositeCollectionView.cs @@ -9,19 +9,13 @@ // CollectionView.mht // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Data; -using MS.Internal; // Invariant.Assert -using MS.Internal.Controls; using System.Windows.Controls; using MS.Internal.Utility; -using MS.Utility; using MS.Internal.Hashing.PresentationFramework; // HashHelper #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindEngine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindEngine.cs index 2a13b41b33e..5c6b7092c4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindEngine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindEngine.cs @@ -6,22 +6,14 @@ // Description: Data binding engine. // -using System; -using System.Collections.Generic; // Dictionary using System.ComponentModel; -using System.Diagnostics; using System.Collections; using System.Collections.Specialized; -using System.Globalization; using System.Windows.Threading; -using System.Security; // using System.Threading; using System.Windows; using System.Windows.Data; -using System.Windows.Markup; -using MS.Internal.Data; -using MS.Internal; // Invariant.Assert namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindOperation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindOperation.cs index 38efc9a4314..bbedb85b7fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindOperation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindOperation.cs @@ -6,7 +6,6 @@ // Description: Analogous to DispatcherOperation - one unit of cross-thread work. // -using System; using System.Windows.Threading; namespace MS.Internal.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataExtensionMethods.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataExtensionMethods.cs index 216954e7921..35bf897d93c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataExtensionMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataExtensionMethods.cs @@ -6,11 +6,7 @@ // Description: Extension methods used by Data Services code // -using System; using System.Collections; -using System.Diagnostics; - -using System.Windows.Data; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DefaultAsyncDataDispatcher.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DefaultAsyncDataDispatcher.cs index 81507ae0578..9e9f7583a91 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DefaultAsyncDataDispatcher.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DefaultAsyncDataDispatcher.cs @@ -6,12 +6,9 @@ // Description: Default async scheduler for data operations. // -using System; using System.Collections; using System.Threading; using System.Windows; -using System.Windows.Data; -using MS.Internal; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DefaultValueConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DefaultValueConverter.cs index f93c7a4681d..57af5b63169 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DefaultValueConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DefaultValueConverter.cs @@ -8,7 +8,6 @@ // typically wraps a type converter. // -using System; using System.Globalization; using System.Collections; using System.ComponentModel; @@ -20,9 +19,6 @@ using System.Windows.Baml2006; // WpfKnownType using System.Windows.Markup; // IUriContext -using MS.Internal; // Invariant.Assert -using System.Diagnostics; - namespace MS.Internal.Data { #region DefaultValueConverter diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DifferencingCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DifferencingCollection.cs index a39e026136c..2a27497b504 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DifferencingCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DifferencingCollection.cs @@ -29,13 +29,10 @@ required that these be the same - you can Update against a different IEnumerable flexibility of the previous paragraph comes into play. \***************************************************************************/ -using System; using System.Collections; // IEnumerable -using System.Collections.Generic; // IList using System.Collections.ObjectModel; // ObservableCollection using System.Collections.Specialized; // INotifyCollectionChanged using System.ComponentModel; // PropertyChangedEventArgs -using MS.Internal; // Invariant.Assert namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DisplayMemberTemplateSelector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DisplayMemberTemplateSelector.cs index a25651f79fc..b6ff14a8be8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DisplayMemberTemplateSelector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DisplayMemberTemplateSelector.cs @@ -6,12 +6,9 @@ // Description: Defines DisplayMemberTemplateSelector class. // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Data; -using MS.Internal; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DynamicObjectAccessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DynamicObjectAccessor.cs index 5da2c9c58ed..fba78ec3e97 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DynamicObjectAccessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DynamicObjectAccessor.cs @@ -6,7 +6,6 @@ // Description: Accessors for dynamic objects // -using System; using SW = System.Windows; // SR namespace MS.Internal.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DynamicValueConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DynamicValueConverter.cs index c217f81b1dd..8ad75d2c376 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DynamicValueConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DynamicValueConverter.cs @@ -7,18 +7,10 @@ // and change value converters depending on changing source and target types // -using System; using System.Globalization; -using System.Collections; -using System.ComponentModel; - -using System.Reflection; using System.Windows; using System.Windows.Data; -using MS.Internal; // Invariant.Assert -using System.Diagnostics; - namespace MS.Internal.Data { // dynamically pick and switch a default value converter to convert between source and target type diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/EnumerableCollectionView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/EnumerableCollectionView.cs index 3869feb0f9b..8c6126bda58 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/EnumerableCollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/EnumerableCollectionView.cs @@ -6,14 +6,10 @@ // Description: Collection view over an IEnumerable. // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IAsyncDataDispatcher.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IAsyncDataDispatcher.cs index 6bd4bc96d53..83804d7253e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IAsyncDataDispatcher.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IAsyncDataDispatcher.cs @@ -8,9 +8,6 @@ // Specs: Asynchronous Data Model.mht // -using System; -using System.Windows.Data; - namespace MS.Internal.Data { /// Interface for the asynchronous data dispatcher. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IndexedEnumerable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IndexedEnumerable.cs index 3e9ab066c6f..5766fb23659 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IndexedEnumerable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IndexedEnumerable.cs @@ -8,16 +8,11 @@ // to read item[N], the following indices will be a sequence for index N+1, N+2 etc. // -using System; using System.Collections; using System.Collections.Specialized; -using System.ComponentModel; using System.Reflection; - -using System.Diagnostics; using System.Windows; using System.Windows.Data; -using MS.Utility; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IndexerPropertyInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IndexerPropertyInfo.cs index 6e1e40b44a6..1feab869545 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IndexerPropertyInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/IndexerPropertyInfo.cs @@ -8,7 +8,6 @@ // property in SourceValueInfo is really a named indexed property (from VB). // -using System; using System.Reflection; namespace MS.Internal.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingBlock.cs index 4b197c14d64..6f3b9bd43a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingBlock.cs @@ -6,14 +6,6 @@ // Description: A component of the list data structure used for live shaping. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; - -using System.Windows; -using System.Windows.Data; - namespace MS.Internal.Data { internal class LiveShapingBlock : RBNode diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingItem.cs index 1fd02cf4da9..684a8de9af0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingItem.cs @@ -6,9 +6,6 @@ // Description: A proxy for a source item, used in live shaping. // -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingList.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingList.cs index fb0b1fb6e7a..b7e9b19356b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingList.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingList.cs @@ -39,14 +39,10 @@ move from one list to the other. view. */ -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; using System.Windows; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingTree.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingTree.cs index ba47b8723bd..a943bf8368b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingTree.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingTree.cs @@ -6,8 +6,6 @@ // Description: Root of the RB tree used for live shaping. // -using System; -using System.Collections; using System.Collections.Specialized; namespace MS.Internal.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ObjectRef.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ObjectRef.cs index f6fea5ec928..c842b0fc10b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ObjectRef.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ObjectRef.cs @@ -9,18 +9,12 @@ // See spec at Data Binding.mht // -using System; -using System.Collections; -using System.Diagnostics; using System.Globalization; -using System.Reflection; using System.Windows; using System.Windows.Media; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Markup; -using MS.Internal; -using MS.Internal.Utility; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ParameterCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ParameterCollection.cs index ce8fe46998f..acd72f89940 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ParameterCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ParameterCollection.cs @@ -7,7 +7,6 @@ // and can be made Read-Only. Created for ObjectDataProvider. // -using System; using System.Collections; // IList using System.Collections.ObjectModel; // Collection using System.Windows; // SR diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PathParser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PathParser.cs index db60db63b22..636786cda7b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PathParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PathParser.cs @@ -6,7 +6,6 @@ // Description: Parser for the Path of a (CLR) binding // -using System; using System.Collections; using System.Text; // StringBuilder using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PropertyPathWorker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PropertyPathWorker.cs index f8883a721aa..7bc06aa6e95 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PropertyPathWorker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PropertyPathWorker.cs @@ -6,21 +6,15 @@ // Description: Defines PropertyPathWorker object, workhorse for CLR bindings // -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; using System.Globalization; using System.Text; -using System.Windows.Threading; using System.Windows; using System.Windows.Controls; // Validation using System.Windows.Data; using System.Windows.Markup; -using MS.Internal; -using MS.Internal.Hashing.PresentationFramework; // HashHelper namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/RBNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/RBNode.cs index 7306f3519ad..c06e2881eb1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/RBNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/RBNode.cs @@ -6,11 +6,7 @@ // Description: Node in a red-black tree. // -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.IO; using System.Text; using TypeConverterHelper = System.Windows.Markup.TypeConverterHelper; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/RBTree.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/RBTree.cs index 2db5f8b92b9..5714d9acd0c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/RBTree.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/RBTree.cs @@ -38,11 +38,7 @@ subtree. This permits O(log n) implementations of search-by-index, 3. Fingers. Short-lived pointers to a position within the data structure. */ -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; using System.Text; using System.Windows; // SR using TypeConverterHelper = System.Windows.Markup.TypeConverterHelper; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/SortFieldComparer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/SortFieldComparer.cs index 890ea5f1b7a..67dc212f1b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/SortFieldComparer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/SortFieldComparer.cs @@ -8,14 +8,10 @@ // See spec at IDataCollection.mht // -using System; using System.ComponentModel; using System.Collections; -using System.Collections.Generic; -using System.Reflection; using System.Globalization; -using MS.Utility; using System.Windows; namespace MS.Internal.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/StaticPropertyChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/StaticPropertyChangedEventManager.cs index 425756a9e38..9d9a13acecb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/StaticPropertyChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/StaticPropertyChangedEventManager.cs @@ -7,12 +7,9 @@ // pattern. See WeakEventTable.cs for an overview. // -using System; using System.Collections; // ICollection -using System.Collections.Generic; // List using System.Collections.Specialized; // HybridDictionary using System.ComponentModel; // INotifyPropertyChanged -using System.Diagnostics; // Debug using System.Reflection; // EventInfo using System.Windows; // WeakEventManager diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ValueChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ValueChangedEventManager.cs index 7e1e7ece193..7ad8cc59a4d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ValueChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ValueChangedEventManager.cs @@ -26,15 +26,10 @@ Callback method deliver the "event" to the listeners that are interested in that property. \****************************************************************************/ -using System; using System.Collections; // ICollection -using System.Collections.Generic; // List using System.Collections.Specialized; // HybridDictionary using System.ComponentModel; // PropertyDescriptor -using System.Diagnostics; // Debug -using System.Reflection; // MethodInfo using System.Windows; // WeakEventManager -using MS.Internal.PresentationFramework; // SR namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ValueTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ValueTable.cs index 0df94e82a6e..cee313508e0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ValueTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ValueTable.cs @@ -20,14 +20,10 @@ The malfeasant properties seem to be isolated to ADO-related classes in See the ShouldCache method. \***************************************************************************/ -using System; using System.Collections; -using System.Collections.Generic; // IEnumerable using System.Collections.Specialized; // HybridDictionary using System.ComponentModel; // IBindingList -using System.Reflection; // TypeDescriptor using System.Windows; // SR -using MS.Internal; // Invariant.Assert namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ViewManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ViewManager.cs index 3650da0a397..203d24acd21 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ViewManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/ViewManager.cs @@ -124,11 +124,9 @@ mitigate it. \***************************************************************************/ -using System; using System.ComponentModel; using System.Collections; using System.Collections.Specialized; -using System.Diagnostics; using System.Reflection; using System.Windows; // for exception strings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XDeferredAxisSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XDeferredAxisSource.cs index 584c37e209a..c77702852df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XDeferredAxisSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XDeferredAxisSource.cs @@ -31,8 +31,6 @@ which solves (2). At each request to GetValue, we update the contents of dependency on XLinq. Reflection saves the day. \***************************************************************************/ -using System; -using System.Diagnostics; using System.Collections; using System.Collections.ObjectModel; // ReadOnlyObservableCollection using System.Collections.Specialized; // HybridDictionary diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlBindingWorker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlBindingWorker.cs index ee293d23092..fe2cc0c5a02 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlBindingWorker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlBindingWorker.cs @@ -6,20 +6,14 @@ // Description: Defines XmlBindingWorker object, workhorse for XML bindings // -using System; using System.Xml; using System.Xml.XPath; using System.Collections; using System.ComponentModel; -using System.Reflection; -using System.Windows.Threading; -using System.Threading; -using System.Diagnostics; using System.Windows; using System.Windows.Data; using System.Windows.Controls; // IGeneratorHost using System.Windows.Markup; -using MS.Internal.Data; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlDataCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlDataCollection.cs index 9925d398882..2542451c2c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlDataCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlDataCollection.cs @@ -10,9 +10,7 @@ using System.Xml; using System.Collections.ObjectModel; -using System.Collections.Specialized; using System.Windows.Data; -using System.Windows.Markup; namespace MS.Internal.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlNodeChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlNodeChangedEventManager.cs index 332d3a843ff..5ff3375222f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlNodeChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlNodeChangedEventManager.cs @@ -7,7 +7,6 @@ // pattern. See WeakEventTable.cs for an overview. // -using System; using System.Xml; using System.Windows; // WeakEventManager diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/DataStreams.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/DataStreams.cs index fb38fea8b64..93de5d6ac3c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/DataStreams.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/DataStreams.cs @@ -8,20 +8,13 @@ // -using System; using System.Collections; using System.Collections.Specialized; -using System.Diagnostics; using System.Formats.Nrbf; using System.IO; -using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; -using System.Security; -using MS.Internal.AppModel; using System.Windows; -using System.Windows.Navigation; using System.Windows.Controls; -using System.Windows.Controls.Primitives; namespace MS.Internal.AppModel { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/FrameworkObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/FrameworkObject.cs index cfa281271d8..6907f1ecfca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/FrameworkObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/FrameworkObject.cs @@ -38,14 +38,11 @@ you would write fo.SomeMethod(arg); */ -using System; using System.Windows; using System.Windows.Markup; using System.Windows.Media; // Visual, etc. using System.Windows.Media.Media3D; // Visual3D, etc. -using System.IO; - namespace MS.Internal { internal struct FrameworkObject diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Generated/AvTraceMessages.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Generated/AvTraceMessages.cs index 8d529b662eb..288ff8f0f9b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Generated/AvTraceMessages.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Generated/AvTraceMessages.cs @@ -5,9 +5,6 @@ // NOTE: This file was generated by $(WpfCodeGenDir)AvTrace\AvTraceMessages.tt. // Any manual updates to this file will overwritten. -using System; -using System.Diagnostics; - namespace MS.Internal { static internal partial class TraceData diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceContent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceContent.cs index 6369c3f789e..01205cd4248 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceContent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceContent.cs @@ -6,14 +6,8 @@ // Description: Utility that handles parsing Baml Resource Content // -using System; using System.Text; using System.Text.RegularExpressions; -using System.Collections; -using System.Diagnostics; -using System.Collections.Generic; - -using System.Windows; namespace MS.Internal.Globalization { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceDeserializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceDeserializer.cs index a74a4fd7bc0..ee5c731e34f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceDeserializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceDeserializer.cs @@ -5,15 +5,8 @@ // Internal class that build the baml tree for localization -using System; using System.IO; -using System.Globalization; -using System.Runtime.InteropServices; using System.Collections; -using System.Collections.Generic; - -using System.Diagnostics; -using System.Text; using System.Windows; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceSerializer.cs index 5325e1c9d4e..113cf1ac87a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlResourceSerializer.cs @@ -5,17 +5,9 @@ // Class that implements BamlResourceSerializer -using System; using System.IO; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Collections; -using System.Collections.Generic; using System.Windows.Markup; using System.Windows.Markup.Localizer; -using System.Diagnostics; -using System.Text; -using System.Windows; namespace MS.Internal.Globalization { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeMap.cs index 8e2bfdd3b72..8478f0c95ee 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeMap.cs @@ -4,16 +4,11 @@ // Class that implements BamlTreeMap. -using System; using System.IO; using System.Xml; -using System.Globalization; using System.Collections; -using System.Collections.Generic; using System.Windows.Markup; using System.Windows.Markup.Localizer; -using System.Diagnostics; -using System.Text; using System.Windows; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeNode.cs index 487d800778f..300b1cffe31 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeNode.cs @@ -6,10 +6,6 @@ // Description: BamlTreeNode structures // -using System; -using System.Collections.Generic; -using System.Diagnostics; - using System.Windows; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeUpdater.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeUpdater.cs index ddd673f46c7..682ed386150 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeUpdater.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeUpdater.cs @@ -2,18 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.IO; -using System.Globalization; -using System.Runtime.InteropServices; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; using System.Text; -using System.ComponentModel; using System.Xml; -using System.Windows; using System.Windows.Markup; using System.Windows.Markup.Localizer; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizableResourceBuilder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizableResourceBuilder.cs index b656c6467a0..2a8917c5f12 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizableResourceBuilder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizableResourceBuilder.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -using System.Collections.Generic; using System.Windows; using System.Windows.Markup; using System.Windows.Markup.Localizer; -using System.Diagnostics; using System.Text; namespace MS.Internal.Globalization diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizationComments.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizationComments.cs index fcafe2e7db3..5e36615c7a9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizationComments.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizationComments.cs @@ -8,9 +8,7 @@ using System; using System.Diagnostics; -using System.IO; using System.Text; -using System.Text.RegularExpressions; using System.Collections.Generic; #if !PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Helper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Helper.cs index a32a75daecc..3a5de2b7930 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Helper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Helper.cs @@ -7,25 +7,16 @@ // Implements some helper functions. // -using MS.Internal.Utility; -using System; using System.Collections; using System.Collections.ObjectModel; // Collection using System.ComponentModel; -using System.Diagnostics; -using System.IO.Packaging; - using System.Reflection; using System.Windows; using System.Windows.Data; // BindingBase using System.Windows.Markup; // IProvideValueTarget using System.Windows.Media; -using System.Security; - -using MS.Internal.AppModel; using System.Windows.Threading; -using System.Collections.Generic; using MS.Internal.Hashing.PresentationFramework; using System.Windows.Controls.Primitives; using System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ByteStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ByteStream.cs index 41efa353359..dde2981b892 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ByteStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ByteStream.cs @@ -8,14 +8,10 @@ // -using System; -using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; // for IStream using System.Windows; using MS.Win32; // for NativeMethods -using System.Security; // for marking critical methods namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ContentDescriptor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ContentDescriptor.cs index 0c737492f57..66cf9580d44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ContentDescriptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ContentDescriptor.cs @@ -9,8 +9,6 @@ // InitElementDictionary. // -using System; - namespace MS.Internal.IO.Packaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/CorePropertiesFilter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/CorePropertiesFilter.cs index fa34cecacf6..1f90a0beaf5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/CorePropertiesFilter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/CorePropertiesFilter.cs @@ -10,7 +10,6 @@ // EncryptedPackageEnvelope respectively. // -using System; using System.Windows; using System.IO.Packaging; using MS.Internal.Interop; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/EncryptedPackageFilter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/EncryptedPackageFilter.cs index eb49d519ace..a422832b37c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/EncryptedPackageFilter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/EncryptedPackageFilter.cs @@ -9,7 +9,6 @@ // is an EncryptedPackageEnvelope. // -using System; using System.Windows; using System.Runtime.InteropServices; using System.IO.Packaging; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/FixedPageContentExtractor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/FixedPageContentExtractor.cs index 9bad4c88eb2..ac0665321a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/FixedPageContentExtractor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/FixedPageContentExtractor.cs @@ -7,7 +7,6 @@ // Given a DOM node for a fixed page, enumerates its text content. // -using System; using System.Xml; namespace MS.Internal.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/IndexingContentUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/IndexingContentUnit.cs index 796d6b45b82..8fed2f1287d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/IndexingContentUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/IndexingContentUnit.cs @@ -9,7 +9,6 @@ // -using System; using MS.Internal.Interop; // for CHUNK_BREAKTYPE namespace MS.Internal.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedFilter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedFilter.cs index 6699a79a608..e56d6c50ba7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedFilter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedFilter.cs @@ -9,21 +9,12 @@ // -using System.Diagnostics; -using System; using System.Windows; // for ExceptionStringTable -using System.IO; // for FileAccess using System.Runtime.InteropServices; -using System.Collections; -using System.Security; // for SecurityCritical using MS.Internal.Interop; // for CHUNK_BREAKTYPE, etc. -using MS.Internal; // for Invariant -using MS.Win32; // for NativeMethods -using MS.Internal.PresentationFramework; // SecurityHelper // Not using the whole of System.Runtime.InteropServices.ComTypes so as to avoid collisions. -using IPersistFile = System.Runtime.InteropServices.ComTypes.IPersistFile; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedIStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedIStream.cs index 4c46d87b5b8..0f9dc155c6b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedIStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedIStream.cs @@ -8,14 +8,10 @@ // object of type System.IO.Stream. // -using System; using System.IO; -using System.Diagnostics; // for Assert -using System.IO.Packaging; // for native APIs using System.Runtime.InteropServices; // for Marshal, COMException, etc. using System.Runtime.InteropServices.ComTypes; // for IStream using System.Windows; // for ExceptionStringTable -using System.Security; // for SecurityCritical using MS.Win32; // for NativeMethods diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/PackageFilter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/PackageFilter.cs index e3939206bae..efa3129eaac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/PackageFilter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/PackageFilter.cs @@ -7,21 +7,17 @@ // Managed equivalent of IFilter implemenation for Package // -using System; using System.IO; using System.IO.Packaging; using System.Collections; -using System.Diagnostics; // For Assert using System.Runtime.InteropServices; // For Marshal.ThrowExceptionForHR using System.Windows; // for ExceptionStringTable using Microsoft.Win32; // For RegistryKey using MS.Internal.Interop; // For STAT_CHUNK, etc. -using MS.Internal; // For ContentType using MS.Internal.Utility; // For BindUriHelper using MS.Internal.IO.Packaging.Extensions; using Package = System.IO.Packaging.Package; -using PackUriHelper = System.IO.Packaging.PackUriHelper; using InternalPackUriHelper = MS.Internal.IO.Packaging.PackUriHelper; namespace MS.Internal.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/UnsafeIndexingFilterStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/UnsafeIndexingFilterStream.cs index 46987bc5078..1a1cb7e3ec7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/UnsafeIndexingFilterStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/UnsafeIndexingFilterStream.cs @@ -12,13 +12,11 @@ // in Adam Nathan's ".Net and COM". // -using System; using System.IO; using System.Runtime.InteropServices; // For Marshal using System.Windows; // for ExceptionStringTable using MS.Win32; // For NativeMethods using MS.Internal.Interop; // for IStream -using System.Security; // For SecurityCritical namespace MS.Internal.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XamlFilter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XamlFilter.cs index de9253c70c0..c67be78a067 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XamlFilter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XamlFilter.cs @@ -11,19 +11,13 @@ // #define TRACE #endif -using System; using System.IO; using System.Xml; -using MS.Win32; // For SafeNativeMethods using System.Globalization; // For CultureInfo -using System.Diagnostics; // For Assert using System.Collections; // For Stack and Hashtable -using System.Collections.Generic; // For List<> using System.Runtime.InteropServices; // For COMException -using System.Runtime.InteropServices.ComTypes; // For IStream, etc. using System.Windows; // for ExceptionStringTable using MS.Internal.Interop; // for CHUNK_BREAKTYPE (and other IFilter-related definitions) -using MS.Internal; // for Invariant namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XmlFixedPageInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XmlFixedPageInfo.cs index 6e47a01e03d..93e4d7cda81 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XmlFixedPageInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XmlFixedPageInfo.cs @@ -8,11 +8,8 @@ // The class functions as an array of XmlGlyphRunInfo's in markup order. // -using System; using System.Windows; // For ExceptionStringTable using System.Xml; // For DOM objects -using System.Diagnostics; // For Assert -using System.Globalization; // For CultureInfo namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XmlGlyphRunInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XmlGlyphRunInfo.cs index ae2d0ed037e..74d0caa241f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XmlGlyphRunInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XmlGlyphRunInfo.cs @@ -8,9 +8,7 @@ // The class functions as an array of XmlGlyphRunInfo's in markup order. // -using System; using System.Xml; // For DOM objects -using System.Diagnostics; // For Assert using System.Globalization; // For CultureInfo using System.Windows; // For ExceptionStringTable using Windows = System.Windows; // For Windows.Point (as distinct from System.Drawing.Point) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XpsFilter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XpsFilter.cs index 674f6b2e750..f45de9fd061 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XpsFilter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/XpsFilter.cs @@ -12,19 +12,13 @@ // ContainerFilterImpl and IndexingFilterMarshaler. // -using System; using System.IO; using System.IO.Packaging; -using System.Diagnostics; // For Assert using System.Runtime.InteropServices; // For Marshal.ThrowExceptionForHR -using System.Globalization; // For CultureInfo using System.Windows; // for ExceptionStringTable -using System.Security; // For SecurityCritical using MS.Win32; using MS.Internal.Interop; // For STAT_CHUNK, etc. -using MS.Internal.IO.Packaging; // For ManagedIStream -using MS.Internal; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/indexingfiltermarshaler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/indexingfiltermarshaler.cs index dc43abb5739..45a720e31b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/indexingfiltermarshaler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/indexingfiltermarshaler.cs @@ -10,16 +10,10 @@ // -using System.Diagnostics; -using System; using System.Runtime.InteropServices; -using System.Collections; using System.Windows; // for ExceptionStringTable -using System.Security; // for SecurityCritical using MS.Internal.Interop; // for STAT_CHUNK, etc. -using MS.Internal; // for Invariant -using MS.Win32; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IWeakHashtable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IWeakHashtable.cs index 41165745a29..b0210726e0b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IWeakHashtable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IWeakHashtable.cs @@ -3,11 +3,10 @@ // See the LICENSE file in the project root for more information. +using System.Collections; + namespace MS.Internal { - using System; - using System.Collections; - internal interface IWeakHashtable { // Hashtable members diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/InheritedPropertyChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/InheritedPropertyChangedEventArgs.cs index 5f1d301fb5d..eb334005469 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/InheritedPropertyChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/InheritedPropertyChangedEventArgs.cs @@ -6,7 +6,6 @@ // Description: Event args for the (internal) InheritedPropertyChanged event // -using System; using System.Windows; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardData.cs index 152ba48d2fc..d58a81e0a28 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardData.cs @@ -11,9 +11,7 @@ // -using System; using System.Windows; -using System.Security; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardProcessor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardProcessor.cs index 4baff8170d5..cefa7b7ec61 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardProcessor.cs @@ -10,20 +10,14 @@ // Features: // -using System; using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Security; -using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Ink; using System.Windows.Media; using System.Windows.Markup; using System.Xml; -using MS.Internal.PresentationFramework; //security helper namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/DrawingAttributesDefaultValueFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/DrawingAttributesDefaultValueFactory.cs index 4759ca73770..902103df9d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/DrawingAttributesDefaultValueFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/DrawingAttributesDefaultValueFactory.cs @@ -6,8 +6,6 @@ // Description: DefaultValueFactory for DrawingAttributes // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Ink; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EditBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EditBehavior.cs index acfc7b9af94..6c98e541486 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EditBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EditBehavior.cs @@ -10,20 +10,8 @@ // -using System; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows.Input; -using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Interop; -using System.Windows.Navigation; using System.Windows.Media; namespace MS.Internal.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EditingCoordinator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EditingCoordinator.cs index 6a5b8fb090b..c494e6be139 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EditingCoordinator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EditingCoordinator.cs @@ -9,24 +9,9 @@ // -using System; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; -using System.Windows.Ink; using System.Windows.Input; using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Interop; -using System.Windows.Navigation; -using System.Windows.Media; -using MS.Utility; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ElementsClipboardData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ElementsClipboardData.cs index bd7325a359c..73d9178767e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ElementsClipboardData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ElementsClipboardData.cs @@ -10,11 +10,7 @@ // -using System; -using System.Collections; -using System.Collections.Generic; using System.Windows; -using System.Windows.Controls; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EraserBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EraserBehavior.cs index 85aa8881e04..a27fa392eb1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EraserBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/EraserBehavior.cs @@ -10,23 +10,11 @@ // -using System; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows.Input; using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; using System.Windows.Ink; -using System.Windows.Interop; -using System.Windows.Navigation; using System.Windows.Media; -using Swi = System.Windows.Ink; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/HighContrastHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/HighContrastHelper.cs index 80931afe616..2b35092b6c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/HighContrastHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/HighContrastHelper.cs @@ -10,10 +10,6 @@ // -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ISFClipboardData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ISFClipboardData.cs index 2538286fdbf..89334ad9891 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ISFClipboardData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ISFClipboardData.cs @@ -11,12 +11,9 @@ // -using System; using System.IO; using System.Windows; -using System.Windows.Controls; using System.Windows.Ink; -using System.Security; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/InkCanvasSelection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/InkCanvasSelection.cs index 5f5321fb26f..e5471e81b28 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/InkCanvasSelection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/InkCanvasSelection.cs @@ -8,25 +8,13 @@ // -using MS.Utility; -using MS.Internal; using MS.Internal.Controls; -using MS.Internal.Ink; -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.ComponentModel; -using System.ComponentModel.Design; using System.Windows; using System.Windows.Media; using System.Windows.Documents; using System.Windows.Ink; -using System.Windows.Input; using System.Windows.Controls; -using System.Windows.Markup; -using System.Windows.Threading; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/InkCollectionBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/InkCollectionBehavior.cs index 44ffa3e4535..5ea49295a94 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/InkCollectionBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/InkCollectionBehavior.cs @@ -11,20 +11,11 @@ // -using System; -using System.Collections; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Windows.Controls; using System.Windows.Ink; -using System.Windows.Interop; -using System.ComponentModel; -using System.Collections.Specialized; -using Swi = System.Windows.Ink; -using System.Windows.Documents; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoHelper.cs index 6434555fce9..dd9fef6bdbe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoHelper.cs @@ -3,13 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.Windows; using System.Windows.Media; -using System.Windows.Ink; -using System.Collections; -using System.Collections.Generic; -using System.Windows.Documents; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoSelectionBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoSelectionBehavior.cs index 90be2851d95..28ce02fb6df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoSelectionBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoSelectionBehavior.cs @@ -10,20 +10,11 @@ using MS.Internal.Controls; -using System; -using System.ComponentModel; -using System.ComponentModel.Design; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows.Input; using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; using System.Windows.Ink; -using System.Windows.Interop; -using System.Windows.Navigation; using System.Windows.Media; namespace MS.Internal.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/PenCursorManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/PenCursorManager.cs index b96341d3c34..2b7e87da383 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/PenCursorManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/PenCursorManager.cs @@ -12,11 +12,6 @@ //#define CURSOR_DEBUG using MS.Win32; -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Runtime.ConstrainedExecution; -using System.Security; using System.Windows; using System.Windows.Controls; using System.Windows.Ink; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/SelectionEditingBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/SelectionEditingBehavior.cs index 2bdd4cced3f..126592ff2bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/SelectionEditingBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/SelectionEditingBehavior.cs @@ -9,22 +9,9 @@ -using System; -using System.Diagnostics; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.Collections; -using System.Collections.Generic; using System.Windows.Input; using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Interop; -using System.Windows.Navigation; -using System.Windows.Media; -using System.Windows.Ink; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/SelectionEditor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/SelectionEditor.cs index 90054eeb525..bc1656c125d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/SelectionEditor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/SelectionEditor.cs @@ -11,24 +11,9 @@ //#define TRACE_MAJOR // DO NOT LEAVE ENABLED IN CHECKED IN CODE //#define TRACE_ADDITIONAL // DO NOT LEAVE ENABLED IN CHECKED IN CODE -using MS.Internal; -using MS.Internal.Controls; -using System; -using System.Security; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.Diagnostics; using System.Windows; -using System.Windows.Media; -using System.Windows.Documents; using System.Windows.Input; using System.Windows.Controls; -using System.Windows.Markup; -using System.Threading; -using System.Windows.Ink; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/StrokeCollectionDefaultValueFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/StrokeCollectionDefaultValueFactory.cs index 87e0e703a6a..7a05a5fc663 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/StrokeCollectionDefaultValueFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/StrokeCollectionDefaultValueFactory.cs @@ -7,10 +7,7 @@ // -using System; -using System.Diagnostics; using System.Windows; -using System.Windows.Controls; using System.Windows.Ink; namespace MS.Internal.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/StylusEditingBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/StylusEditingBehavior.cs index 0819bdb69eb..570d92955a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/StylusEditingBehavior.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/StylusEditingBehavior.cs @@ -2,22 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.Collections; -using System.Collections.Generic; using System.Windows.Input; -using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Interop; -using System.Windows.Navigation; -using System.Windows.Media; -using System.Security; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/TextClipboardData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/TextClipboardData.cs index bf2f22ecc7f..af10858317e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/TextClipboardData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/TextClipboardData.cs @@ -8,13 +8,8 @@ // It also can get the unicode text from the IDataObject and create a corresponding textbox. // -using System; -using System.Collections; -using System.Collections.Generic; using System.Windows; using System.Windows.Controls; -using System.Windows.Markup; -using System.Text; namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/XamlClipboardData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/XamlClipboardData.cs index 2ca03e10a10..cfdac017e95 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/XamlClipboardData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/XamlClipboardData.cs @@ -10,16 +10,9 @@ // -using System; -using System.Collections; -using System.Collections.Generic; using System.Windows; -using System.Windows.Controls; using System.Windows.Markup; -using System.Security; using System.Text; -using System.Diagnostics; -using MS.Internal; //security helper from PresentationCore namespace MS.Internal.Ink { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Interop/IndexingFilter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Interop/IndexingFilter.cs index b3d4821d28a..08bfbf156c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Interop/IndexingFilter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Interop/IndexingFilter.cs @@ -11,7 +11,6 @@ // -using System; using System.Runtime.InteropServices; using MS.Internal.IO.Packaging; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Interop/InternalDispatchObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Interop/InternalDispatchObject.cs index 48cf3a6ced8..9ee26866729 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Interop/InternalDispatchObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Interop/InternalDispatchObject.cs @@ -40,16 +40,13 @@ // -using System; -using System.Security; using System.Reflection; -using System.Collections.Generic; using System.Runtime.InteropServices; using System.Globalization; namespace MS.Internal.Interop { -internal abstract class InternalDispatchObject : IReflect + internal abstract class InternalDispatchObject : IReflect { /// /// DISPID->MethodInfo map used by InvokeMember() diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/KnownBoxes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/KnownBoxes.cs index 2e5f034b4f1..5dce5148e1f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/KnownBoxes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/KnownBoxes.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows; -using System.Windows.Controls; namespace MS.Internal.KnownBoxes { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/LayoutDump.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/LayoutDump.cs index 6f075dbcd44..106456ae4a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/LayoutDump.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/LayoutDump.cs @@ -6,15 +6,12 @@ // Description: Set of layout tree verification utilities. // -using System; using System.IO; using System.Xml; using System.Windows; using System.Globalization; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Windows.Media; using System.Windows.Documents; using System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/ListOfObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/ListOfObject.cs index 40cd0cd7ce2..54f5b362f44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/ListOfObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/ListOfObject.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Markup/StaticExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Markup/StaticExtension.cs index fab6f804f37..0cf0a313b67 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Markup/StaticExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Markup/StaticExtension.cs @@ -9,14 +9,7 @@ * * \***************************************************************************/ -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; using System.Windows.Input; -using System.Reflection; -using MS.Internal.WindowsBase; -using MS.Utility; -using System.Runtime.CompilerServices; using System.Windows.Markup; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/MatchedTextInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/MatchedTextInfo.cs index 8b6cc2e45c1..134e07841f0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/MatchedTextInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/MatchedTextInfo.cs @@ -7,9 +7,6 @@ // Description: Holds the information regarding the matched text from text search // -using System; -using System.Windows; - namespace System.Windows.Controls { internal class MatchedTextInfo diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Navigation/BindStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Navigation/BindStream.cs index 7fea021c178..6a4a446109e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Navigation/BindStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Navigation/BindStream.cs @@ -9,11 +9,8 @@ // -using System; using System.IO; -using System.Security; // SecurityCritical attribute using MS.Internal.AppModel; -using System.Net; using System.Windows.Threading; //DispatcherObject using System.Windows.Markup; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Navigation/JournalEntryStack.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Navigation/JournalEntryStack.cs index 90190d19164..ae11d187f08 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Navigation/JournalEntryStack.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Navigation/JournalEntryStack.cs @@ -2,17 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.Collections.Specialized; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Threading; - -using MS.Internal; -using MS.Internal.AppModel; -using MS.Utility; -using System.ComponentModel; namespace System.Windows.Navigation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PrePostDescendentsWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PrePostDescendentsWalker.cs index 4a4f884039d..e1c204228b1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PrePostDescendentsWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PrePostDescendentsWalker.cs @@ -9,10 +9,7 @@ // -using System; -using System.Diagnostics; using System.Windows; -using MS.Utility; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/NativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/NativeMethods.cs index 85fc9c055f8..64b6e2c539b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/NativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/NativeMethods.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace MS.Internal.Printing { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/PrintDlgExMarshaler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/PrintDlgExMarshaler.cs index 0c52f92bd19..6916ec355e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/PrintDlgExMarshaler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/PrintDlgExMarshaler.cs @@ -4,11 +4,9 @@ #if !DONOTREFPRINTINGASMMETA -using System; using System.Printing.Interop; using System.Printing; using System.Runtime.InteropServices; -using System.Security; using System.Windows.Controls; namespace MS.Internal.Printing diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/UnsafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/UnsafeNativeMethods.cs index cf409ea2445..c38f611dc7d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/UnsafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/UnsafeNativeMethods.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; using MS.Internal.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/Win32PrintDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/Win32PrintDialog.cs index cc4c3cd9d66..5fc0e52d1a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/Win32PrintDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/Win32PrintDialog.cs @@ -5,11 +5,9 @@ #if !DONOTREFPRINTINGASMMETA -using System; using System.Printing.Interop; using System.Printing; using System.Runtime.InteropServices; -using System.Security; using System.Windows.Controls; namespace MS.Internal.Printing diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Progressivity/IByteRangeDownloaderService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Progressivity/IByteRangeDownloaderService.cs index c9d8a7029ba..518746f0537 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Progressivity/IByteRangeDownloaderService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Progressivity/IByteRangeDownloaderService.cs @@ -27,10 +27,8 @@ // -using System; using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; -using System.Security; namespace MS.Internal.Progressivity { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BackgroundFormatInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BackgroundFormatInfo.cs index 5e83e58c636..313d1c0b1ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BackgroundFormatInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BackgroundFormatInfo.cs @@ -8,7 +8,6 @@ // -using System; using MS.Internal.Documents; // FlowDocumentFormatter using System.Windows.Threading; // DispatcherTimer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BaseParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BaseParaClient.cs index 56907252393..7fca4ce24d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BaseParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BaseParaClient.cs @@ -7,15 +7,7 @@ // paragraph in PTS world. // -using System; -using System.Collections.Generic; // ReadOnlyCollection -using System.Collections; -using System.Diagnostics; -using System.Security; using System.Windows; -using System.Windows.Documents; // TextPointer -using System.Windows.Media; -using MS.Internal; using MS.Internal.Documents; // ParagraphResult using MS.Internal.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BaseParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BaseParagraph.cs index f299323aa81..3a38649c42d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BaseParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BaseParagraph.cs @@ -7,8 +7,6 @@ // of a text based content. // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Documents; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BreakRecordTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BreakRecordTable.cs index d5fac2cdbaa..cfbe01fcc51 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BreakRecordTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BreakRecordTable.cs @@ -8,8 +8,6 @@ // -using System; // WeakReference, ... -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ReadOnlyCollection using System.Windows.Documents; // FlowDocument, TextPointer using MS.Internal.Documents; // TextDocumentView diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/CellParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/CellParaClient.cs index 523bf4a4b6f..e0ddd2a6f65 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/CellParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/CellParaClient.cs @@ -10,14 +10,9 @@ using MS.Internal.Text; using MS.Internal.Documents; using MS.Internal.PtsTable; -using System.Security; using System.Windows; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Threading; -using System; -using System.Diagnostics; -using System.Collections.Generic; using System.Collections.ObjectModel; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/CellParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/CellParagraph.cs index 96984bd0a2d..0bfa8556c22 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/CellParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/CellParagraph.cs @@ -7,12 +7,8 @@ // -using System; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Documents; -using MS.Internal.PtsHost; using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ColumnPropertiesGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ColumnPropertiesGroup.cs index d1ffddec15f..61cc43d0636 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ColumnPropertiesGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ColumnPropertiesGroup.cs @@ -8,12 +8,9 @@ // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Media; using System.Windows.Documents; -using MS.Internal.Text; namespace MS.Internal.PtsHost { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParaClient.cs index 1b9ea84e11e..887466e66c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParaClient.cs @@ -9,12 +9,7 @@ // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParagraph.cs index a9e66414bd6..c75b411089f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParagraph.cs @@ -13,15 +13,10 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Diagnostics; -using System.Security; // SecurityCritical using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; -using MS.Internal.Text; using MS.Internal.Documents; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/DirtyTextRange.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/DirtyTextRange.cs index 06d747c8f95..5b40eab29f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/DirtyTextRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/DirtyTextRange.cs @@ -6,8 +6,6 @@ // Description: Dirty text range describes change in the TextContainer. // -using System; -using System.Windows.Controls; using System.Windows.Documents; namespace MS.Internal.PtsHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/DtrList.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/DtrList.cs index 93ce545d655..bf702863fc4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/DtrList.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/DtrList.cs @@ -7,10 +7,6 @@ // contains information about tree changes. // - -using System; -using System.Diagnostics; - namespace MS.Internal.PtsHost { // ---------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/EmbeddedObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/EmbeddedObject.cs index c7483741a65..67fdc11ffb1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/EmbeddedObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/EmbeddedObject.cs @@ -7,7 +7,6 @@ // Description: Definition for embedded object inside a text paragraph. // -using System; using System.Windows; using MS.Internal.Documents; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ErrorHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ErrorHandler.cs index 1b94b9d4dfc..fac843fb250 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ErrorHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ErrorHandler.cs @@ -7,7 +7,6 @@ // -using System; using System.Globalization; namespace MS.Internal.PtsHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureHelper.cs index c8a5071fd10..81e942a3515 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureHelper.cs @@ -8,9 +8,8 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; using System.Windows; using System.Windows.Media; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParaClient.cs index a7284e9dd0b..70d4cf98425 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParaClient.cs @@ -7,14 +7,8 @@ // related data of paragraphs associated with figures. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections; -using System.Diagnostics; -using System.Security; using System.Windows; -using System.Windows.Controls; using System.Windows.Media; using System.Windows.Documents; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParagraph.cs index 7cd2ff88ee2..044ff5f2b20 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParagraph.cs @@ -11,17 +11,11 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Diagnostics; -using System.Security; // SecurityCritical using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; -using System.Windows.Media; using MS.Internal.Text; -using MS.Internal.Documents; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterBaseParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterBaseParaClient.cs index f8e8610549f..0321e6bd75f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterBaseParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterBaseParaClient.cs @@ -8,17 +8,7 @@ // for floaters and UIElements // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Security; -using System.Windows; -using System.Windows.Media; -using System.Windows.Documents; using MS.Internal.Documents; -using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterBaseParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterBaseParagraph.cs index 434ec238351..95c5a8be830 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterBaseParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterBaseParagraph.cs @@ -9,13 +9,7 @@ #pragma warning disable 1634, 1691 // avoid generating warnings about unknown // message numbers and unknown pragmas for PRESharp contol -using System; -using System.Diagnostics; -using System.Security; // SecurityCritical -using System.Windows; using System.Windows.Documents; -using MS.Internal.Documents; -using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParaClient.cs index 5e7127570a8..481b283c52f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParaClient.cs @@ -8,12 +8,7 @@ // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParagraph.cs index d65d7eb87aa..a245dc7294d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParagraph.cs @@ -7,14 +7,10 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Diagnostics; -using System.Security; // SecurityCritical using System.Windows; using System.Windows.Documents; -using MS.Internal.Documents; using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FlowDocumentPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FlowDocumentPage.cs index c2197cadbe5..ffa0d791abc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FlowDocumentPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FlowDocumentPage.cs @@ -7,19 +7,11 @@ // a PTS host (FlowDocument). // -using System; -using System.IO; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections; -using System.Diagnostics; using System.Threading; -using System.Security; using System.Windows; -using System.Windows.Controls; using System.Windows.Media; using System.Windows.Documents; -using System.Windows.Threading; // Dispatcher using MS.Internal.Documents; using MS.Internal.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Line.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Line.cs index 38bc13f7943..9999421b809 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Line.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Line.cs @@ -8,16 +8,10 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; using System.Globalization; -using System.Security; // SecurityCritical using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineBase.cs index 4265a9d00b0..845a4edd38f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineBase.cs @@ -8,14 +8,8 @@ // -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Media.TextFormatting; using MS.Internal.Text; using MS.Internal.Documents; @@ -23,7 +17,7 @@ using MS.Internal.PtsHost.UnsafeNativeMethods; #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol namespace MS.Internal.PtsHost { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineBreakRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineBreakRecord.cs index f9191e87d95..bc4834bf2ec 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineBreakRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineBreakRecord.cs @@ -8,10 +8,6 @@ // -using System; -using System.Windows; -using System.Windows.Documents; -using MS.Internal.Text; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineVisual.cs index 8cc12887a2c..298442d48d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/LineVisual.cs @@ -8,7 +8,6 @@ // -using System; using System.Windows.Media; namespace MS.Internal.PtsHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListItemParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListItemParagraph.cs index a559e2d1838..8fe145097a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListItemParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListItemParagraph.cs @@ -7,10 +7,7 @@ // Description: ListItemParagraph represents a single list item. // -using System; using System.Windows; -using System.Windows.Documents; -using MS.Internal.Text; namespace MS.Internal.PtsHost { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListMarkerLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListMarkerLine.cs index 7013ab03fd2..15cf43617ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListMarkerLine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListMarkerLine.cs @@ -8,17 +8,10 @@ // -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.TextFormatting; using MS.Internal.Text; -using MS.Internal.Documents; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListMarkerSourceInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListMarkerSourceInfo.cs index f23fbe35087..0a06960da5a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListMarkerSourceInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListMarkerSourceInfo.cs @@ -8,13 +8,10 @@ // This file must always be kept up to date with changes in TextMarkerSource // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Documents; // List -using MS.Internal.Text; +using MS.Internal.Text; using System.Windows.Media; // FormattedText and Brush -using MS.Internal.TextFormatting; // TextMarkerSource using System.Text; // StringBuilder namespace MS.Internal.PtsHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListParaClient.cs index 0918cb11658..9def197a5d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListParaClient.cs @@ -9,13 +9,9 @@ // -using System; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Documents; -using MS.Internal.Documents; using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListParagraph.cs index d870cd4ec96..44b4d23a76e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ListParagraph.cs @@ -7,13 +7,10 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Documents; -using MS.Internal.Text; namespace MS.Internal.PtsHost { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/MarginCollapsingState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/MarginCollapsingState.cs index bc69f15cea2..a77f33468b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/MarginCollapsingState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/MarginCollapsingState.cs @@ -7,9 +7,6 @@ // Description: Provides paragraph level margin collapsing support. // - -using System; - namespace MS.Internal.PtsHost { // ---------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/MbpInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/MbpInfo.cs index c817b2555b5..460db4eabf2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/MbpInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/MbpInfo.cs @@ -7,12 +7,10 @@ // Description: Provides paragraph level margin collapsing support. // -using System; using System.Windows; // DependencyObject using System.Windows.Documents; // Block using MS.Internal.Text; // TextDpi using System.Windows.Media; // Brush -using MS.Internal.PtsHost.UnsafeNativeMethods; // Pts namespace MS.Internal.PtsHost { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/OptimalBreakSession.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/OptimalBreakSession.cs index 187507c5bcc..a8dbc96795c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/OptimalBreakSession.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/OptimalBreakSession.cs @@ -7,13 +7,6 @@ // Description: OptimalBreakSession is unmanaged resouce handle to TextParagraphCache // -using System; -using System.Collections; -using System.Windows; -using System.Security; // SecurityCritical -using System.Windows.Documents; -using MS.Internal.Text; -using MS.Internal.PtsHost.UnsafeNativeMethods; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/OptimalTextSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/OptimalTextSource.cs index 07cef9a0cf6..d9a1cf1fb4f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/OptimalTextSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/OptimalTextSource.cs @@ -8,18 +8,11 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; using System.Globalization; -using System.Security; // SecurityCritical using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Media.TextFormatting; using MS.Internal.Text; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PageBreakRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PageBreakRecord.cs index f9ec8642c32..feb3fb11ba7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PageBreakRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PageBreakRecord.cs @@ -6,10 +6,7 @@ // Description: Break records for PTS pages. // -using System; // IntPtr, IDisposable, ... using System.Threading; // Interlocked -using System.Security; // SecurityCritical -using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS namespace MS.Internal.PtsHost { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PageVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PageVisual.cs index a28ab2c1141..0e6a737141f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PageVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PageVisual.cs @@ -6,14 +6,9 @@ // Description: Visual representing a PTS page. // -using System; -using System.Diagnostics; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows; -using System.Windows.Controls; using System.Windows.Media; -using System.Windows.Threading; namespace MS.Internal.PtsHost { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphElementVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphElementVisual.cs index dd88d9ff726..41b35128f92 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphElementVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphElementVisual.cs @@ -6,8 +6,6 @@ // Description: Visual representing a part of paragraph. // -using System; -using System.Windows; using System.Windows.Media; namespace MS.Internal.PtsHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphVisual.cs index a18f2bda3b3..cc2afb77df6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphVisual.cs @@ -6,7 +6,6 @@ // Description: Visual representing a paragraph. // -using System; using System.Windows; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Pts.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Pts.cs index a3a930d7ddb..29f72c2ced0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Pts.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Pts.cs @@ -19,14 +19,9 @@ // -using System; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; using System.Windows; using MS.Internal.Text; -using MS.Utility; -using MS.Internal.TextFormatting; using DllImport = MS.Internal.PresentationFramework.DllImport; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsCache.cs index c02d565254d..8808b0981db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsCache.cs @@ -20,9 +20,6 @@ // management. // -using System; // IntPtr -using System.Collections.Generic; // List -using System.Security; // SecurityCritical, SecurityTreatAsSafe using System.Threading; // Interlocked using System.Windows; // WrapDirection using System.Windows.Media.TextFormatting; // TextFormatter diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsContext.cs index d1337a305e4..84347f5a1aa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsContext.cs @@ -6,10 +6,7 @@ // Description: Context used to communicate with PTS component. // -using System; // IntPtr, IDisposable, ... using System.Collections; // ArrayList -using System.Collections.Generic; // List -using System.Security; // SecurityCritical, SecurityTreatAsSafe using System.Threading; // Interlocked using System.Windows.Media.TextFormatting; // TextFormatter using System.Windows.Threading; // DispatcherObject diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsHelper.cs index fdafd995f41..2624611a1f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsHelper.cs @@ -7,11 +7,6 @@ // Description: Helper services to query PTS objects. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsHost.cs index 38e13c11d05..e246099b6a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsHost.cs @@ -19,20 +19,15 @@ // Description: Provides PTS callbacks implementation / forwarding. // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol - +// message numbers and unknown pragmas for PRESharp contol + #pragma warning disable 6500 // Specifically disable warning about unhandled null reference and SEH exceptions. -using System; // IntPtr -using System.Threading; // Monitor -using System.Diagnostics; -using System.Security; // SecurityCritical using System.Windows; -using System.Windows.Documents; +using System.Windows.Documents; using System.Windows.Media.TextFormatting; using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS -using System.Collections.Generic; namespace MS.Internal.PtsHost { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsPage.cs index 859c9d64ea7..9463be65fbc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsPage.cs @@ -7,17 +7,11 @@ // Description: Wrapper for PTS page. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; using System.Threading; using System.Windows; using System.Windows.Media; using System.Windows.Documents; using MS.Internal.Text; -using MS.Utility; using System.Windows.Threading; using MS.Internal.Documents; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowParagraph.cs index ab39f91650b..c4f65426d29 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowParagraph.cs @@ -6,12 +6,8 @@ // // Description: RowParagraph represents a single row in a table // -using System; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Documents; -using MS.Internal.PtsTable; using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowVisual.cs index 1d7584b414b..2f7f58c29b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowVisual.cs @@ -11,10 +11,6 @@ // // -using System; -using System.Diagnostics; -using System.Windows.Threading; -using System.Windows; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RunClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RunClient.cs index e8834b2e04d..3452b40b356 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RunClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RunClient.cs @@ -9,14 +9,11 @@ // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal; using MS.Internal.Text; using MS.Internal.Documents; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Section.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Section.cs index 4b68b02aa8b..fcf10e48ce8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Section.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Section.cs @@ -9,9 +9,7 @@ // -using System; using System.Windows; -using System.Security; using System.Windows.Documents; using System.Windows.Media; using MS.Internal.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SectionVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SectionVisual.cs index d1acae52ea2..dee96541004 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SectionVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SectionVisual.cs @@ -8,11 +8,8 @@ // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Media; -using System.Windows.Threading; using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Segment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Segment.cs index 5d7c5bd9aaf..975835abcf3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Segment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/Segment.cs @@ -7,9 +7,6 @@ // Description: Interface representing PTS segment. // - -using System; - namespace MS.Internal.PtsHost { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/StructuralCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/StructuralCache.cs index f9380464bd2..f390fa76d4d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/StructuralCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/StructuralCache.cs @@ -8,13 +8,7 @@ // -using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; -using MS.Utility; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.Windows; using System.Windows.Media; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParaClient.cs index 6bfe8ee9848..f4ea1dfeae3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParaClient.cs @@ -8,12 +8,7 @@ // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParagraph.cs index 472963862f0..7a10a2c0fae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParagraph.cs @@ -8,16 +8,11 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Diagnostics; -using System.Security; using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; -using MS.Internal.Documents; using MS.Internal.Text; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParaClient.cs index c65167c753c..3ca306c7d82 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParaClient.cs @@ -8,16 +8,10 @@ // -using MS.Internal; using MS.Internal.PtsTable; using MS.Internal.Text; using MS.Internal.Documents; -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Security; using System.Windows; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParagraph.cs index 770a788a178..3afeb3a2c06 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParagraph.cs @@ -8,18 +8,10 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol - -using MS.Internal.Documents; -using MS.Internal.PtsTable; -using MS.Internal.Text; -using MS.Utility; -using System; -using System.Collections; -using System.Diagnostics; +// message numbers and unknown pragmas for PRESharp contol + using System.Windows; using System.Windows.Documents; -using System.Windows.Media; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextFormatterHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextFormatterHost.cs index b306ee74886..68a83bf8795 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextFormatterHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextFormatterHost.cs @@ -8,9 +8,6 @@ // -using System; -using System.Diagnostics; -using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextPanelDebug.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextPanelDebug.cs index e68d9fc8d52..1ee2431d505 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextPanelDebug.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextPanelDebug.cs @@ -7,9 +7,6 @@ // Description: Debug helpers for TextFlow. // -using System; -using System.Diagnostics; - namespace MS.Internal.PtsHost { #if TEXTPANELLAYOUTDEBUG diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParaClient.cs index e8ac5299ede..a1615d47bae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParaClient.cs @@ -9,17 +9,11 @@ // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Media.TextFormatting; using System.Windows.Documents; -using MS.Internal; using MS.Internal.Documents; using MS.Internal.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParaLineResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParaLineResult.cs index 45133b17554..5ab4b4626aa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParaLineResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParaLineResult.cs @@ -8,9 +8,6 @@ // -using System; -using System.Diagnostics; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Documents; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParagraph.cs index 5c51fdc211d..81e833ae5a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParagraph.cs @@ -9,18 +9,11 @@ // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Media.TextFormatting; -using System.Windows.Threading; using MS.Internal.Text; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParaClient.cs index f0a54bb7f68..b364e154fba 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParaClient.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParaClient.cs @@ -7,10 +7,6 @@ // related data of BlockUIContainers. // -using System; // IntPtr -using System.Collections.Generic; // List -using System.Collections.ObjectModel; // ReadOnlyCollection -using System.Security; // SecurityCritical using System.Windows; // FrameworkElement using System.Windows.Media; // Visual using System.Windows.Documents; // BlockUIContainer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParagraph.cs index b97126234b6..7a3c82043d5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParagraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParagraph.cs @@ -7,11 +7,8 @@ // Description: UIElementParagraph class provides a wrapper for UIElements. // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol -using System; -using System.Collections; // IEnumerator -using System.Security; // SecurityCritical using System.Windows; // UIElement using System.Windows.Documents; // BlockUIContainer using MS.Internal.Text; // TextDpi diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UnmanagedHandle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UnmanagedHandle.cs index 2c6a8709532..c4531a9919a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UnmanagedHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UnmanagedHandle.cs @@ -8,9 +8,6 @@ // which can be used in unmanaged world. // - -using System; - namespace MS.Internal.PtsHost { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UpdateRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UpdateRecord.cs index e38b89541b0..6c870b2dd59 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UpdateRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UpdateRecord.cs @@ -9,9 +9,6 @@ // -using System; -using System.Diagnostics; - using MS.Internal.PtsHost.UnsafeNativeMethods; namespace MS.Internal.PtsHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsTable/CalculatedColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsTable/CalculatedColumn.cs index 1c784bc058e..3c9e9f37e73 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsTable/CalculatedColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsTable/CalculatedColumn.cs @@ -11,12 +11,7 @@ // -using MS.Internal.PtsHost; -using System; -using System.Diagnostics; using System.Windows; -using System.Windows.Documents; -using System.Windows.Media; using MS.Internal.PtsHost.UnsafeNativeMethods; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsTable/RowSpanVector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsTable/RowSpanVector.cs index 47f1dab857c..c4229b27bea 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsTable/RowSpanVector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsTable/RowSpanVector.cs @@ -8,8 +8,6 @@ // -using System; -using System.Diagnostics; using System.Windows.Documents; namespace MS.Internal.PtsTable diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemCoreHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemCoreHelper.cs index 791ea490484..8d09399ea81 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemCoreHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemCoreHelper.cs @@ -6,8 +6,6 @@ // Description: Helper methods for code that uses types from System.Core. // -using System; - namespace MS.Internal { internal static class SystemCoreHelper diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemDataHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemDataHelper.cs index 690c9be8ac8..38b7ecf0dc5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemDataHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemDataHelper.cs @@ -6,9 +6,7 @@ // Description: Helper methods for code that uses types from System.Data. // -using System; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemXmlHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemXmlHelper.cs index 7e7c02a473b..271e1eafc45 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemXmlHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemXmlHelper.cs @@ -6,7 +6,6 @@ // Description: Helper methods for code that uses types from System.Xml. // -using System; using System.Collections; using System.ComponentModel; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemXmlLinqHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemXmlLinqHelper.cs index c53864f103a..38b2eaaead5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemXmlLinqHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/SystemXmlLinqHelper.cs @@ -6,7 +6,6 @@ // Description: Helper methods for code that uses types from System.Xml.Linq. // -using System; using System.ComponentModel; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/ComplexLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/ComplexLine.cs index 569380a63ff..71e9d233c11 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/ComplexLine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/ComplexLine.cs @@ -8,13 +8,8 @@ // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.TextFormatting; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/DynamicPropertyReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/DynamicPropertyReader.cs index 88882c5a535..ee590c95e55 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/DynamicPropertyReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/DynamicPropertyReader.cs @@ -9,17 +9,11 @@ // -using System; -using System.Diagnostics; using System.Globalization; using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Media.TextFormatting; using System.Windows.Markup; -using MS.Internal.PtsHost; -using MS.Internal.Annotations.Component; namespace MS.Internal.Text { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/InlineObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/InlineObject.cs index f85ba890cff..9237c076450 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/InlineObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/InlineObject.cs @@ -7,13 +7,10 @@ // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal; namespace MS.Internal.Text { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/Line.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/Line.cs index 15fc3bd89c1..b209a8bf000 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/Line.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/Line.cs @@ -8,16 +8,9 @@ // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal.PtsHost; namespace MS.Internal.Text { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/LineMetrics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/LineMetrics.cs index 6820c3557f2..5dd68511131 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/LineMetrics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/LineMetrics.cs @@ -7,10 +7,6 @@ // -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; using System.Windows.Media.TextFormatting; namespace MS.Internal.Text diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/LineProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/LineProperties.cs index 561fce4af5b..4dc4c15d7a9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/LineProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/LineProperties.cs @@ -8,14 +8,10 @@ // -using System; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Media.TextFormatting; -using MS.Internal.Documents; using MS.Internal.PtsHost; // TextParagraph namespace MS.Internal.Text diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/MarkerProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/MarkerProperties.cs index f77bfc27f23..a73de6a27d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/MarkerProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/MarkerProperties.cs @@ -8,11 +8,9 @@ // -using System; using System.Windows; using System.Windows.Documents; using System.Windows.Media.TextFormatting; -using MS.Internal.PtsHost.UnsafeNativeMethods; // Relative line height from PTS namespace MS.Internal.Text { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/SimpleLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/SimpleLine.cs index 6eb579d4d3f..7e49e3685fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/SimpleLine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/SimpleLine.cs @@ -8,12 +8,7 @@ // -using System; -using System.Diagnostics; using System.Globalization; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Media; using System.Windows.Media.TextFormatting; namespace MS.Internal.Text diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextDpi.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextDpi.cs index 3dcd1dfeef4..edc7566b22f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextDpi.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextDpi.cs @@ -8,10 +8,7 @@ // -using System; // Double, ... using System.Windows; // DependencyObject -using System.Windows.Documents; // TextElement, ... -using System.Windows.Media; // FontFamily using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS namespace MS.Internal.Text diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextLineResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextLineResult.cs index 3f7044c008f..17f43194ac0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextLineResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextLineResult.cs @@ -8,12 +8,8 @@ // -using System; -using System.Diagnostics; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextProperties.cs index 2ca23e4ad08..48572baeef9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextProperties.cs @@ -8,8 +8,6 @@ // -using System; -using System.Diagnostics; using System.Globalization; using System.Windows; using System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextSpanModifier.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextSpanModifier.cs index baf5b9a529b..09320794cda 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextSpanModifier.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextSpanModifier.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.Globalization; using System.Windows; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TypographyProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TypographyProperties.cs index 75ecc1b8e64..3fa6dc8d72e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TypographyProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TypographyProperties.cs @@ -7,10 +7,7 @@ // -using System; -using System.Diagnostics; using System.Windows; -using System.Windows.Media; using System.Windows.Media.TextFormatting; namespace MS.Internal.Text diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceData.cs index 26e5aeb984c..d9fe715f7cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceData.cs @@ -9,18 +9,13 @@ // for Data Binding and Styling // -using System; using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Text; using System.Windows; using System.Windows.Data; using System.Windows.Diagnostics; using System.Windows.Markup; -using MS.Internal.Data; -using MS.Win32; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceHwndHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceHwndHost.cs index ad9bf5e41ae..29978cbe940 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceHwndHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceHwndHost.cs @@ -9,17 +9,6 @@ // for HwndHosts // -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Text; -using System.Windows; -using System.Windows.Data; -using MS.Internal.Data; -using MS.Win32; - namespace MS.Internal { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceShell.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceShell.cs index e96b445a162..22f00dd74cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceShell.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/TraceShell.cs @@ -9,17 +9,6 @@ // for Shell integration // -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Text; -using System.Windows; -using System.Windows.Data; -using MS.Internal.Data; -using MS.Win32; - namespace MS.Internal { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/UncommonValueTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/UncommonValueTable.cs index 62b2b7f4b0a..617705e28b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/UncommonValueTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/UncommonValueTable.cs @@ -6,7 +6,6 @@ // Description: A table for storing up to 32 uncommon values. // -using System; using System.Windows; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/BindUriHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/BindUriHelper.cs index 102eca47916..4d5e64dba4a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/BindUriHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/BindUriHelper.cs @@ -7,28 +7,12 @@ // Description: BindUriHelper class. Allows bindToObject, bindToStream // -using System; -using System.IO; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Text; -using MS.Win32; #if PRESENTATIONFRAMEWORK using System.Windows; using System.Windows.Navigation; -using System.Windows.Media; -using MS.Internal.PresentationFramework; using MS.Internal.AppModel; -using System.Windows.Controls; -using MS.Internal ; -using System.Security; -using System.IO.Packaging; -using System.Reflection; -using MS.Internal.Utility; -using System.Net; // In order to avoid generating warnings about unknown message numbers and // unknown pragmas when compiling your C# source code with the actual C# compiler, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/MonitorWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/MonitorWrapper.cs index 149423f9087..f2a80fa1510 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/MonitorWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/MonitorWrapper.cs @@ -8,11 +8,7 @@ // -using System; using System.Threading; -using System.Windows; - -using MS.Internal; namespace MS.Internal.Utility { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/TraceLog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/TraceLog.cs index ea72266ef44..950c6edf8c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/TraceLog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Utility/TraceLog.cs @@ -14,7 +14,6 @@ // the debugger). Log entries are timestamped. // -using System; using System.Collections; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakDictionary.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakDictionary.cs index 92c66be6e46..3d8da4ce7f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakDictionary.cs @@ -3,12 +3,10 @@ // See the LICENSE file in the project root for more information. +using System.Collections; + namespace MS.Internal { - using System; - using System.Collections; - using System.Collections.Generic; - /// /// Helper WeakDictionary class implemented using WeakHashTable /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakHashSet.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakHashSet.cs index ed145d7fc2c..513113110c2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakHashSet.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakHashSet.cs @@ -2,16 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; + // This file was generated, please do not edit it directly. // // This file was generated using the common file located at: namespace MS.Internal { - using System; - using System.Collections; - using System.Collections.Generic; - /// /// Helper WeakHashSet class implemented using WeakHashTable /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakHashtable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakHashtable.cs index a51feb28d9d..5a61d3df19c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakHashtable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakHashtable.cs @@ -3,6 +3,8 @@ // See the LICENSE file in the project root for more information. +using System.Collections; + // This was ripped from the BCL's WeakHashtable and the namespace was changed. // // This class doesn't work when the keys are value-types. @@ -10,10 +12,6 @@ namespace MS.Internal { - using System; - using System.Collections; - using System.Diagnostics; - /// /// This is a hashtable that stores object keys as weak references. /// It monitors memory usage and will periodically scavenge the diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakObjectHashtable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakObjectHashtable.cs index 940bef3aec9..0a793650e24 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakObjectHashtable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WeakObjectHashtable.cs @@ -3,6 +3,8 @@ // See the LICENSE file in the project root for more information. +using System.Collections; + // This is a variant of WeakHashtable that works when the keys are value-types. // In particular: // 1. Do not create weak references to a value-type key. That makes no sense - @@ -16,9 +18,6 @@ namespace MS.Internal { - using System; - using System.Collections; - /// /// This is a hashtable that stores object keys as weak references. /// It monitors memory usage and will periodically scavenge the diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT.cs index 791c03f69d9..8100fc57747 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT.cs @@ -2,28 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Runtime.ExceptionServices; using System.Runtime.InteropServices; -using System.Numerics; -using System.Security.Cryptography; -using System.Text; -using System.Threading; -using System.Linq.Expressions; +using WinRT.Interop; #pragma warning disable 0169 // The field 'xxx' is never used #pragma warning disable 0649 // Field 'xxx' is never assigned to, and will always have its default value namespace WinRT { - using System.Diagnostics; - using WinRT.Interop; - internal static class DelegateExtensions { public static void DynamicInvokeAbi(this System.Delegate del, object[] invoke_params) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Attributes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Attributes.cs index f6d9b005a4f..73833001b09 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Attributes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Attributes.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Text; namespace WinRT { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ComWrappersSupport.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ComWrappersSupport.cs index acaedd94748..9e78af2a458 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ComWrappersSupport.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ComWrappersSupport.cs @@ -1,19 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Numerics; -using System.Security.Cryptography; -using System.Text; -using System.Threading; -using System.Linq.Expressions; using WinRT.Interop; #if !NETSTANDARD2_0 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ComWrappersSupport.net5.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ComWrappersSupport.net5.cs index 1492530057a..68aa5b335ec 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ComWrappersSupport.net5.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ComWrappersSupport.net5.cs @@ -1,13 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Text; using WinRT.Interop; using static System.Runtime.InteropServices.ComWrappers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Context.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Context.cs index 6ceceec12cc..15ffbd760e4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Context.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Context.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; using WinRT.Interop; 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 5152bc7a30e..b39042f8615 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 @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.Runtime.ExceptionServices; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/FundamentalMarshalers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/FundamentalMarshalers.cs index 64bd715a4a4..833af347992 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/FundamentalMarshalers.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/FundamentalMarshalers.cs @@ -1,10 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - namespace ABI.System { internal struct Boolean diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/GuidGenerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/GuidGenerator.cs index 3ebfe5920ee..e6e146f6229 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/GuidGenerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/GuidGenerator.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Linq; using System.Reflection; using System.Security.Cryptography; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/IInspectable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/IInspectable.cs index ceaf9388cae..d7337b68393 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/IInspectable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/IInspectable.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; using WinRT.Interop; namespace WinRT diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/ExceptionErrorInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/ExceptionErrorInfo.cs index f6eccf4bb0e..4e044257c99 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/ExceptionErrorInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/ExceptionErrorInfo.cs @@ -1,18 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; using System.Runtime.InteropServices; -using System.Numerics; -using System.Security.Cryptography; -using System.Text; -using System.Threading; -using System.Linq.Expressions; +using global::WinRT; namespace WinRT.Interop { @@ -85,8 +75,6 @@ public string GetDescription() namespace ABI.WinRT.Interop { - using global::WinRT; - [Guid("1CF2B120-547D-101B-8E65-08002B2BD119")] internal class IErrorInfo : global::WinRT.Interop.IErrorInfo { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/IContextCallback.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/IContextCallback.cs index f6899206362..5461f83828a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/IContextCallback.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/IContextCallback.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; using WinRT; using WinRT.Interop; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/IUnknownVftbl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/IUnknownVftbl.cs index 1fe5fec3c9f..cf9d4740102 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/IUnknownVftbl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/IUnknownVftbl.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; namespace WinRT.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/StandardDelegates.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/StandardDelegates.cs index e90dbd6af4f..3ca452bf95d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/StandardDelegates.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Interop/StandardDelegates.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Text; namespace WinRT.Interop { 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 97fbbc2f86a..2510219ff24 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 @@ -1,17 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Runtime.InteropServices; -using System.Numerics; -using System.Security.Cryptography; -using System.Text; using System.Linq.Expressions; -using System.Collections.Concurrent; using WinRT.Interop; #pragma warning disable 0169 // The field 'xxx' is never used diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ObjectReference.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ObjectReference.cs index 06b50c80950..a0733e01ab1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ObjectReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/ObjectReference.cs @@ -1,13 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Text; using WinRT.Interop; #pragma warning disable 0169 // The field 'xxx' is never used diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections.cs index 03f950e46db..364dabe6138 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections.cs @@ -1,15 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Numerics; using System.Reflection; using System.Threading; -using System.Windows.Input; namespace WinRT { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections/IEnumerable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections/IEnumerable.cs index d3df6280122..19d066cc7b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections/IEnumerable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections/IEnumerable.cs @@ -1,16 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Linq.Expressions; using System.Reflection; using System.Runtime.InteropServices; using WinRT; using WinRT.Interop; -using System.Diagnostics; +using global::System.Runtime.CompilerServices; #pragma warning disable 0169 // warning CS0169: The field '...' is never used #pragma warning disable 0649 // warning CS0169: Field '...' is never assigned to @@ -34,9 +31,6 @@ internal interface IIterator namespace MS.Internal.WindowsRuntime.ABI.System.Collections.Generic { - using global::System; - using global::System.Runtime.CompilerServices; - [Guid("FAA585EA-6214-4217-AFDA-7F46DE5869B3")] internal class IEnumerable : global::System.Collections.Generic.IEnumerable, global::MS.Internal.WindowsRuntime.Windows.Foundation.Collections.IIterable { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections/IReadOnlyList.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections/IReadOnlyList.cs index a892ac4b07d..7e70124050c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections/IReadOnlyList.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/Projections/IReadOnlyList.cs @@ -1,16 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Linq.Expressions; using System.Reflection; using System.Runtime.InteropServices; using WinRT; using WinRT.Interop; -using System.Diagnostics; +using global::System.Runtime.CompilerServices; #pragma warning disable 0169 // warning CS0169: The field '...' is never used #pragma warning disable 0649 // warning CS0169: Field '...' is never assigned to @@ -29,9 +26,6 @@ interface IVectorView : IIterable namespace MS.Internal.WindowsRuntime.ABI.System.Collections.Generic { - using global::System; - using global::System.Runtime.CompilerServices; - [Guid("BBE1FA4C-B0E3-4583-BAEF-1F1B2E483E56")] internal class IReadOnlyList : global::System.Collections.Generic.IReadOnlyList { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/TypeExtensions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/TypeExtensions.cs index eb27ca44310..0c1a019306b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/TypeExtensions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT/TypeExtensions.cs @@ -1,11 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; -using System.Text; namespace WinRT { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT_Interop.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT_Interop.cs index b7edcf22c8f..d6dc81cb240 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT_Interop.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/WinRT_Interop.cs @@ -1,18 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; using System.Runtime.InteropServices; -using System.Numerics; -using System.Security.Cryptography; -using System.Text; -using System.Threading; -using System.Linq.Expressions; #pragma warning disable CS0649 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/Windows.Data.Text.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/Windows.Data.Text.cs index 3d08c140811..a361bcf1f89 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/Windows.Data.Text.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/Windows.Data.Text.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Linq.Expressions; -using System.Reflection; using System.Runtime.InteropServices; using WinRT; using WinRT.Interop; @@ -19,9 +12,9 @@ namespace MS.Internal.WindowsRuntime { -namespace Windows.Data.Text -{ - [global::WinRT.WindowsRuntimeType] + namespace Windows.Data.Text + { + [global::WinRT.WindowsRuntimeType] internal enum AlternateNormalizationFormat : int { @@ -423,8 +416,8 @@ private struct InterfaceTag{}; } namespace ABI.Windows.Data.Text -{ - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + { + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] internal struct AlternateWordForm { public static IObjectReference CreateMarshaler(global::MS.Internal.WindowsRuntime.Windows.Data.Text.AlternateWordForm obj) => obj is null ? null : MarshalInspectable.CreateMarshaler(obj).As(); diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/Windows.Globalization.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/Windows.Globalization.cs index d8ac473fdf3..d529efdf217 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/Windows.Globalization.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Generated/Windows.Globalization.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Linq.Expressions; -using System.Reflection; using System.Runtime.InteropServices; using WinRT; using WinRT.Interop; @@ -19,9 +12,9 @@ namespace MS.Internal.WindowsRuntime { -namespace Windows.Globalization -{ - [global::WinRT.WindowsRuntimeType] + namespace Windows.Globalization + { + [global::WinRT.WindowsRuntimeType] [Guid("EA79A752-F7C2-4265-B1BD-C4DEC4E4F080")] internal interface ILanguage @@ -212,8 +205,8 @@ internal enum LanguageLayoutDirection : int } namespace ABI.Windows.Globalization -{ - [global::WinRT.ObjectReferenceWrapper(nameof(_obj))] + { + [global::WinRT.ObjectReferenceWrapper(nameof(_obj))] [Guid("EA79A752-F7C2-4265-B1BD-C4DEC4E4F080")] internal class ILanguage : global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguage { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Windows/Data/Text/WordsSegmenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Windows/Data/Text/WordsSegmenter.cs index 84fd31f0a9d..447b4d59694 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Windows/Data/Text/WordsSegmenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/WindowsRuntime/Windows/Data/Text/WordsSegmenter.cs @@ -18,13 +18,7 @@ // set to "und" (undetermined language). // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Runtime.CompilerServices; -using System.Security; using MS.Internal.PresentationFramework.Interop; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/Application/DocumentApplicationJournalEntry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/Application/DocumentApplicationJournalEntry.cs index e6353a6354a..86b8ef09b6b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/Application/DocumentApplicationJournalEntry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/Application/DocumentApplicationJournalEntry.cs @@ -7,11 +7,6 @@ // UI state. // -using System; -using System.Runtime.Serialization; -using System.Security; -using System.Diagnostics; -using System.Windows; using System.Windows.Documents; using System.Windows.Navigation; using System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ColumnResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ColumnResult.cs index ce633808e92..a4201477f2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ColumnResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ColumnResult.cs @@ -7,11 +7,7 @@ // information for a column. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Security; using System.Windows; using System.Windows.Documents; using MS.Internal.PtsHost; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ContentElementCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ContentElementCollection.cs index 10daf4866f1..3f1d64985eb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ContentElementCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ContentElementCollection.cs @@ -6,12 +6,7 @@ // Description: Generic Collection of Table related objects. // -using MS.Utility; -using System; -using System.Collections.Generic; using System.Collections; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ContentHostHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ContentHostHelper.cs index 9213b5f7f55..b3f23c14501 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ContentHostHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ContentHostHelper.cs @@ -7,10 +7,7 @@ // useful for performing common tasks with IContentHost. // -using System; // Object -using System.Collections.Generic; // List using System.Windows; // IContentHost -using System.Windows.Controls; // TextBlock using System.Windows.Controls.Primitives; // DocumentPageView using System.Windows.Documents; // FlowDocument using System.Windows.Media; // Visual diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGrid.cs index 1f1a2821efa..faedef8b8bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGrid.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGrid.cs @@ -8,11 +8,7 @@ // -using MS.Internal; -using MS.Internal.Media; using MS.Utility; -using MS.Win32; -using System.Threading; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; @@ -20,11 +16,8 @@ using System.Windows.Input; using System.Windows.Media; using System.Windows.Threading; -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridContextMenu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridContextMenu.cs index 187bc5e22d4..147f4f10920 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridContextMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridContextMenu.cs @@ -2,25 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Input; + // // Description: Context menu for DocumentGrid // namespace MS.Internal.Documents { - using MS.Internal; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Threading; - using System.Runtime.InteropServices; - using System.Security; - using MS.Internal.Documents; - using MS.Win32; - using System.Windows.Interop; - // A Component of DocumentViewer supporting the default ContextMenu. internal static class DocumentGridContextMenu { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridPage.cs index 6101a9961ca..3c546d95a88 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridPage.cs @@ -9,24 +9,11 @@ // -using MS.Internal.Annotations.Anchoring; -using MS.Win32; -using System.Threading; using System.Windows; -using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; -using System.Windows.Shapes; - -using System.Windows.Input; using System.Windows.Media; -using System; -using System.Collections; -using System.Diagnostics; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentPageHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentPageHost.cs index 1c1e864d29d..d9fb4807240 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentPageHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentPageHost.cs @@ -6,7 +6,6 @@ // Description: Provides a view port for a page of content for a DocumentPage. // -using System; using System.Windows; // UIElement using System.Windows.Media; // Visual diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentPageTextView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentPageTextView.cs index 5e66a8e35f1..94d9bd81548 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentPageTextView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentPageTextView.cs @@ -6,8 +6,6 @@ // Description: TextView implementation for DocumentPageView. // -using System; // InvalidOperationException, ... -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ReadOnlyCollection using System.Windows; // Point, Rect, ... using System.Windows.Controls.Primitives; // DocumentPageView diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentViewerHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentViewerHelper.cs index 50a9373fbec..79640eab00c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentViewerHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentViewerHelper.cs @@ -6,14 +6,12 @@ // Description: Defines various helper methods used by document viewews. // -using System; // EventHandler using System.Windows; // Visibility using System.Windows.Controls; // Border using System.Windows.Controls.Primitives; // PlacementMode using System.Windows.Input; // KeyboardNavigation using System.Windows.Documents; // ITextRange using System.Windows.Media; // VisualTreeHelper -using System.Security; // SecurityCritical, SecurityTreatAsSafe using System.Globalization; // CultureInfo using System.Windows.Markup; // XmlLanguage using System.Windows.Interop; // HwndSource diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentsTrace.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentsTrace.cs index 2529c16eaaa..1b977241a23 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentsTrace.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentsTrace.cs @@ -3,18 +3,15 @@ // See the LICENSE file in the project root for more information. +using System.Reflection; +using MS.Internal.PresentationFramework; // SecurityHelper + // // Description: DocumentsTrace is a tracing utility for Fixed and Flow documents // namespace MS.Internal.Documents { - using System; - using System.Diagnostics; - using System.Reflection; - using System.Security; - using MS.Internal.PresentationFramework; // SecurityHelper - internal sealed class DocumentsTrace { internal static class FixedFormat diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FixedDocumentPaginator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FixedDocumentPaginator.cs index ca589c290cc..ac437d834d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FixedDocumentPaginator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FixedDocumentPaginator.cs @@ -8,11 +8,8 @@ // versions of GetPage and ComputePageCount. // -using System; // IServiceProvider -using System.ComponentModel; // AsyncCompletedEventArgs using System.Windows; // Size using System.Windows.Documents; // DocumentPaginator -using System.Windows.Media; // Visual namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FixedDocumentSequencePaginator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FixedDocumentSequencePaginator.cs index 177df06ada3..bd419be9461 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FixedDocumentSequencePaginator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FixedDocumentSequencePaginator.cs @@ -8,11 +8,8 @@ // versions of GetPage and ComputePageCount. // -using System; // IServiceProvider -using System.ComponentModel; // AsyncCompletedEventArgs using System.Windows; // Size using System.Windows.Documents; // DocumentPaginator -using System.Windows.Media; // Visual namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentFormatter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentFormatter.cs index 362db09998d..01677ee4dda 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentFormatter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentFormatter.cs @@ -6,11 +6,8 @@ // Description: Bottomless content formatter associated with FlowDocument. // -using System; // Object using System.Windows; // Size using System.Windows.Documents; // FlowDocument -using System.Windows.Media; // Visual -using System.Windows.Threading; // DispatcherOperationCallback using MS.Internal.PtsHost; // FlowDocumentPage using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentPaginator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentPaginator.cs index 2e4f53644c1..72c001970d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentPaginator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentPaginator.cs @@ -6,15 +6,11 @@ // Description: DynamicDocumentPaginator associated with FlowDocument. // -using System; // Object -using System.Collections.Generic; // List -using System.ComponentModel; // AsyncCompletedEventArgs using System.Windows; // Size using System.Windows.Documents; // DocumentPaginator using System.Windows.Media; // Visual using System.Windows.Threading; // DispatcherOperationCallback using MS.Internal.PtsHost; // BreakRecordTable, FlowDocumentPage -using MS.Internal.Text; // DynamicPropertyReader namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentView.cs index 8f5b3d273a7..e081755f72d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/FlowDocumentView.cs @@ -7,13 +7,11 @@ // bottomless area. // -using System; // Object using System.Windows; // Size using System.Windows.Controls; // ScrollViewer using System.Windows.Controls.Primitives; // IScrollInfo using System.Windows.Documents; // FlowDocument using System.Windows.Media; // Visual -using System.Windows.Media.Imaging; // RenderTargetBitmap using MS.Internal.PtsHost; // FlowDocumentPage using MS.Internal.Text; // TextDpi diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/HostedElements.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/HostedElements.cs index 21677df16fe..30fa618d7c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/HostedElements.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/HostedElements.cs @@ -7,11 +7,7 @@ // using System.Collections; -using MS.Internal.Documents; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System; -using System.Diagnostics; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IDocumentScrollInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IDocumentScrollInfo.cs index 1378aba80d6..f76b7a9ba28 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IDocumentScrollInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IDocumentScrollInfo.cs @@ -7,17 +7,11 @@ // Spec: 03.01.01 API Design.PageGrid+.doc // -using MS.Internal; -using MS.Utility; using System.Collections.ObjectModel; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; -using System.Windows.Media; using System.Windows; -using System; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IFlowDocumentViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IFlowDocumentViewer.cs index 0ffd14dfd09..f10334f48e5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IFlowDocumentViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IFlowDocumentViewer.cs @@ -3,12 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; // Object, IServiceProvider using System.Windows; // Rect, Point using System.Windows.Documents; // ITextSelection using System.Windows.Controls; // FlowDocumentScrollViewer -using System.Windows.Controls.Primitives; // IScrollInfo -using System.Windows.Input; // UICommand using System.Windows.Threading; // Dispatcher using MS.Internal.KnownBoxes; // BooleanBoxes diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IParentUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IParentUndoUnit.cs index 4c0e1c19ed7..0e3e9c0f5ba 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IParentUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IParentUndoUnit.cs @@ -8,10 +8,6 @@ // See spec at Undo spec.htm // -using System.Collections; - -using System; - namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ITextBoxViewHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ITextBoxViewHost.cs index 75f8e51ebed..3a706fee388 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ITextBoxViewHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ITextBoxViewHost.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Documents; + // // Description: Interface for Controls hosting TextBoxView. // namespace System.Windows.Controls { - using System.Windows.Documents; - // Controls built on TextBoxView must implement this interface // which is passed to the TextBoxView ctor. // TextBoxView requires that the object implementing ITextBoxViewHost diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IUndoUnit.cs index d9cb2ab4978..0614f320c9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/IUndoUnit.cs @@ -8,8 +8,6 @@ // See spec at Undo spec.htm // -using System; - namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/LineResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/LineResult.cs index 0cc141db09c..a2e35af5419 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/LineResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/LineResult.cs @@ -6,8 +6,6 @@ // Description: Access to calculated information of a line of text. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/MultiPageTextView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/MultiPageTextView.cs index 1107d971f2d..733e32430a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/MultiPageTextView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/MultiPageTextView.cs @@ -6,8 +6,6 @@ // Description: TextView implementation for collection of DocumentPageTextViews. // -using System; // InvalidOperationException, ... -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ReadOnlyCollection using System.Windows; // Point, Rect, ... using System.Windows.Controls; // FlowDocumentPageViewer, DocumentViewer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/PageCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/PageCache.cs index 0e27ed1f5fa..d115e8cf212 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/PageCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/PageCache.cs @@ -6,11 +6,7 @@ // Description: PageCache caches information about individual pages in a document. // -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Threading; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ParagraphResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ParagraphResult.cs index 6f388a52efa..f013f9175c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ParagraphResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ParagraphResult.cs @@ -7,10 +7,7 @@ // information for a paragraph. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Windows; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ParentUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ParentUndoUnit.cs index 2d4e8215fe8..89b4f730468 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ParentUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ParentUndoUnit.cs @@ -8,10 +8,8 @@ // See spec at Undo spec.htm // -using System; using System.Windows; using System.Collections; -using MS.Utility; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/RowCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/RowCache.cs index c312d601dc5..083d273e04b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/RowCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/RowCache.cs @@ -6,12 +6,7 @@ // Description: RowCache caches information about Row layouts used by DocumentGrid. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; -using System.Windows.Documents; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ScrollData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ScrollData.cs index 21f6411616a..15a66392942 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ScrollData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/ScrollData.cs @@ -6,11 +6,9 @@ // Description: IScrollInfo implementation helper for FlowDocumentView, TextBoxView. // -using System; using System.Windows; using System.Windows.Controls; using System.Windows.Media; -using MS.Internal; using System.Windows.Controls.Primitives; // for doc comments namespace MS.Internal.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TableColumnCollectionInternal.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TableColumnCollectionInternal.cs index 0144bc60162..35460be8b44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TableColumnCollectionInternal.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TableColumnCollectionInternal.cs @@ -2,13 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.Windows; using System.Windows.Documents; -using System.Diagnostics; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TableTextElementCollectionInternal.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TableTextElementCollectionInternal.cs index 4507a849ac2..f3baeeefd37 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TableTextElementCollectionInternal.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TableTextElementCollectionInternal.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Windows; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxLine.cs index 19089273951..e4e0138450f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxLine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxLine.cs @@ -6,19 +6,12 @@ // Description: TextLine wrapper used by TextBoxView. // -using System; using System.Globalization; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; -using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.TextFormatting; using MS.Internal; -using MS.Internal.PtsHost; using MS.Internal.Text; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxLineDrawingVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxLineDrawingVisual.cs index 7f0c335bb9a..027d296d97c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxLineDrawingVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxLineDrawingVisual.cs @@ -6,9 +6,6 @@ // Description: Extension of DrawingVisual for state that TextBoxView needs. // -using System; -using System.Windows; -using System.Windows.Controls; using System.Windows.Media; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxView.cs index 79fa8a27a53..682dc5e7f46 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxView.cs @@ -2,25 +2,23 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Documents; +using System.Windows.Controls.Primitives; +using System.Windows.Media; +using System.Windows.Threading; +using System.Collections.ObjectModel; +using MS.Internal; +using MS.Internal.Text; +using MS.Internal.Documents; +using MS.Internal.PtsHost; +using System.Windows.Media.TextFormatting; + // // Description: Content presenter for the TextBox. // namespace System.Windows.Controls { - using System.Windows.Documents; - using System.Windows.Controls.Primitives; - using System.Windows.Media; - using System.Windows.Threading; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using MS.Internal; - using MS.Internal.Telemetry.PresentationFramework; - using MS.Internal.Text; - using MS.Internal.Documents; - using MS.Internal.PtsHost; - using System.Windows.Media.TextFormatting; - // Content presenter for the TextBox. internal class TextBoxView : FrameworkElement, ITextView, IScrollInfo, IServiceProvider { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextContainerHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextContainerHelper.cs index 259e8b120a4..540abe66535 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextContainerHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextContainerHelper.cs @@ -6,15 +6,12 @@ // Description: Helper services for TextContainer. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; -using MS.Internal.Text; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextDocumentView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextDocumentView.cs index 991d49111da..2757d3cb501 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextDocumentView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextDocumentView.cs @@ -6,8 +6,6 @@ // Description: TextView implementation for FlowDocument pages. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Controls.Primitives; // IScrollInfo diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextParagraphView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextParagraphView.cs index 30255603999..d87abe14728 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextParagraphView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextParagraphView.cs @@ -6,16 +6,10 @@ // Description: TextView implementation for TextBlock. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; -using MS.Internal.Text; -using MS.Internal.PtsHost; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextViewBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextViewBase.cs index 8d08306b7dc..5f322c4379b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextViewBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextViewBase.cs @@ -7,8 +7,6 @@ // the functionality common across TextViews. // -using System; // InvalidOperationException, ... -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ReadOnlyCollection using System.Windows; // Point, Rect, ... using System.Windows.Controls.Primitives; // DocumentPageView diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UIElementIsland.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UIElementIsland.cs index 209dee0f2f9..de658488c9a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UIElementIsland.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UIElementIsland.cs @@ -6,8 +6,6 @@ // Description: UIElement layout island. // -using System; -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ReadOnlyCollection using System.Windows; // UIElement using System.Windows.Media; // Visual diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UndoCloseAction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UndoCloseAction.cs index 60e1374f709..2264463d6dd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UndoCloseAction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UndoCloseAction.cs @@ -6,8 +6,6 @@ // Description: Enum for UndoManager.Close method. // -using System; - namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UndoManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UndoManager.cs index 72ade24a51f..4c05f0db50d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UndoManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/UndoManager.cs @@ -8,17 +8,8 @@ // See spec at Undo spec.htm // -using System; using System.Windows; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.Diagnostics; -using MS.Utility; -using System.Windows.Markup; -using System.Windows.Documents; -using System.Windows.Controls.Primitives; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Win32/UxThemeWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Win32/UxThemeWrapper.cs index 67a08749841..ca896d9ff2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Win32/UxThemeWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Win32/UxThemeWrapper.cs @@ -2,18 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Collections.Specialized; // NameValueCollection using System.Configuration; // ConfigurationManager -using System.Diagnostics; using System.IO; -using System.Runtime.InteropServices; -using System.Security; using System.Windows; -using System.Windows.Media; using System.Text; -using MS.Win32; using MS.Internal; namespace MS.Win32 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonDialog.cs index b458a2139ba..197c5ce536f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonDialog.cs @@ -2,6 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Runtime.InteropServices; +using System.Threading; +using System.Windows; +using System.Windows.Interop; + +using MS.Internal.Interop; +using MS.Win32; + // // // Description: @@ -17,17 +25,6 @@ namespace Microsoft.Win32 { - using System; - using System.Runtime.InteropServices; - using System.Security; - using System.Threading; - using System.Windows; - using System.Windows.Interop; - - using MS.Internal.Interop; - using MS.Internal.PresentationFramework; - using MS.Win32; - /// /// An abstract base class for displaying common dialogs. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonItemDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonItemDialog.cs index 2c41b4cff29..f3e3c76357f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonItemDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/CommonItemDialog.cs @@ -2,31 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// CommonItemDialog is an abstract class derived from CommonDialog -// that implements shared functionality common to all IFileDialog -// variants. It provides a common options storage and events handling. -// +using MS.Internal.AppModel; +using MS.Internal.Interop; +using MS.Win32; +using System.ComponentModel; +using System.Runtime.InteropServices; +using System.Text; +using System.Windows; + +// There are THREE definitions of HRESULT. Two in ErrorCodes, and one in wgx_render.cs. +// wgx_render.cs wins if we don't explicitly define it here. +using HRESULT = MS.Internal.Interop.HRESULT; namespace Microsoft.Win32 { - using MS.Internal; - using MS.Internal.AppModel; - using MS.Internal.Interop; - using MS.Win32; - - using System; - using System.ComponentModel; - using System.Collections.Generic; - using System.IO; - using System.Runtime.InteropServices; - using System.Text; - using System.Windows; - - using HRESULT = MS.Internal.Interop.HRESULT; - /// /// Provides a common base class for wrappers around both the /// File Open and File Save common dialog boxes. Derives from @@ -45,7 +34,7 @@ public abstract class CommonItemDialog : CommonDialog #region Constructors /// - /// In an inherited class, initializes a new instance of + /// In an inherited class, initializes a new instance of /// the System.Windows.CommonItemDialog class. /// private protected CommonItemDialog() @@ -68,7 +57,7 @@ private protected CommonItemDialog() /// /// Resets all properties to their default values. - /// Classes derived from CommonItemDialog are expected to + /// Classes derived from CommonItemDialog are expected to /// call Base.Reset() at the beginning of their /// implementation of Reset() if they choose to /// override this function. @@ -141,13 +130,13 @@ public string DefaultDirectory } } - // The actual flag is FOS_NODEREFERENCELINKS (set = do not dereference, unset = deref) - + // The actual flag is FOS_NODEREFERENCELINKS (set = do not dereference, unset = deref) - // while we have true = dereference and false=do not dereference. Because we expose - // the opposite of the Windows flag as a property to be clearer, we need to negate + // the opposite of the Windows flag as a property to be clearer, we need to negate // the value in both the getter and the setter here. /// - /// Gets or sets a value indicating whether the dialog box returns the location - /// of the file referenced by the shortcut or whether it returns the location + /// Gets or sets a value indicating whether the dialog box returns the location + /// of the file referenced by the shortcut or whether it returns the location /// of the shortcut (.lnk). Not all dialogs allow users to select shortcuts. /// public bool DereferenceLinks @@ -238,7 +227,7 @@ public string Title } } - // If false, the file dialog boxes will allow invalid characters in the returned file name. + // If false, the file dialog boxes will allow invalid characters in the returned file name. // We are actually responsible for dealing with this flag - it determines whether all of the // processing in ProcessFileNames (which includes things such as the AddExtension feature) // occurs. @@ -324,7 +313,7 @@ internal void SetOption(FOS option, bool value) } else { - // if value is false, AND the bitwise complement of the + // if value is false, AND the bitwise complement of the // option with _dialogOptions _dialogOptions &= ~option; } @@ -340,7 +329,7 @@ internal void SetOption(FOS option, bool value) /// Returns the choice the user made in the message box /// (true if MessageBoxResult.Yes, /// false if OK or MessageBoxResult.No) - /// + /// /// We have to do this instead of just calling MessageBox because /// of an issue where keyboard navigation would fail after showing /// a message box. See http://bugcheck/default.asp?URL=/Bugs/URT/84016.asp @@ -468,7 +457,7 @@ private protected virtual void RevertItemOk(object state) { } // If multiple files are selected, we only return the first filename. /// - /// Gets a string containing the full path of the file or folder selected in + /// Gets a string containing the full path of the file or folder selected in /// the dialog box. /// private protected string CriticalItemName @@ -494,7 +483,7 @@ private protected string[] MutableItemNames /// /// In cases where we need to return an array of strings, we return - /// a clone of the array. We also need to make sure we return a + /// a clone of the array. We also need to make sure we return a /// string[0] instead of a null if we don't have any filenames. /// private protected string[] CloneItemNames() @@ -532,9 +521,9 @@ private protected string[] CloneItemNames() // variables and for the options bitmask. private void Initialize() { - // + // // Initialize Options Flags - // + // _dialogOptions = 0; // _dialogOptions is an int containing a set of // bit flags used to initialize the dialog box. // Within our code, we only use GetOption and SetOption @@ -559,7 +548,7 @@ private void Initialize() // // Initialize additional properties - // + // _itemNames = null; _title = null; _initialDirectory = null; @@ -670,8 +659,8 @@ private static IShellItem ResolveCustomPlace(FileDialogCustomPlace customPlace) // // The solution is this private property, which returns the title of the // file dialog (using the stored handle of the dialog _hwndFileDialog to - // call GetWindowText). - // + // call GetWindowText). + // // It is designed to only be called by MessageBoxWithFocusRestore. private string DialogCaption { @@ -781,7 +770,7 @@ void IDisposable.Dispose() private string _defaultDirectory; // Starting directory if no recent private string _rootDirectory; // Topmost directory - // We store the handle of the file dialog inside our class + // We store the handle of the file dialog inside our class // for a variety of purposes (like getting the title of the dialog // box when we need to show a message box with the same title bar caption) private IntPtr _hwndFileDialog; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialog.cs index d48f72fbe51..079f3d8c503 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialog.cs @@ -2,6 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.AppModel; +using MS.Internal.Interop; +using System.ComponentModel; +using System.IO; +using System.Windows; + // // // Description: @@ -15,17 +22,6 @@ namespace Microsoft.Win32 { - using MS.Internal; - using MS.Internal.AppModel; - using MS.Internal.Interop; - - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.IO; - using System.Text; - using System.Windows; - /// /// Provides a common base class for wrappers around both the /// File Open and File Save common dialog boxes. Derives from diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialogCustomPlace.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialogCustomPlace.cs index ccc11430d26..79a3eabce42 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialogCustomPlace.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialogCustomPlace.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - namespace Microsoft.Win32 { - using System; - using System.Globalization; - /// /// A union of KnownFolders and file paths that can be placed into FileDialog's Favorites pane. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialogCustomPlaces.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialogCustomPlaces.cs index 5044e267db5..04937cf550b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialogCustomPlaces.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialogCustomPlaces.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - namespace Microsoft.Win32 { - using System; - // Guids defined here are copied from the KnownFolders.h file, part of the Windows SDK. // Not all folders in that header will work for FileDialogs. The WPF implementation limits the list to locations that have a physical backing, // e.g. not ControlPanel, Computer, etc. The real file dialogs work at a higher level of abstraction (shell namespaces instead of the file system) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/OpenFileDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/OpenFileDialog.cs index 76fadf864a1..f9c60fe0c46 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/OpenFileDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/OpenFileDialog.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; +using System.Windows; + +using MS.Internal.AppModel; +using MS.Internal.Interop; + // // // Description: @@ -13,17 +19,6 @@ namespace Microsoft.Win32 { - using System; - using System.Collections.Generic; - using System.IO; - using System.Security; - using System.Windows; - - using MS.Internal.AppModel; - using MS.Internal.Interop; - using MS.Internal.PresentationFramework; - using MS.Win32; - /// /// Represents a common dialog box that allows the user to open one or more file(s). /// This class cannot be inherited. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/OpenFolderDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/OpenFolderDialog.cs index d06aeb1fb30..36a88c43a68 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/OpenFolderDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/OpenFolderDialog.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.ComponentModel; +using System.IO; + +using MS.Internal.AppModel; +using MS.Internal.Interop; + // // // Description: @@ -12,14 +18,6 @@ namespace Microsoft.Win32 { - using System; - using System.ComponentModel; - using System.IO; - using System.Text; - - using MS.Internal.AppModel; - using MS.Internal.Interop; - /// /// Represents a common dialog box that allows the user to open one or more folder(s). /// This class cannot be inherited. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/SaveFileDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/SaveFileDialog.cs index 70b09338c25..70884c5c9c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/SaveFileDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/SaveFileDialog.cs @@ -2,6 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.AppModel; +using MS.Internal.Interop; +using System.IO; +using System.Windows; + // // // Description: @@ -14,16 +19,6 @@ namespace Microsoft.Win32 { - using MS.Internal.AppModel; - using MS.Internal.Interop; - using MS.Internal.PresentationFramework; - using MS.Win32; - using System; - using System.Collections.Generic; - using System.IO; - using System.Security; - using System.Windows; - /// /// Represents a common dialog box that allows the user to specify options /// for saving a file. This class cannot be inherited. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/OtherAssemblyAttrs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/OtherAssemblyAttrs.cs index 067d8d404f1..1b76fb97697 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/OtherAssemblyAttrs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/OtherAssemblyAttrs.cs @@ -7,42 +7,37 @@ // using MS.Internal.PresentationFramework; -using System; -using System.Resources; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using System.Security; -using System.Windows.Markup; -[assembly:TypeForwardedTo(typeof(System.Windows.NameScope))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.ArrayExtension))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.IProvideValueTarget))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.NullExtension))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.StaticExtension))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.TypeExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.NameScope))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.ArrayExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.IProvideValueTarget))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.NullExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.StaticExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.TypeExtension))] // IProvidePropertyFallback is an internal interface and not included in the PresentationCore reference assembly. // Therefore we need to ensure it's not included in the PresentationFramework reference assembly as it won't be defined there. #if !PRESENTATION_FRAMEWORK_REF -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.IProvidePropertyFallback))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.IProvidePropertyFallback))] #endif -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkRoyale)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkLuna)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkAero)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkAero2)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkAeroLite)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkClassic)] -[assembly:InternalsVisibleTo(BuildInfo.SystemWindowsPresentation)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemCore)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemXml)] -[assembly:InternalsVisibleTo(BuildInfo.SystemWindowsControlsRibbon)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkFluent)] -[assembly:DependencyAttribute("mscorlib,", LoadHint.Always)] -[assembly:DependencyAttribute("System,", LoadHint.Always)] -[assembly:DependencyAttribute("WindowsBase,", LoadHint.Always)] -[assembly:DependencyAttribute("PresentationCore,", LoadHint.Always)] -[assembly:DependencyAttribute("System.Xaml,", LoadHint.Sometimes)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkRoyale)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkLuna)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkAero)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkAero2)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkAeroLite)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkClassic)] +[assembly: InternalsVisibleTo(BuildInfo.SystemWindowsPresentation)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemCore)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemXml)] +[assembly: InternalsVisibleTo(BuildInfo.SystemWindowsControlsRibbon)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkFluent)] +[assembly: DependencyAttribute("mscorlib,", LoadHint.Always)] +[assembly: DependencyAttribute("System,", LoadHint.Always)] +[assembly: DependencyAttribute("WindowsBase,", LoadHint.Always)] +[assembly: DependencyAttribute("PresentationCore,", LoadHint.Always)] +[assembly: DependencyAttribute("System.Xaml,", LoadHint.Sometimes)] // Due to the XBAP script interop feature, we take a dependency on System.Core for the use // of the dynamic pseudo-type, on BrowserInteropHelper.HostScript. The dynamic type really @@ -53,36 +48,36 @@ // this eager loading to be caused by PresentationFramework's dependency on it. Note there // is a plan by the CLR team to remove the attribute on System.Core. At that point, we can // likely drop the attribute below, but there should be no harm in leaving it. -[assembly:DependencyAttribute("System.Core,", LoadHint.Sometimes)] +[assembly: DependencyAttribute("System.Core,", LoadHint.Sometimes)] -[assembly:System.Windows.ThemeInfoAttribute(System.Windows.ResourceDictionaryLocation.ExternalAssembly, System.Windows.ResourceDictionaryLocation.None)] +[assembly: System.Windows.ThemeInfoAttribute(System.Windows.ResourceDictionaryLocation.ExternalAssembly, System.Windows.ResourceDictionaryLocation.None)] // Namespace information for Xaml -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Controls")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Documents")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Shapes")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Shell")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Navigation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Data")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Controls.Primitives")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Animation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Controls")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Documents")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Shapes")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Shell")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Navigation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Data")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Controls.Primitives")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media.Animation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Input")] [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "av")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "av")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Controls")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Documents")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Shapes")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Shell")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Navigation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Data")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Controls.Primitives")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Animation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Controls")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Documents")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Shapes")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Shell")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Navigation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Data")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Controls.Primitives")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media.Animation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Input")] [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "wpf")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "wpf")] [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "System.Windows.Controls")] [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "System.Windows.Documents")] @@ -96,18 +91,18 @@ [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "System.Windows.Input")] [assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "wpf")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System.Windows.Markup")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/winfx/2006/xaml", "x")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System.Windows.Markup")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/winfx/2006/xaml", "x")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Controls")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Documents")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Shapes")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Navigation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Data")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Controls.Primitives")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Animation")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Input")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/xps/2005/06", "metro")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Controls")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Documents")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Shapes")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Navigation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Data")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Controls.Primitives")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media.Animation")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/xps/2005/06", "metro")] [assembly: System.Windows.Markup.XmlnsCompatibleWith("http://schemas.microsoft.com/xps/2005/06/resourcedictionary-key", "http://schemas.microsoft.com/winfx/2006/xaml")] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/PresentationFramework.csproj b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/PresentationFramework.csproj index 1c7c88d193d..5b90421c0a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/PresentationFramework.csproj +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/PresentationFramework.csproj @@ -34,6 +34,8 @@ + + @@ -47,7 +49,6 @@ - diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/ComponentModel/DesignerProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/ComponentModel/DesignerProperties.cs index d2884d79b49..52539176307 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/ComponentModel/DesignerProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/ComponentModel/DesignerProperties.cs @@ -3,6 +3,9 @@ // See the LICENSE file in the project root for more information. +using System.Windows; +using MS.Internal.KnownBoxes; + // // Description: // Provides attached properties used to communicate with a designer. @@ -12,10 +15,6 @@ namespace System.ComponentModel { - using System; - using System.Windows; - using MS.Internal.KnownBoxes; - /// /// The DesignerProperties class provides attached properties that can be used to /// query the state of a control when it is running in a designer. Designer tools diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/AccentColorHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/AccentColorHelper.cs index abf767a129b..04e82dc8e04 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/AccentColorHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/AccentColorHelper.cs @@ -1,10 +1,4 @@ -using System; using System.Windows.Media; -using System.Windows.Appearance; - -using MS.Internal; -using Microsoft.Win32; -using System.Runtime.InteropServices; using MS.Internal.WindowsRuntime.Windows.UI.ViewManagement; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnchorInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnchorInfo.cs index f5b339fe1e1..114309e53f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnchorInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnchorInfo.cs @@ -7,15 +7,6 @@ // IAnchorInfo is the public portion of IAttachedAnnotation. // - -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Annotations; -using System.Windows.Annotations.Storage; -using System.Windows.Media; -using MS.Utility; - namespace System.Windows.Annotations { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Annotation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Annotation.cs index 5eff7e04050..8fd0746026d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Annotation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Annotation.cs @@ -12,16 +12,9 @@ // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.IO; -using System.Windows.Annotations.Storage; -using System.Windows.Data; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationAuthorChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationAuthorChangedEventArgs.cs index 043e8878c0e..6285c22a69e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationAuthorChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationAuthorChangedEventArgs.cs @@ -12,7 +12,6 @@ // Spec: Simplifying Store Cache Model.doc // -using System; using System.ComponentModel; namespace System.Windows.Annotations diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationComponentChooser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationComponentChooser.cs index 3306e161d77..2ff8e3fb0cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationComponentChooser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationComponentChooser.cs @@ -7,10 +7,6 @@ // AnnotationComponentChooser // -using System; -using System.Diagnostics; -using System.Reflection; -using System.Windows; using System.Windows.Controls; using MS.Internal.Annotations; using MS.Internal.Annotations.Component; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationDocumentPaginator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationDocumentPaginator.cs index 32eb688c952..c8fa3aba558 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationDocumentPaginator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationDocumentPaginator.cs @@ -3,18 +3,13 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.IO; using System.Windows.Annotations.Storage; using System.Windows.Documents; -using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Media; -using System.Windows.Shapes; using MS.Internal; using MS.Internal.Annotations; using MS.Internal.Annotations.Anchoring; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationHelper.cs index cf43feb9986..43a20fa0909 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationHelper.cs @@ -4,28 +4,16 @@ #pragma warning disable 1634, 1691 -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Windows.Threading; -using System.IO; -using System.Windows; -using System.Windows.Annotations.Storage; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Markup; using System.Xml; -using System.Diagnostics; using MS.Internal; using MS.Internal.Annotations; using MS.Internal.Annotations.Anchoring; using MS.Internal.Annotations.Component; -using MS.Internal.Documents; using MS.Utility; namespace System.Windows.Annotations diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationResource.cs index d151c4ab5bc..e07da11d185 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationResource.cs @@ -12,15 +12,9 @@ // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows.Annotations.Storage; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationResourceChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationResourceChangedEventArgs.cs index c8825d40678..8e12c9cb705 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationResourceChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationResourceChangedEventArgs.cs @@ -12,7 +12,6 @@ // Spec: Simplifying Store Cache Model.doc // -using System; using System.ComponentModel; namespace System.Windows.Annotations diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationService.cs index 123065a2255..64fd28efcb9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationService.cs @@ -9,31 +9,19 @@ // and invoking the annotation framework. // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel; using System.Windows.Threading; -using System.IO; -using System.Windows; using System.Windows.Annotations.Storage; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Markup; -using System.Xml; using MS.Internal; using MS.Internal.Annotations; using MS.Internal.Annotations.Anchoring; using MS.Internal.Annotations.Component; -using MS.Internal.Documents; using MS.Utility; -using System.Reflection; // for BindingFlags -using System.Globalization; // for CultureInfo -using System.Threading; namespace System.Windows.Annotations { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorBase.cs index 708a5e4922e..cd9be229eac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorBase.cs @@ -12,11 +12,7 @@ // Spec: Simplifying Store Cache Model.doc // -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Xml; using MS.Internal.Annotations; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorGroup.cs index 0d177cf6463..f77f1bc8716 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorGroup.cs @@ -11,14 +11,8 @@ // Spec: Simplifying Store Cache Model.doc // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Annotations.Storage; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorPart.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorPart.cs index 7860b88d1df..4da679333cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorPart.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorPart.cs @@ -11,11 +11,7 @@ // Spec: Simplifying Store Cache Model.doc // -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.Xml; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorPartList.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorPartList.cs index 9d47746ea75..7ad3b402c4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorPartList.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/LocatorPartList.cs @@ -13,15 +13,8 @@ // Spec: Simplifying Store Cache Model.doc // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Annotations.Storage; -using System.Windows.Data; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/AnnotationStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/AnnotationStore.cs index 6413862d947..9dcca35a156 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/AnnotationStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/AnnotationStore.cs @@ -9,14 +9,6 @@ // Spec: CAF%20Storage%20Spec.doc // - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Xml; -using System.Windows.Annotations; -using System.Windows.Markup; - namespace System.Windows.Annotations.Storage { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/StoreContentChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/StoreContentChangedEventArgs.cs index 2bc700d9a27..9bb1361329d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/StoreContentChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/StoreContentChangedEventArgs.cs @@ -12,11 +12,6 @@ // Spec: CAF%20Storage%20Spec.doc // - -using System; -using System.Collections; -using System.Xml; - namespace System.Windows.Annotations.Storage { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/XmlStreamStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/XmlStreamStore.cs index 216c6430144..dcb886b0ed4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/XmlStreamStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/XmlStreamStore.cs @@ -12,25 +12,14 @@ // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Diagnostics; using System.IO; -using System.Windows; -using System.Windows.Annotations; using System.Xml; -using System.Xml.Schema; using System.Xml.XPath; -using System.Xml.Serialization; using MS.Internal; using MS.Internal.Annotations; using MS.Internal.Annotations.Storage; using MS.Utility; using System.Windows.Markup; -using MS.Internal.Controls.StickyNote; -using System.Windows.Controls; namespace System.Windows.Annotations.Storage { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Appearance/WindowBackdropManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Appearance/WindowBackdropManager.cs index e80504c34d0..81157e76b02 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Appearance/WindowBackdropManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Appearance/WindowBackdropManager.cs @@ -1,4 +1,3 @@ -using System.Runtime.InteropServices; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs index 929a2b56911..183bb2cbf48 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs @@ -21,39 +21,26 @@ //warnings 1634 and 1691. (From PreSharp Documentation) #pragma warning disable 1634, 1691 -using System; - using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; using System.IO; using System.Reflection; -using System.Runtime.InteropServices; -using System.Security; -using System.Resources; using System.Threading; using System.IO.Packaging; using System.Windows.Threading; using System.Windows.Navigation; -using System.Windows; using System.Windows.Interop; using System.Windows.Resources; using System.Windows.Markup; using System.Net; -using System.Text; using MS.Internal; using MS.Internal.AppModel; using MS.Internal.IO.Packaging; using MS.Internal.Interop; -using MS.Internal.Navigation; -using MS.Internal.Telemetry; using MS.Internal.Utility; -using MS.Internal.Resources; using MS.Utility; using MS.Win32; using Microsoft.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/AttachedPropertyBrowsableForChildrenAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/AttachedPropertyBrowsableForChildrenAttribute.cs index 94158b4ffd2..720d55832c4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/AttachedPropertyBrowsableForChildrenAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/AttachedPropertyBrowsableForChildrenAttribute.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -namespace System.Windows +namespace System.Windows { - using System; - /// /// This attribute declares that a property is visible when the /// property owner is a parent of another element. For example, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ButtonAutomationPeer.cs index b4b03e97267..848134e887b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ButtonAutomationPeer.cs @@ -2,21 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Input; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; -using MS.Internal; -using MS.Win32; - namespace System.Windows.Automation.Peers { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ButtonBaseAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ButtonBaseAutomationPeer.cs index d5c2a3f6d90..c95ca3db3b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ButtonBaseAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ButtonBaseAutomationPeer.cs @@ -2,27 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Input; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { - /// - public abstract class ButtonBaseAutomationPeer: FrameworkElementAutomationPeer + /// + public abstract class ButtonBaseAutomationPeer: FrameworkElementAutomationPeer { /// protected ButtonBaseAutomationPeer(ButtonBase owner): base(owner) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CalendarAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CalendarAutomationPeer.cs index af50fe69cfe..67f064fc1b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CalendarAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CalendarAutomationPeer.cs @@ -3,15 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Globalization; -using System.Security; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; using MS.Internal.Automation; namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CalendarButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CalendarButtonAutomationPeer.cs index abc8c28f2b9..b9d35ee39ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CalendarButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CalendarButtonAutomationPeer.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Input; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CheckBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CheckBoxAutomationPeer.cs index 35c0edf9302..a504b50f841 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CheckBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/CheckBoxAutomationPeer.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ComboBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ComboBoxAutomationPeer.cs index 7ca001e1231..52260901c3f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ComboBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ComboBoxAutomationPeer.cs @@ -2,23 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; -using MS.Internal; -using MS.Win32; - namespace System.Windows.Automation.Peers { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ContentTextAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ContentTextAutomationPeer.cs index 161c8476ea2..d301fc5958a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ContentTextAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ContentTextAutomationPeer.cs @@ -7,7 +7,6 @@ // Description: Base class for AutomationPeers associated with TextPattern. // -using System.Collections.Generic; // List using System.Windows.Automation.Provider; // IRawElementProviderSimple using System.Windows.Documents; // ITextPointer using MS.Internal.Automation; // EventMap diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ContextMenuAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ContextMenuAutomationPeer.cs index 38f6d2ebce0..9721aeecf9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ContextMenuAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ContextMenuAutomationPeer.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridAutomationPeer.cs index 4bddf1b1f9e..94fa409237d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridAutomationPeer.cs @@ -2,14 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Media; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridCellAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridCellAutomationPeer.cs index 09b7cc49696..fc8c8a0a891 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridCellAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridCellAutomationPeer.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using MS.Internal; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridCellItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridCellItemAutomationPeer.cs index 9a4c55bd455..0be0e9914b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridCellItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridCellItemAutomationPeer.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeaderAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeaderAutomationPeer.cs index c6ce565296b..fc6a9b6a3a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeaderAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeaderAutomationPeer.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using MS.Internal; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeaderItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeaderItemAutomationPeer.cs index 48d469f9564..6e954a9ddb0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeaderItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeaderItemAutomationPeer.cs @@ -2,15 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Data; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeadersPresenterAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeadersPresenterAutomationPeer.cs index 89a01bbabf3..ce15cd50be2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeadersPresenterAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridColumnHeadersPresenterAutomationPeer.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridDetailsPresenterAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridDetailsPresenterAutomationPeer.cs index 3424b00156d..5cdc99e1e0f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridDetailsPresenterAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridDetailsPresenterAutomationPeer.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using MS.Internal; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridItemAutomationPeer.cs index 9d95825d1a5..0b8189360b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridItemAutomationPeer.cs @@ -2,13 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Security; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridRowAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridRowAutomationPeer.cs index 5fe23e9e737..ceb8c4670d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridRowAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridRowAutomationPeer.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using MS.Internal; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridRowHeaderAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridRowHeaderAutomationPeer.cs index fb3de3f9ba6..b060bfd5b26 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridRowHeaderAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DataGridRowHeaderAutomationPeer.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using MS.Internal; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DatePickerAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DatePickerAutomationPeer.cs index 759682dd287..31fdbe5f465 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DatePickerAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DatePickerAutomationPeer.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. -using System.Collections.Generic; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DateTimeAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DateTimeAutomationPeer.cs index b41058772fe..4f9ae3d6660 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DateTimeAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DateTimeAutomationPeer.cs @@ -3,15 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Input; using System.Windows.Threading; namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentAutomationPeer.cs index 63df16cb25c..e1567e1f150 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentAutomationPeer.cs @@ -6,8 +6,6 @@ // Description: AutomationPeer associated with flow and fixed documents. // -using System.Collections.Generic; // List -using System.Security; // SecurityCritical using System.Windows.Documents; // ITextContainer using System.Windows.Interop; // HwndSource using System.Windows.Media; // Visual diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentPageViewAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentPageViewAutomationPeer.cs index dae3e3ebc8f..67e1074d478 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentPageViewAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentPageViewAutomationPeer.cs @@ -6,9 +6,7 @@ // Description: AutomationPeer associated with DocumentPageView. // -using System.Collections.Generic; // List using System.Globalization; // CultureInfo -using System.Windows.Controls; // DocumentViewer using System.Windows.Controls.Primitives; // DocumentPageView namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentViewerAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentViewerAutomationPeer.cs index dfabbc118bc..d6682d30a1f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentViewerAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentViewerAutomationPeer.cs @@ -2,20 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Documents; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentViewerBaseAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentViewerBaseAutomationPeer.cs index 84526b9d846..5aec83c7fb5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentViewerBaseAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/DocumentViewerBaseAutomationPeer.cs @@ -6,7 +6,6 @@ // Description: AutomationPeer associated with DocumentViewerBase. // -using System.Collections.Generic; // List using System.Windows.Controls.Primitives; // DocumentViewerBase using System.Windows.Documents; // IDocumentPaginatorSource diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ExpanderAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ExpanderAutomationPeer.cs index e2da658f4a4..86ec4c672ee 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ExpanderAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ExpanderAutomationPeer.cs @@ -2,21 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FixedPageAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FixedPageAutomationPeer.cs index ccb1704b6ec..622a4bbdd44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FixedPageAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FixedPageAutomationPeer.cs @@ -2,20 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Documents; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentPageViewerAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentPageViewerAutomationPeer.cs index e4f07b4327f..86321a1ff67 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentPageViewerAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentPageViewerAutomationPeer.cs @@ -6,7 +6,6 @@ // Description: AutomationPeer associated with FlowDocumentPageViewer. // -using System.Collections.Generic; // List using System.Windows.Controls; // FlowDocumentPageViewer using MS.Internal.Documents; // IFlowDocumentView diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentReaderAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentReaderAutomationPeer.cs index ba8269b22c3..45fd37d0c11 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentReaderAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentReaderAutomationPeer.cs @@ -6,7 +6,6 @@ // Description: AutomationPeer associated with FlowDocumentReader. // -using System.Collections.Generic; // List using System.Windows.Automation.Provider; // IMultipleViewProvider using System.Windows.Controls; // FlowDocumentReader using System.Windows.Documents; // FlowDocument diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentScrollViewerAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentScrollViewerAutomationPeer.cs index 1392f3125e0..694ab23a4f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentScrollViewerAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FlowDocumentScrollViewerAutomationPeer.cs @@ -7,7 +7,6 @@ // Description: AutomationPeer associated with FlowDocumentScrollViewer. // -using System.Collections.Generic; // List using System.Windows.Automation.Provider; // IScrollProvider using System.Windows.Controls; // FlowDocumentScrollViewer using System.Windows.Documents; // FlowDocument diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameAutomationPeer.cs index cfe9e146983..88ac58bf438 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameAutomationPeer.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; -using System.ComponentModel; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameworkContentElementAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameworkContentElementAutomationPeer.cs index 037604350f6..f6b595b0668 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameworkContentElementAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameworkContentElementAutomationPeer.cs @@ -6,7 +6,6 @@ // Description: AutomationPeer associated with FrameworkContnetElement. // -using System.Windows.Markup; // DefinitionProperties using System.Windows.Controls; // Label namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameworkElementAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameworkElementAutomationPeer.cs index e58910a9bf1..2d34ffc08bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameworkElementAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/FrameworkElementAutomationPeer.cs @@ -2,20 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; -using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; -using System.Windows.Markup; - -using MS.Internal; -using MS.Win32; - namespace System.Windows.Automation.Peers { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridSplitterAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridSplitterAutomationPeer.cs index 384bea229d0..29669426291 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridSplitterAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridSplitterAutomationPeer.cs @@ -2,19 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewAutomationPeer.cs index dd584035eeb..f1e215587a9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewAutomationPeer.cs @@ -2,25 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Internal.Automation; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewCellAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewCellAutomationPeer.cs index 9bb7c5b7b5c..239d2617037 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewCellAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewCellAutomationPeer.cs @@ -2,22 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; using System.Windows.Media; using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewColumnHeaderAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewColumnHeaderAutomationPeer.cs index 8db7591a253..39d96658871 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewColumnHeaderAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewColumnHeaderAutomationPeer.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewHeaderRowPresenterAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewHeaderRowPresenterAutomationPeer.cs index 56e509adcb7..f91d00820d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewHeaderRowPresenterAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewHeaderRowPresenterAutomationPeer.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewItemAutomationPeer.cs index 8be12299561..283007f3ef3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GridViewItemAutomationPeer.cs @@ -2,22 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GroupBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GroupBoxAutomationPeer.cs index c5389b280ca..91d2f941d44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GroupBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GroupBoxAutomationPeer.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GroupItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GroupItemAutomationPeer.cs index decff77e872..bf60886bcc7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GroupItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/GroupItemAutomationPeer.cs @@ -2,23 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Data; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; using MS.Internal.Data; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/HwndHostAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/HwndHostAutomationPeer.cs index 7abc1a8cbbe..a863973e492 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/HwndHostAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/HwndHostAutomationPeer.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Collections.Generic; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Interop; -using System.Security; using MS.Internal.Automation; namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/IViewAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/IViewAutomationPeer.cs index 864ce985271..d4e961f5884 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/IViewAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/IViewAutomationPeer.cs @@ -6,7 +6,6 @@ // Description: IViewAutomationPeer interface // -using System.Collections.Generic; using System.Collections.Specialized; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ImageAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ImageAutomationPeer.cs index c40ca25d852..e72d06c1862 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ImageAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ImageAutomationPeer.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/InkCanvasAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/InkCanvasAutomationPeer.cs index b76c7993f82..7765891b1df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/InkCanvasAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/InkCanvasAutomationPeer.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/InkPresenterAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/InkPresenterAutomationPeer.cs index 616e786bb6b..df41dddd7d5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/InkPresenterAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/InkPresenterAutomationPeer.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemAutomationPeer.cs index 01f2962f2f2..5b5be0b384a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemAutomationPeer.cs @@ -2,23 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; using MS.Internal; using MS.Internal.Data; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlAutomationPeer.cs index ee349cb6e2f..42bf331eaf9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlAutomationPeer.cs @@ -2,26 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Interop; -using System.Windows.Media; using MS.Internal; using MS.Internal.Automation; using MS.Internal.Hashing.PresentationFramework; // HashHelper -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlItemAutomationPeer.cs index 088db5231c9..059c2914f8c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlItemAutomationPeer.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Controls; - namespace System.Windows.Automation.Peers { // work around (ItemsControl.GroupStyle doesn't show items in groups in the UIAutomation tree) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlWrapperAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlWrapperAutomationPeer.cs index a9eb8c9264f..859f3c6c7b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlWrapperAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ItemsControlWrapperAutomationPeer.cs @@ -2,13 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls; -using MS.Internal; -using MS.Win32; - namespace System.Windows.Automation.Peers { // work around (ItemsControl.GroupStyle doesn't show items in groups in the UIAutomation tree) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/LabelAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/LabelAutomationPeer.cs index c40b1044952..1fb11b56942 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/LabelAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/LabelAutomationPeer.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxAutomationPeer.cs index 168d04f0df4..f9c02dc5b6d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxAutomationPeer.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxItemAutomationPeer.cs index eeaa273971f..08127c478f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxItemAutomationPeer.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxItemWrapperAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxItemWrapperAutomationPeer.cs index f80ee4ff4c4..af77a27d527 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxItemWrapperAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListBoxItemWrapperAutomationPeer.cs @@ -2,27 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Input; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { - /// - public class ListBoxItemWrapperAutomationPeer: FrameworkElementAutomationPeer + /// + public class ListBoxItemWrapperAutomationPeer: FrameworkElementAutomationPeer { /// public ListBoxItemWrapperAutomationPeer(ListBoxItem owner): base(owner) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListViewAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListViewAutomationPeer.cs index e93f8b3657f..6611bcd41db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListViewAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ListViewAutomationPeer.cs @@ -2,21 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MediaElementAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MediaElementAutomationPeer.cs index 8a293f53561..6c1c9f6850a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MediaElementAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MediaElementAutomationPeer.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls; namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuAutomationPeer.cs index 9006150f7ed..c42f38e5b68 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuAutomationPeer.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuItemAutomationPeer.cs index 5fef2642694..f0a6e36d267 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/MenuItemAutomationPeer.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/NavigationWindowAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/NavigationWindowAutomationPeer.cs index 3cadb46208c..85bf3323d1b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/NavigationWindowAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/NavigationWindowAutomationPeer.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Automation; using System.Windows.Navigation; -using System.Windows.Interop; -using System.Windows.Media; -using System.ComponentModel; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/PasswordBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/PasswordBoxAutomationPeer.cs index c73b5040eda..dad57d19311 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/PasswordBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/PasswordBoxAutomationPeer.cs @@ -7,22 +7,10 @@ // Description: The AutomationPeer for PasswordBox. // -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Documents; - -using MS.Internal; using MS.Internal.Automation; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/PopupRootAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/PopupRootAutomationPeer.cs index 688e1e938a2..e0e0feaabdd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/PopupRootAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/PopupRootAutomationPeer.cs @@ -2,17 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ProgressBarAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ProgressBarAutomationPeer.cs index a2525881959..65e7e2e6538 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ProgressBarAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ProgressBarAutomationPeer.cs @@ -2,15 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RadioButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RadioButtonAutomationPeer.cs index 7101cb1be5e..54829755612 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RadioButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RadioButtonAutomationPeer.cs @@ -2,18 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RangeBaseAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RangeBaseAutomationPeer.cs index 35733c39934..8a1fcae51cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RangeBaseAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RangeBaseAutomationPeer.cs @@ -2,19 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RepeatButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RepeatButtonAutomationPeer.cs index 88a65e503a6..a0bdb07a59d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RepeatButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RepeatButtonAutomationPeer.cs @@ -2,19 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RichTextBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RichTextBoxAutomationPeer.cs index 952ce0e9a7f..bea50979981 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RichTextBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/RichTextBoxAutomationPeer.cs @@ -2,22 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Documents; -using System.Windows.Interop; -using System.Windows.Media; using MS.Internal.Documents; -using MS.Internal; using MS.Internal.Automation; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ScrollBarAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ScrollBarAutomationPeer.cs index 1c0e2f5c8ad..825c6ae4746 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ScrollBarAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ScrollBarAutomationPeer.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using MS.Internal; -using MS.Win32; - namespace System.Windows.Automation.Peers { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ScrollViewerAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ScrollViewerAutomationPeer.cs index 722d1d00b41..933e0a7a22c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ScrollViewerAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ScrollViewerAutomationPeer.cs @@ -2,19 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Globalization; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SelectorAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SelectorAutomationPeer.cs index ead34ff2bd3..d2fac7507b8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SelectorAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SelectorAutomationPeer.cs @@ -2,21 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SelectorItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SelectorItemAutomationPeer.cs index a6cb4d4bc91..8bdd14141a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SelectorItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SelectorItemAutomationPeer.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SeparatorAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SeparatorAutomationPeer.cs index bb2c3eafdac..cc3f80506f0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SeparatorAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SeparatorAutomationPeer.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SliderAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SliderAutomationPeer.cs index afb9372cd04..777c0b5b133 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SliderAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/SliderAutomationPeer.cs @@ -2,15 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/StatusBarAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/StatusBarAutomationPeer.cs index 03927f0d817..53add53db8c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/StatusBarAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/StatusBarAutomationPeer.cs @@ -2,21 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; using System.Windows.Media; using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/StatusBarItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/StatusBarItemAutomationPeer.cs index 678e83be8d5..eac1b6e9c5a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/StatusBarItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/StatusBarItemAutomationPeer.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabControlAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabControlAutomationPeer.cs index 9903bc1058f..b21f32e93af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabControlAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabControlAutomationPeer.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabItemAutomationPeer.cs index 1b2e6afc559..6ffe364f306 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabItemAutomationPeer.cs @@ -2,20 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabItemWrapperAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabItemWrapperAutomationPeer.cs index fd6acc8e588..5fa7b6746d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabItemWrapperAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TabItemWrapperAutomationPeer.cs @@ -2,14 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls; namespace System.Windows.Automation.Peers { - /// - public class TabItemWrapperAutomationPeer: FrameworkElementAutomationPeer + /// + public class TabItemWrapperAutomationPeer: FrameworkElementAutomationPeer { /// public TabItemWrapperAutomationPeer(TabItem owner): base(owner) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextAutomationPeer.cs index 82d72a6cbcd..660efedc5c7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextAutomationPeer.cs @@ -6,7 +6,6 @@ // Description: Base class for AutomationPeers associated with TextPattern. // -using System.Collections.Generic; // List using System.Windows.Automation.Provider; // IRawElementProviderSimple using System.Windows.Documents; // ITextPointer using MS.Internal.Automation; // EventMap, TextAdaptor diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextBlockAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextBlockAutomationPeer.cs index c458b438b98..d386e175dd8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextBlockAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextBlockAutomationPeer.cs @@ -7,9 +7,7 @@ // Description: AutomationPeer associated with TextBlock. // -using System.Collections.Generic; // List using System.Windows.Controls; // TextBlock -using System.Windows.Documents; // ITextContainer using MS.Internal.Documents; // TextContainerHelper namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextBoxAutomationPeer.cs index a2756d057f4..5b405c3f751 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextBoxAutomationPeer.cs @@ -2,22 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Documents; - -using MS.Internal; using MS.Internal.Automation; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextElementAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextElementAutomationPeer.cs index 63dfc9d0817..1578237e09d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextElementAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TextElementAutomationPeer.cs @@ -6,13 +6,9 @@ // Description: AutomationPeer associated with TextElements. // -using System.Collections; -using System.Collections.Generic; // List -using System.Security; // SecurityCritical using System.Windows.Documents; // ITextContainer using System.Windows.Media; // Geometry using System.Windows.Interop; // HwndSource -using MS.Internal.Automation; // TextAdaptor using MS.Internal; using MS.Internal.Documents; // TextContainerHelper diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ThumbAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ThumbAutomationPeer.cs index 0a428139f7e..71ab073b787 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ThumbAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ThumbAutomationPeer.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToggleButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToggleButtonAutomationPeer.cs index e836624e825..25f4888566f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToggleButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToggleButtonAutomationPeer.cs @@ -2,19 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToolBarAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToolBarAutomationPeer.cs index d93284842f6..de3d957d580 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToolBarAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToolBarAutomationPeer.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToolTipAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToolTipAutomationPeer.cs index 76d7f371234..0231acf9850 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToolTipAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/ToolTipAutomationPeer.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; -using System.ComponentModel; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewAutomationPeer.cs index ff923297535..542cd4adfb7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewAutomationPeer.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; - -using MS.Internal; -using MS.Win32; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewDataItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewDataItemAutomationPeer.cs index e6af9188871..cf3bd49a0c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewDataItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewDataItemAutomationPeer.cs @@ -8,23 +8,11 @@ // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Threading; -using MS.Internal; -using MS.Win32; - namespace System.Windows.Automation.Peers { public class TreeViewDataItemAutomationPeer : ItemAutomationPeer, ISelectionItemProvider, IScrollItemProvider, IExpandCollapseProvider diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewItemAutomationPeer.cs index 52f60d8fa9f..6a2f3ac63fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/TreeViewItemAutomationPeer.cs @@ -2,22 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Interop; using System.Windows.Media; -using MS.Internal; -using MS.Win32; - namespace System.Windows.Automation.Peers { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/UserControlAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/UserControlAutomationPeer.cs index 466272a3549..2982e889006 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/UserControlAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/UserControlAutomationPeer.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls; -using System.Windows.Interop; -using System.Windows.Media; -using System.ComponentModel; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/Viewport3DAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/Viewport3DAutomationPeer.cs index 491760f24f4..c78ff2e98d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/Viewport3DAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/Viewport3DAutomationPeer.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls; namespace System.Windows.Automation.Peers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/WindowAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/WindowAutomationPeer.cs index 640856cd141..929a4c1725d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/WindowAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Automation/Peers/WindowAutomationPeer.cs @@ -2,16 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; using System.Text; -using System.Windows; -using System.Windows.Interop; -using System.Windows.Media; using System.ComponentModel; - -using MS.Internal; using MS.Win32; // Used to support the warnings disabled below diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/BroadcastEventHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/BroadcastEventHelper.cs index ace65f98990..8025619d878 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/BroadcastEventHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/BroadcastEventHelper.cs @@ -2,15 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; using System.Windows.Threading; -using System.Windows.Documents; using MS.Internal; using MS.Internal.PresentationFramework; // SafeSecurityHelper diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ColorConvertedBitmapExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ColorConvertedBitmapExtension.cs index 1738d73617b..89e41db861c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ColorConvertedBitmapExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ColorConvertedBitmapExtension.cs @@ -9,17 +9,10 @@ * * \***************************************************************************/ -using System; using System.IO; -using System.Collections; -using System.Diagnostics; -using System.Windows; -using System.Windows.Documents; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Imaging; -using System.Reflection; -using MS.Internal; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ComponentResourceKey.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ComponentResourceKey.cs index a0421e601f6..1ce9d55f971 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ComponentResourceKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ComponentResourceKey.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Reflection; -using System.Text; using System.ComponentModel; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ComponentResourceKeyConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ComponentResourceKeyConverter.cs index 2cbcf35a9c1..b9243008be9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ComponentResourceKeyConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ComponentResourceKeyConverter.cs @@ -5,11 +5,8 @@ // // -using System; using System.ComponentModel; using System.Globalization; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Condition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Condition.cs index ce0887f65bf..11e24727000 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Condition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Condition.cs @@ -2,14 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System.IO; using System.Windows.Markup; using System.ComponentModel; - -using System; using System.Windows.Data; -using System.Diagnostics; using System.Globalization; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ConditionCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ConditionCollection.cs index 56083d347f2..0fdffa59882 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ConditionCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ConditionCollection.cs @@ -11,10 +11,6 @@ * \***************************************************************************/ using System.Collections.ObjectModel; // Collection -using System.Diagnostics; // Debug.Assert -using System.Windows.Data; // Binding knowledge -using System.Windows.Media; // Visual knowledge -using System.Windows.Markup; // MarkupExtension namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ControlTemplate.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ControlTemplate.cs index deb5e1a55b7..f966b28e95d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ControlTemplate.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ControlTemplate.cs @@ -11,9 +11,6 @@ // // -using System.Diagnostics; // Debug -using System.Windows.Controls; // Control -using System.Windows.Media.Animation; // Timeline using System.Windows.Navigation; // PageFunctionBase using System.ComponentModel; // DesignerSerializationVisibilityAttribute & DefaultValue using System.Windows.Markup; // DependsOnAttribute diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AVElementHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AVElementHelper.cs index 78070ea02fb..11ac67b9257 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AVElementHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AVElementHelper.cs @@ -8,14 +8,7 @@ using MS.Internal; -using MS.Utility; -using System.Diagnostics; -using System.Windows.Threading; -using System; -using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Security; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AccessText.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AccessText.cs index 72b99cc2624..63be66087db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AccessText.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AccessText.cs @@ -6,12 +6,10 @@ using System.Collections; using System.ComponentModel; using System.Globalization; -using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Markup; -using System.Diagnostics; using System.Xml; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AddingNewItemEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AddingNewItemEventArgs.cs index fcc2d323f6d..196ee5609c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AddingNewItemEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AddingNewItemEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AdornedElementPlaceholder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AdornedElementPlaceholder.cs index b4605470695..f27b3a84d41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AdornedElementPlaceholder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AdornedElementPlaceholder.cs @@ -11,18 +11,11 @@ // See specs at Validation.mht // -using System; using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Media; -using System.Windows; -using System.Windows.Data; -using System.Windows.Documents; using System.Windows.Markup; using MS.Internal.Controls; -using MS.Utility; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AlternationConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AlternationConverter.cs index 50b39a98eaf..22327edcd17 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AlternationConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AlternationConverter.cs @@ -6,9 +6,7 @@ // Description: Convert between index and a list of values. // -using System; using System.Collections; -using System.Collections.Generic; using System.Globalization; using System.Windows.Data; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BooleanToSelectiveScrollingOrientationConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BooleanToSelectiveScrollingOrientationConverter.cs index 5f4d512918f..34b56420500 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BooleanToSelectiveScrollingOrientationConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BooleanToSelectiveScrollingOrientationConverter.cs @@ -3,9 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Globalization; -using System.Windows; using System.Windows.Data; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BooleanToVisibilityConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BooleanToVisibilityConverter.cs index 45427b52f9c..97ef589e522 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BooleanToVisibilityConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BooleanToVisibilityConverter.cs @@ -3,15 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; -using System.Windows; -using System.Windows.Media; using System.Windows.Data; using System.Globalization; -using System.Collections.Generic; - -using MS.Internal.Controls; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Border.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Border.cs index 4b8aefc430e..8d33efdd287 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Border.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Border.cs @@ -11,10 +11,6 @@ using MS.Internal; using MS.Internal.PresentationFramework; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; -using System; -using System.Diagnostics; -using System.Windows.Threading; using System.Windows.Media; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BorderGapMaskConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BorderGapMaskConverter.cs index ba2d4d680ab..8e856d7a7a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BorderGapMaskConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BorderGapMaskConverter.cs @@ -7,7 +7,6 @@ // using System.Globalization; -using System.Windows.Controls; using System.Windows.Data; using System.Windows.Media; using System.Windows.Shapes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Button.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Button.cs index 09318d64cc6..cb124b56633 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Button.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Button.cs @@ -2,19 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Shapes; - -using MS.Utility; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Calendar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Calendar.cs index e12e5f61e91..00c94607c9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Calendar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Calendar.cs @@ -3,10 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarBlackoutDatesCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarBlackoutDatesCollection.cs index b46031de7b0..9578f93561c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarBlackoutDatesCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarBlackoutDatesCollection.cs @@ -3,10 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; using System.Threading; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateChangedEventArgs.cs index a45f08b216d..ca308b91094 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateChangedEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateRange.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateRange.cs index a323b1bdb60..93e1c4a7479 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateRange.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateRangeChangingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateRangeChangingEventArgs.cs index 504518c6eb3..1fd9d4125a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateRangeChangingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarDateRangeChangingEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarSelectionChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarSelectionChangedEventArgs.cs index 842c84a0756..31de538ede6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarSelectionChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CalendarSelectionChangedEventArgs.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Windows; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Canvas.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Canvas.cs index 0e680cf7820..7731b8b6049 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Canvas.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Canvas.cs @@ -7,20 +7,11 @@ // Spec at Canvas.xml // -using MS.Internal; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Threading; - using System.Windows.Media; - -using System; - using MS.Internal.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CheckBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CheckBox.cs index fee2635c1a1..497bee317ba 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CheckBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CheckBox.cs @@ -3,17 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.ComponentModel; -using System.Windows.Threading; - -using System.Windows.Automation; using System.Windows.Controls.Primitives; -using System.Windows; using System.Windows.Input; -using System.Windows.Media; -using MS.Utility; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CleanUpVirtualizedItemEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CleanUpVirtualizedItemEventArgs.cs index b22fcda0f05..5069ccf7ce8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CleanUpVirtualizedItemEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CleanUpVirtualizedItemEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.ComponentModel; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ClickMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ClickMode.cs index 5ee43b7be14..970353935aa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ClickMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ClickMode.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ColumnDefinition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ColumnDefinition.cs index 6962180fe76..2da494315cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ColumnDefinition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ColumnDefinition.cs @@ -2,20 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Threading; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Markup; -using MS.Internal; -using System.Reflection; using System.ComponentModel; -using BuildInfo=MS.Internal.PresentationFramework.BuildInfo; +using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; //--------------------------------------------------------------------------- // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs index 6eea8bca056..bc792c20ac2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs @@ -3,25 +3,15 @@ // See the LICENSE file in the project root for more information. -using System; - using System.ComponentModel; - -using System.Collections; using System.Collections.Specialized; -using System.Diagnostics; -using System.Globalization; using System.Windows.Threading; - -using System.Windows; using System.Windows.Automation.Peers; -using System.Security; using System.Windows.Media; using System.Windows.Input; using System.Windows.Documents; using System.Windows.Interop; using System.Windows.Controls.Primitives; -using System.Windows.Markup; using System.Windows.Shapes; using MS.Internal.KnownBoxes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBoxItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBoxItem.cs index f9cb8c0062f..5141616b510 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBoxItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBoxItem.cs @@ -3,20 +3,9 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; using MS.Internal.KnownBoxes; -using System; -using System.ComponentModel; - -using System.Diagnostics; -using System.Windows.Threading; - -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Media; using System.Windows.Input; -using System.Windows.Controls.Primitives; -using System.Windows.Shapes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContainerTracking.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContainerTracking.cs index 7b77c2cb98c..b53b68e1a05 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContainerTracking.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContainerTracking.cs @@ -2,18 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; -using System.Windows.Controls.Primitives; -using System.Windows.Input; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentControl.cs index d6ec24bbd76..ddbe8ccb4f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentControl.cs @@ -2,24 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.ComponentModel; -using System.Windows.Threading; - -using System.Diagnostics; using System.Windows.Data; -using System.Windows.Media; using System.Windows.Markup; - -using MS.Utility; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.Data; using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; using MS.Internal.Telemetry.PresentationFramework; -using System.Text; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs index cd07de84954..63a8d42c2ee 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs @@ -8,25 +8,16 @@ // Specs: Data Styling.mht // -using System; -using System.Diagnostics; using System.ComponentModel; -using System.Reflection; - -using System.Windows.Threading; - -using System.Windows.Shapes; using System.Windows.Media; using System.Windows.Data; using System.Windows.Markup; using MS.Internal; -using MS.Internal.Data; using MS.Internal.KnownBoxes; using System.Windows.Documents; using MS.Utility; using MS.Internal.PresentationFramework; -using System.Collections.Specialized; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs index 9a4065934d8..7725c3fe574 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs @@ -3,22 +3,14 @@ // See the LICENSE file in the project root for more information. -using System; -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Threading; -using System.Windows; #if OLD_AUTOMATION using System.Windows.Automation.Provider; #endif using System.Windows.Input; -using System.Windows.Media; using System.Windows.Controls.Primitives; -using System.Windows.Markup; -using System.Windows.Shapes; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenuService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenuService.cs index 59af4e9ac33..290a8458bd7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenuService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenuService.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Input; using MS.Internal.KnownBoxes; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Control.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Control.cs index addb6ada908..7c95677571a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Control.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Control.cs @@ -3,21 +3,12 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Threading; - -using System.Windows.Controls.Primitives; using System.Windows.Media; -using System.Windows; using System.Windows.Input; using System.Windows.Documents; - -using MS.Internal; using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ConversionValidationRule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ConversionValidationRule.cs index 0e108782ed2..ef02d415e66 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ConversionValidationRule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ConversionValidationRule.cs @@ -8,10 +8,7 @@ // conversion failure, as there is no actual ValidationRule. // -using System; -using System.Windows; using System.Globalization; -using System.Windows.Controls; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CustomDictionarySources.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CustomDictionarySources.cs index 74ffc3db9e0..452cafb76ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CustomDictionarySources.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/CustomDictionarySources.cs @@ -6,13 +6,7 @@ // Description: Collection of Uri objects used to specify location of custom dictionaries. // -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Text; -using System.Windows.Markup; -using System.Windows.Navigation; using System.Windows.Controls.Primitives; using System.Windows.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataErrorValidationRule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataErrorValidationRule.cs index 4b754832dc4..17255b7ed59 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataErrorValidationRule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataErrorValidationRule.cs @@ -8,13 +8,9 @@ // a data error in the source item itself (e.g. as exposed by IDataErrorInfo). // -using System; using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows; -using System.Windows.Controls; using System.Windows.Data; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs index 9eec6828583..d97b7fb193b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs @@ -4,13 +4,10 @@ using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; using System.Text; using System.Windows.Automation; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridAutoGeneratingColumnEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridAutoGeneratingColumnEventArgs.cs index ef361695ee3..9887557b867 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridAutoGeneratingColumnEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridAutoGeneratingColumnEventArgs.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Text; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridBeginningEditEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridBeginningEditEventArgs.cs index 59c6d573abe..bdbab9386d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridBeginningEditEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridBeginningEditEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridBoundColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridBoundColumn.cs index 3e145a59947..49923b4fa27 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridBoundColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridBoundColumn.cs @@ -3,13 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Data; -using System.Windows.Input; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs index e7ba77acf23..d434e939c17 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs @@ -3,17 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Threading; using System.Windows.Automation; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellClipboardEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellClipboardEventArgs.cs index a51060ba38f..2c35cb0e1be 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellClipboardEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellClipboardEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections.Generic; -using System.Text; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellEditEndingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellEditEndingEventArgs.cs index 3b25c9c686e..fa264cf99f2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellEditEndingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellEditEndingEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellInfo.cs index d99ad9852fe..3916267624a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellInfo.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Diagnostics; -using System.Windows; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellsPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellsPanel.cs index a52029077c9..730afef12b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellsPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellsPanel.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Diagnostics; -using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Input; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs index 6122b5b4660..ede8012af93 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCheckBoxColumn.cs @@ -3,10 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Input; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridClipboardCellContent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridClipboardCellContent.cs index da5df5a410c..3fb445c7970 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridClipboardCellContent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridClipboardCellContent.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections.Generic; -using System.Text; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridClipboardHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridClipboardHelper.cs index 6aa871c5c4b..ad256bfdbbd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridClipboardHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridClipboardHelper.cs @@ -3,12 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; -using System.Windows; using MS.Internal.Text; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs index fd3197460bb..1f2ce9b181a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs @@ -3,11 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Windows; using System.Windows.Data; using System.Windows.Input; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnCollection.cs index 45a121f350a..7707aa15a7f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnCollection.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Diagnostics; -using System.Windows; using System.Windows.Threading; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnDropSeparator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnDropSeparator.cs index 14d763fafa3..d276e7be4bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnDropSeparator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnDropSeparator.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls.Primitives; -using MS.Internal; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnEventArgs.cs index 091c9bb7fae..ee058fcb1c2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnFloatingHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnFloatingHeader.cs index 657948c972c..d44e2f808cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnFloatingHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnFloatingHeader.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Media; -using MS.Internal; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnHeaderCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnHeaderCollection.cs index a613b33864a..b5dc92ed9b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnHeaderCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnHeaderCollection.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnReorderingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnReorderingEventArgs.cs index e64ee93f151..2898fc14e7d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnReorderingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnReorderingEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs index 63d16f8cf1e..422c132e48a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridComboBoxColumn.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Data; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridEditAction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridEditAction.cs index b2e96651703..5153d3884b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridEditAction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridEditAction.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridEditingUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridEditingUnit.cs index e5cc4a94e21..768dc1655d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridEditingUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridEditingUnit.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridGridLinesVisibility.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridGridLinesVisibility.cs index 41c074ea72e..e9a78f6455e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridGridLinesVisibility.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridGridLinesVisibility.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHeadersVisibility.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHeadersVisibility.cs index 97042efd4bb..4b58a149060 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHeadersVisibility.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHeadersVisibility.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { [Flags] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHeadersVisibilityToVisibilityConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHeadersVisibilityToVisibilityConverter.cs index 34380036750..4b22c6027a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHeadersVisibilityToVisibilityConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHeadersVisibilityToVisibilityConverter.cs @@ -3,9 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Globalization; -using System.Windows; using System.Windows.Data; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHelper.cs index b150f9fc907..a5bd537c1b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHelper.cs @@ -3,18 +3,12 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Threading; using MS.Internal; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHyperlinkColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHyperlinkColumn.cs index d5dcc44375c..abf9df499ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHyperlinkColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridHyperlinkColumn.cs @@ -3,15 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; -using System.Windows.Media; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridItemAttachedStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridItemAttachedStorage.cs index 10b8b51137c..062668c92ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridItemAttachedStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridItemAttachedStorage.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections.Generic; -using System.Windows; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLength.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLength.cs index bc1a8ebbd55..917ac40068d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLength.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLength.cs @@ -3,11 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; using System.Globalization; -using System.Windows; -using MS.Internal; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLengthConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLengthConverter.cs index 9f045ac378b..f70bcf47e9a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLengthConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLengthConverter.cs @@ -3,14 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Security; -using System.Windows; using MS.Internal; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLengthUnitType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLengthUnitType.cs index 052ebc3f8a2..252e71e99a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLengthUnitType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridLengthUnitType.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.ComponentModel; -using System.Globalization; -using System.Windows; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridNotificationTarget.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridNotificationTarget.cs index 36669a45e91..e17a7d213ea 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridNotificationTarget.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridNotificationTarget.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridPreparingCellForEditEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridPreparingCellForEditEventArgs.cs index 3480cf52a44..e0d5b05ede0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridPreparingCellForEditEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridPreparingCellForEditEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs index f9ee842f9ed..9849eb680ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRow.cs @@ -3,17 +3,13 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; using System.Windows.Data; -using System.Windows.Media; using System.Windows.Threading; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowClipboardEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowClipboardEventArgs.cs index 4f6326eca9e..1fb5d4a4f9c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowClipboardEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowClipboardEventArgs.cs @@ -3,9 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Text; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowDetailsEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowDetailsEventArgs.cs index 701df3ac7ff..9c583eac239 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowDetailsEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowDetailsEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; - namespace System.Windows.Controls { public class DataGridRowDetailsEventArgs : EventArgs diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowEventArgs.cs index c22ba0abb0a..a4677e2cb04 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridRowEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; - namespace System.Windows.Controls { public class DataGridRowEventArgs : EventArgs diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSelectionMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSelectionMode.cs index f8181c7f2dc..3dc79107fa6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSelectionMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSelectionMode.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSelectionUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSelectionUnit.cs index 45bb4a02897..9f1706dd760 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSelectionUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSelectionUnit.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSortingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSortingEventArgs.cs index 39a92bf2ace..2a3333e5630 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSortingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSortingEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections.Generic; -using System.Text; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSortingEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSortingEventHandler.cs index be7e569b1fe..0c4a1b7943c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSortingEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridSortingEventHandler.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections.Generic; -using System.Text; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridTemplateColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridTemplateColumn.cs index 80c79490700..1ff42e129d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridTemplateColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridTemplateColumn.cs @@ -3,10 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Data; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridTextColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridTextColumn.cs index ae2bae55c24..fe20986c61a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridTextColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridTextColumn.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridrowEditEndingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridrowEditEndingEventArgs.cs index b44e8f20600..98af13a990c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridrowEditEndingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridrowEditEndingEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Input; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs index a4158234784..5b3bc2dadf5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Globalization; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePickerDateValidationErrorEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePickerDateValidationErrorEventArgs.cs index 88c4249957c..eb1b3148f37 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePickerDateValidationErrorEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePickerDateValidationErrorEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DateTimeHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DateTimeHelper.cs index 693ce6e4fcc..bf58105d3dd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DateTimeHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DateTimeHelper.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Globalization; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Decorator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Decorator.cs index 82adf649d88..565eff94bb2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Decorator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Decorator.cs @@ -7,14 +7,9 @@ // Spec at Decorator.xml // -using MS.Internal; using MS.Internal.Controls; -using MS.Utility; -using System; using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; using System.Windows.Media; using System.Windows.Markup; // IAddChild, ContentPropertyAttribute diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DeferredRunTextReference.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DeferredRunTextReference.cs index ab050efe28e..3da63a483d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DeferredRunTextReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DeferredRunTextReference.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Documents; + // // Description: Proxy object passed to the property system to delay load // TextProperty values. @@ -9,8 +11,6 @@ namespace System.Windows.Controls { - using System.Windows.Documents; - // Proxy object passed to the property system to delay load TextProperty // values. internal class DeferredRunTextReference : DeferredReference diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DeferredTextReference.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DeferredTextReference.cs index b806cdd18c9..e56a8acab90 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DeferredTextReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DeferredTextReference.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Documents; + // // Description: Proxy object passed to the property system to delay load // TextProperty values. @@ -9,8 +11,6 @@ namespace System.Windows.Controls { - using System.Windows.Documents; - // Proxy object passed to the property system to delay load TextProperty // values. internal class DeferredTextReference : DeferredReference diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DefinitionBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DefinitionBase.cs index 354b7d63c94..2e8010f3622 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DefinitionBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DefinitionBase.cs @@ -15,14 +15,7 @@ // using MS.Internal; -using MS.Internal.KnownBoxes; -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; -using System.Windows.Threading; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DockPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DockPanel.cs index a019c5ed1d7..398732c1897 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DockPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DockPanel.cs @@ -7,17 +7,11 @@ // Spec at DockPanel.xml // -using MS.Internal; using MS.Internal.PresentationFramework; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; -using System.Diagnostics; -using System.Windows.Threading; using System.Windows.Media; -using System; - namespace System.Windows.Controls { #region Dock enum type diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DocumentViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DocumentViewer.cs index 155e781f8fc..5d88bd25b9a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DocumentViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DocumentViewer.cs @@ -11,26 +11,14 @@ using MS.Internal.Documents; using MS.Internal.Telemetry.PresentationFramework; using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel; // For DesignerSerializationVisibility using System.Globalization; -using System.Reflection; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Peers; -using System.Windows.Automation.Provider; -using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Navigation; // For HyperLink navigation event. using System.Windows.Markup; -using MS.Internal.Automation; // For TextAdaptor. -using System.Security; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ExceptionRoutedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ExceptionRoutedEventArgs.cs index 86d3194c479..1b3c6cfdbc2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ExceptionRoutedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ExceptionRoutedEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { #region ExceptionRoutedEventArgs diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ExceptionValidationRule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ExceptionValidationRule.cs index fa4767bb053..36075d314d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ExceptionValidationRule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ExceptionValidationRule.cs @@ -12,10 +12,7 @@ // See specs at Validation.mht // -using System; -using System.Windows; using System.Globalization; -using System.Windows.Controls; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs index 2eb7295929a..3feb40d7cdb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Peers; -using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.ComponentModel; using MS.Internal.KnownBoxes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs index cb1a7b771ca..f3c5616696d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; // Object using System.Collections; // IEnumerator -using System.Collections.Generic; // Stack -using System.Collections.ObjectModel; // ReadOnlyCollection -using System.Security; // SecurityCritical using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Data; // BindingOperations using System.Windows.Controls.Primitives; // PlacementMode @@ -15,7 +11,6 @@ using System.Windows.Input; // KeyEventArgs using System.Windows.Media; // ScaleTransform, VisualTreeHelper using System.Windows.Markup; // IAddChild -using System.Windows.Threading; // Dispatcher using MS.Internal; // Invariant, DoubleUtil using MS.Internal.Commands; // CommandHelpers using MS.Internal.Controls; // EmptyEnumerator diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs index 442a5bf406f..c5d1202c56f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs @@ -3,11 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; // Object using System.Collections; // IEnumerator -using System.Collections.Generic; // Stack using System.Collections.ObjectModel; // ReadOnlyCollection -using System.Security; // SecurityCritical using System.Windows.Annotations; // AnnotationService using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Data; // BindingOperations diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs index 72e4aaed05e..6ec3217cb97 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs @@ -8,16 +8,9 @@ // It can use its own journal ("island frame") or its prent's, if available. // -using System; -using System.Net; using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; using System.Windows.Threading; -using System.Security; - -using System.Windows; using System.Windows.Input; using System.Windows.Automation.Peers; using System.Windows.Media; @@ -28,12 +21,7 @@ using MS.Internal.AppModel; using MS.Internal.Utility; using MS.Internal.KnownBoxes; -using MS.Utility; -using MS.Internal.Controls; using MS.Internal.Telemetry.PresentationFramework; -using System.Collections.Generic; - -using SecurityHelper=MS.Internal.PresentationFramework.SecurityHelper; namespace System.Windows.Navigation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs index 7e7a8040c82..a5bea90178f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs @@ -17,18 +17,9 @@ using MS.Internal.Controls; using MS.Internal.PresentationFramework; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; using System.Threading; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; using System.Windows.Media; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs index 5b14aae9b93..c15d32a7baa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs @@ -3,18 +3,12 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Diagnostics; -using System.Windows; using System.Windows.Controls.Primitives; -using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Automation.Peers; - -using MS.Internal; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs index ed6ae42b883..ab1cba19494 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs @@ -6,7 +6,6 @@ using System.ComponentModel; // DesignerSerializationVisibility using System.Windows.Automation.Peers; using System.Windows.Markup; -using System.Diagnostics; // Debug using MS.Internal; // Helper using MS.Internal.KnownBoxes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumn.cs index 19eeeea6563..bcf3b11d056 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumn.cs @@ -4,7 +4,6 @@ using System.ComponentModel; // DesignerSerializationVisibility -using System.Diagnostics; using System.Windows.Data; // BindingBase using System.Windows.Markup; // [ContentProperty] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnCollection.cs index 30fbd4bbcc3..e90716450a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnCollection.cs @@ -3,13 +3,10 @@ // See the LICENSE file in the project root for more information. -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ObservableCollection using System.Collections.Specialized; // NotifyCollectionChangedEventHandler using System.ComponentModel; // DesignerSerializationVisibility -using System.Diagnostics; // Debug using System.Runtime.CompilerServices; -using System.Windows.Data; // Binding.IndexerName using MS.Internal; // Helper diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnCollectionChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnCollectionChangedEventArgs.cs index f88267221c7..7899b24a117 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnCollectionChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnCollectionChangedEventArgs.cs @@ -3,11 +3,8 @@ // See the LICENSE file in the project root for more information. -using System.Windows.Controls; -using System.Collections.Generic; // IList using System.Collections.Specialized; // NotifyCollectionChangedEventArgs using System.Collections.ObjectModel; // Collection, ReadOnlyCollection -using System.Diagnostics; // Assert namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs index 65ba42bac5c..ebbc6e017bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs @@ -4,9 +4,6 @@ using System.ComponentModel; -using System.Diagnostics; -using System.Runtime.InteropServices; // SafeHandle -using System.Security; // using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Controls.Primitives; // ButtonBase using System.Windows.Input; // MouseButtonEventArgs @@ -14,7 +11,6 @@ using MS.Internal; // DoubleUtil using MS.Internal.KnownBoxes; // BooleanBoxes -using MS.Win32; // SafeNativeMethods namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewHeaderRowPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewHeaderRowPresenter.cs index bbe8b88ee83..559d22fda9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewHeaderRowPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewHeaderRowPresenter.cs @@ -3,15 +3,12 @@ // See the LICENSE file in the project root for more information. -using System.Collections.Generic; // List using System.Collections.Specialized; // NotifyCollectionChangedAction using System.ComponentModel; // DesignerSerializationVisibility using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Controls.Primitives; // GridViewRowPresenterBase -using System.Windows.Data; // Binding using System.Windows.Input; // MouseEventArgs using System.Windows.Media; // SolidColorBrush -using System.Diagnostics; using MS.Internal; // Helper diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewRowPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewRowPresenter.cs index 63e7ec293eb..d776aa0be8e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewRowPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewRowPresenter.cs @@ -3,15 +3,11 @@ // See the LICENSE file in the project root for more information. -using System.Collections.Generic; // List using System.Collections.Specialized; // NotifyCollectionChangedAction -using System.ComponentModel; // PropertyChangedEventArgs -using System.Diagnostics; using System.Windows.Controls.Primitives; // GridViewRowPresenterBase using System.Windows.Data; // BindingBase using MS.Internal; // DoubleUtil -using MS.Utility; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs index 502b5511fb3..8885c4bde56 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GroupItem.cs @@ -8,16 +8,8 @@ // Specs: Data Styling.mht // -using System; -using System.Collections; -using System.Collections.Specialized; using System.Windows.Media; using System.Windows.Controls.Primitives; -using System.Windows.Threading; -using System.Collections.Generic; -using MS.Internal.Utility; -using MS.Internal.Hashing.PresentationFramework; -using System.Diagnostics; using MS.Internal; using System.Windows.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedContentControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedContentControl.cs index e5b732eeef8..b2894705bfa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedContentControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedContentControl.cs @@ -3,18 +3,13 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.ComponentModel; -using System.Windows; using System.Windows.Data; using System.Windows.Threading; using System.Windows.Media; - -using MS.Utility; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.Data; using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedItemsControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedItemsControl.cs index 8b92742ea58..1833b19ab20 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedItemsControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/HeaderedItemsControl.cs @@ -2,19 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.ComponentModel; using System.Windows.Threading; using System.Windows.Data; -using System.Windows.Media; - -using MS.Utility; using MS.Internal; using MS.Internal.Controls; using MS.Internal.KnownBoxes; -using MS.Internal.Data; using MS.Internal.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/IProvideDataGridColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/IProvideDataGridColumn.cs index 403c7a3ba2f..e5dd3e1bbe9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/IProvideDataGridColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/IProvideDataGridColumn.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Image.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Image.cs index 45adf39ada7..8e096fe9980 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Image.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Image.cs @@ -7,24 +7,16 @@ // Layout Spec at Image.xml // -using MS.Internal; using MS.Internal.PresentationFramework; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; -using System.Diagnostics; -using System.ComponentModel; #if OLD_AUTOMATION using System.Windows.Automation.Provider; #endif -using System.Windows.Threading; using System.Windows.Media; using System.Windows.Media.Imaging; -using System.Windows.Documents; using System.Windows.Markup; using System.Windows.Navigation; -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InitializingNewItemEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InitializingNewItemEventArgs.cs index 517ccdbbe79..3f44893a91d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InitializingNewItemEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InitializingNewItemEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InitializingNewItemEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InitializingNewItemEventHandler.cs index 4ae43cf1f28..429ed586f7f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InitializingNewItemEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InitializingNewItemEventHandler.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs index 9328046bddc..96af9a7be73 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs @@ -9,23 +9,13 @@ // editing ink // -using MS.Utility; -using MS.Internal; using MS.Internal.Commands; using MS.Internal.Controls; using MS.Internal.Ink; using MS.Internal.KnownBoxes; -using System; using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Specialized; using System.ComponentModel; -using System.ComponentModel.Design; -using System.Diagnostics; -using System.IO; -using System.Windows; -using System.Collections.Generic; -using System.Security; using System.Runtime.InteropServices; using System.Windows.Media; using System.Windows.Data; @@ -33,13 +23,11 @@ using System.Windows.Ink; using System.Windows.Input; using System.Windows.Input.StylusPlugIns; -using System.Windows.Controls; using System.Windows.Markup; // IAddChild, ContentPropertyAttribute using System.Windows.Threading; using System.Windows.Automation.Peers; using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; -using SecurityHelper = MS.Internal.SecurityHelper; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvasSelectionHitResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvasSelectionHitResult.cs index 1c9679fec2f..7f6acd9a897 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvasSelectionHitResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvasSelectionHitResult.cs @@ -7,8 +7,6 @@ // Defines an enum type of the InkCanvas selection handle // -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkPresenter.cs index e53fe6a71cf..61a61dee8af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkPresenter.cs @@ -7,16 +7,9 @@ // A rendering element which binds to the strokes data // -using System; -using System.Diagnostics; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Windows; using System.Windows.Media; -using System.Windows.Controls; using System.Windows.Ink; using System.Windows.Threading; -using System.Windows.Input; using MS.Internal.Ink; using System.Windows.Automation.Peers; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemCollection.cs index eb3b8e3e328..6e35c9d9b4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemCollection.cs @@ -10,20 +10,11 @@ // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; - -using System.Windows; using System.Windows.Data; // for CollectionContainer -using System.Windows.Markup; - -using MS.Utility; -using MS.Internal; using MS.Internal.Controls; using MS.Internal.Data; // for IndexedEnumerable using MS.Internal.KnownBoxes; // for BooleanBoxes diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs index fef9bba1d7d..2d694e0e512 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs @@ -8,9 +8,7 @@ // Specs: Data Styling.mht // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; @@ -19,13 +17,9 @@ using System.Windows.Media; using System.Windows.Controls.Primitives; // IItemContainerGenerator using System.Windows.Data; -using System.Windows.Markup; -using System.Diagnostics; using System.Text; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.KnownBoxes; -using MS.Internal.Utility; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerTemplateSelector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerTemplateSelector.cs index c505101bcfb..dcf720194a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerTemplateSelector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerTemplateSelector.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections; -using System.Diagnostics; -using System.Windows.Media; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsControl.cs index b88050e38a0..09343d1aa16 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsControl.cs @@ -3,30 +3,21 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; using System.Windows.Controls.Primitives; using System.Windows.Data; -using System.Windows; using System.Windows.Media; using System.Windows.Markup; using System.Windows.Input; using System.Windows.Automation.Peers; - -using MS.Utility; using MS.Internal; using MS.Internal.Controls; using MS.Internal.Data; -using MS.Internal.Hashing.PresentationFramework; // HashHelper using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; -using MS.Internal.Utility; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsPanelTemplate.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsPanelTemplate.cs index 201de7b6b44..b5063f89e59 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsPanelTemplate.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsPanelTemplate.cs @@ -7,11 +7,6 @@ // that manages layout of containers for an ItemsControl. // -using System.ComponentModel; -using System.Windows.Controls; -using System.Windows.Markup; -using System.Diagnostics; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsPresenter.cs index 243865e6028..cd80738cb75 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemsPresenter.cs @@ -8,12 +8,8 @@ // Specs: Data Styling.mht // -using System; -using System.Collections; -using System.Diagnostics; using System.Windows.Media; using MS.Internal; -using MS.Internal.Data; // WeakRefKey namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Label.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Label.cs index c2794b1f237..0a8c3419328 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Label.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Label.cs @@ -8,14 +8,9 @@ * Implements label control. * \***************************************************************************/ -using System; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Input; using System.Windows.Markup; using System.ComponentModel; -using System.Xaml; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs index 88d409cc0b0..761c7b4089a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs @@ -4,19 +4,13 @@ using MS.Internal; -using MS.Utility; using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Threading; using System.Windows.Media; using System.Windows.Controls.Primitives; using System.Windows.Input; -using System.Windows.Shapes; -using System.Windows.Data; using System.Windows.Automation.Peers; - -using System; using MS.Internal.Commands; // CommandHelpers using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBoxItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBoxItem.cs index 3a8189764ba..1aee788f0d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBoxItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBoxItem.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; using System.ComponentModel; - -using System.Diagnostics; using System.Windows.Threading; using System.Windows.Automation; @@ -16,9 +12,6 @@ using System.Windows.Media; using System.Windows.Input; using System.Windows.Controls.Primitives; -using System.Windows.Shapes; - -using System; // Disable CS3001: Warning as Error: not CLS-compliant #pragma warning disable 3001 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListViewItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListViewItem.cs index 9650fab4b14..592a373105f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListViewItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListViewItem.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Automation.Provider; - - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs index ddb13a6c64d..c905c2d8371 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaElement.cs @@ -6,16 +6,9 @@ // Description: Contains the MediaElement class. // -using MS.Internal; -using MS.Utility; -using System; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Automation.Peers; -using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; using System.Windows.Markup; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaScriptCommandRoutedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaScriptCommandRoutedEventArgs.cs index 347932ea042..51fc5efdce3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaScriptCommandRoutedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MediaScriptCommandRoutedEventArgs.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { #region MediaScriptCommandRoutedEventArgs - + /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Menu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Menu.cs index e81b88aed0e..baa6ba3c5c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Menu.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Menu.cs @@ -3,23 +3,13 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; -using System.ComponentModel; - -using System.Diagnostics; -using System.Windows.Threading; #if OLD_AUTOMATION using System.Windows.Automation.Provider; #endif -using System.Windows.Media; using System.Windows.Input; using System.Windows.Controls.Primitives; - -using System; -using System.Security; using MS.Internal.Telemetry.PresentationFramework; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs index 7c08c1c6009..97cf59acf26 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs @@ -3,21 +3,13 @@ // See the LICENSE file in the project root for more information. -using System; -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; -using System.Diagnostics; using System.Windows.Threading; using System.Globalization; using System.ComponentModel; using System.Collections; using System.Collections.Specialized; -using System.Security; - - -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Data; @@ -25,8 +17,6 @@ using System.Windows.Input; using System.Windows.Controls.Primitives; -using System.Windows.Shapes; -using System.Windows.Markup; // Disable CS3001: Warning as Error: not CLS-compliant #pragma warning disable 3001 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuScrollingVisibilityConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuScrollingVisibilityConverter.cs index 4af96de74b8..ddf92e69afa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuScrollingVisibilityConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuScrollingVisibilityConverter.cs @@ -6,14 +6,8 @@ // Description: Used to show or hide arrow buttons in scrolling menus. // -using System; using System.Globalization; -using System.Windows; -using System.Windows.Automation.Provider; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Data; -using System.Windows.Media; using MS.Internal; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MultipleCopiesCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MultipleCopiesCollection.cs index b9134ae1261..c2657c28502 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MultipleCopiesCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MultipleCopiesCollection.cs @@ -3,12 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Data; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/NotifyDataErrorValidationRule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/NotifyDataErrorValidationRule.cs index 66acb7d5742..0699593fdb3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/NotifyDataErrorValidationRule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/NotifyDataErrorValidationRule.cs @@ -8,15 +8,7 @@ // a data error in the source item itself as exposed by INotifyDataErrorInfo. // -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using MS.Internal; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Orientation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Orientation.cs index 56cf3305e54..ed5e00cc4bc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Orientation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Orientation.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Page.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Page.cs index daa297556b4..b246efbb1f0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Page.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Page.cs @@ -6,31 +6,24 @@ // Description: Implements the Avalon Page class // -using System; using System.Collections; using System.ComponentModel; -using System.Diagnostics; - -using System.Windows.Controls.Primitives; using System.Windows.Navigation; using System.Windows.Media; using System.Windows.Markup; using System.Windows.Documents; - -using MS.Internal.AppModel; using MS.Internal.KnownBoxes; using MS.Internal; -using MS.Utility; //In order to avoid generating warnings about unknown message numbers and //unknown pragmas when compiling your C# source code with the actual C# compiler, //you need to disable warnings 1634 and 1691. (Presharp Documentation) #pragma warning disable 1634, 1691 -namespace System.Windows.Controls -{ +namespace System.Windows.Controls +{ #region Page Class - + /// /// Public class Page /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PageRanges.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PageRanges.cs index c1ddb2f51bd..f245d74cfe1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PageRanges.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PageRanges.cs @@ -8,9 +8,7 @@ This file contains the implementation of the PageRange class dialog. */ -using System; using System.Globalization; -using System.Windows; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Panel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Panel.cs index 0141df93420..3bb8d16a5c4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Panel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Panel.cs @@ -3,22 +3,15 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Controls.Primitives; // IItemContainerGenerator -using System.Windows.Documents; using System.Windows.Media; using System.Windows.Markup; // IAddChild, ContentPropertyAttribute -using System.Windows.Threading; -using MS.Internal; using MS.Internal.Controls; using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; -using MS.Utility; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PanningMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PanningMode.cs index ce60c735395..6de7972a2f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PanningMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PanningMode.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordBox.cs index 648e58521a1..11b42ce5790 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordBox.cs @@ -6,21 +6,13 @@ // Description: The stock password control. // -using System.Diagnostics; -using System.Collections; using System.ComponentModel; -using System.Globalization; using System.Security; -using System.Text; using System.Windows.Media; -using System.Windows.Data; using System.Windows.Documents; -using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Input; using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Windows.Threading; using MS.Internal; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordTextContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordTextContainer.cs index df8473e36b5..06b7347e69a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordTextContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordTextContainer.cs @@ -6,11 +6,8 @@ // Description: Backing store for the PasswordBox control. // -using System; -using System.Windows.Threading; using System.Collections; using System.Security; -using System.Diagnostics; using System.Windows.Documents; using MS.Internal; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordTextNavigator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordTextNavigator.cs index 31e3d411bc4..200343d5867 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordTextNavigator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PasswordTextNavigator.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Documents; + // // Description: An override class representing a movable // position within a PasswordTextContainer. @@ -9,12 +11,6 @@ namespace System.Windows.Controls { - using System; - using System.Windows.Threading; - using System.Diagnostics; - using System.Windows.Documents; - using MS.Internal; - // TextNavigator implementation for the PasswordTextContainer. internal sealed class PasswordTextPointer : ITextPointer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs index 2484530d7f5..71705186aca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs @@ -5,23 +5,13 @@ using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Internal.Media; using MS.Win32; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Threading; -using System.Windows; -using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Windows.Markup; using System.Windows.Threading; -using System.Security; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/AutoToolTipPlacement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/AutoToolTipPlacement.cs index cb2c0bab15f..8c31bf85324 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/AutoToolTipPlacement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/AutoToolTipPlacement.cs @@ -2,14 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Controls.Primitives { - /// - /// Placement options for Slider's AutoToolTip - /// - public enum AutoToolTipPlacement + /// + /// Placement options for Slider's AutoToolTip + /// + public enum AutoToolTipPlacement { /// /// No AutoToolTip diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/BulletDecorator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/BulletDecorator.cs index f46e52b2a10..0ae4e079d11 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/BulletDecorator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/BulletDecorator.cs @@ -5,15 +5,9 @@ using MS.Internal; -using MS.Utility; using MS.Internal.Documents; -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ButtonBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ButtonBase.cs index e4a7bb8beb5..ffedc821654 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ButtonBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ButtonBase.cs @@ -2,22 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.ComponentModel; -using System.Windows.Threading; -using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows; using System.Windows.Input; using System.Windows.Media; -using MS.Utility; using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; -using System.Diagnostics; -using System.Security; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarButton.cs index 9a26cefad48..e9ebdc4a264 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarButton.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. -using System.Windows; using System.Windows.Automation.Peers; -using System.Windows.Controls; -using System.Windows.Data; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarDayButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarDayButton.cs index 3a3327b39d5..79182f29510 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarDayButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarDayButton.cs @@ -4,10 +4,7 @@ -using System.Windows; using System.Windows.Automation.Peers; -using System.Windows.Controls; -using System.Windows.Data; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs index 0c7b06169c2..3db9c371da1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs @@ -3,12 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; -using System.Windows; -using System.Windows.Controls; using System.Windows.Data; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CustomPopupPlacement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CustomPopupPlacement.cs index 0c48bcaf20e..ad1f34ff6f0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CustomPopupPlacement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CustomPopupPlacement.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CustomPopupPlacementCallback.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CustomPopupPlacementCallback.cs index 6b52802abfe..bc5811ef4d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CustomPopupPlacementCallback.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CustomPopupPlacementCallback.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs index 13d5ffe4f08..22d9b6291a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs @@ -3,13 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; -using System.Windows.Controls; using System.Windows.Media; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeader.cs index 631141853ff..305342d0704 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeader.cs @@ -3,13 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Automation.Peers; -using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; using System.Windows.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs index 71f6970c3c0..b38d3c6087b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs @@ -4,11 +4,6 @@ -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridDetailsPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridDetailsPresenter.cs index d3a17df613d..2359d66a8e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridDetailsPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridDetailsPresenter.cs @@ -4,10 +4,6 @@ -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; using System.Windows.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowHeader.cs index a633631a4a2..8cc09ac9c6f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowHeader.cs @@ -3,14 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; -using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; -using MS.Internal; using System.Windows.Automation; namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowsPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowsPresenter.cs index 6bf074968d9..af49e918691 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowsPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridRowsPresenter.cs @@ -2,16 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Media; -using System.Windows.Threading; -using MS.Internal; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs index e2394c394b3..4384de82715 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs @@ -4,13 +4,8 @@ -using System.Diagnostics; using System.Globalization; -using System.Windows; -using System.Windows.Controls; using System.Windows.Data; -using System.Windows.Input; -using System.Windows.Media; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs index 8aa194e5a1d..d1a52a0d127 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs @@ -6,17 +6,13 @@ // Description: Provides a view port for a page of content for a DocumentPage. // -using System.Windows.Automation; // AutomationPattern using System.Windows.Automation.Peers; // AutomationPeer -using System.Windows.Controls; // StretchDirection -using System.Windows.Controls.Primitives; // DocumentViewerBase using System.Windows.Documents; // DocumentPaginator using System.Windows.Media; // Visual using System.Windows.Media.Imaging; // RenderTargetBitmap using System.Windows.Threading; // Dispatcher using MS.Internal; // Invariant using MS.Internal.Documents; // DocumentPageHost, DocumentPageTextView -using MS.Internal.Automation; // TextAdaptor using MS.Internal.KnownBoxes; // BooleanBoxes diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs index 265fd6c194a..92b1d0a1f8b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs @@ -11,25 +11,20 @@ // and Annotation support. // #pragma warning disable 1634, 1691 // avoid generating warnings about unknown - // message numbers and unknown pragmas for PRESharp contol +// message numbers and unknown pragmas for PRESharp contol using System.Collections; // IEnumerator -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ReadOnlyCollection using System.Windows.Annotations; // AnnotationService -using System.Windows.Automation; // AutomationPattern using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Documents; // IDocumentPaginatorSource, ... using System.Windows.Documents.Serialization; // WritingCompletedEventArgs using System.Windows.Input; // UICommand using System.Windows.Media; // Visual using System.Windows.Markup; // IAddChild, XamlSerializerUtil, ContentPropertyAttribute -using System.Windows.Threading; // DispatcherPriority using MS.Internal; // Invariant, DoubleUtil using MS.Internal.KnownBoxes; // BooleanBoxes -using MS.Internal.Annotations; // TextAnchor using MS.Internal.Annotations.Anchoring;// DataIdProcessor, FixedPageProcessor, ... -using MS.Internal.Automation; // TextAdaptor using MS.Internal.Documents; // MultiPageTextView using MS.Internal.Controls; // EmptyEnumerator using MS.Internal.Commands; // CommandHelpers diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragCompletedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragCompletedEventArgs.cs index be616e5f6e1..a1f67c4d764 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragCompletedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragCompletedEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Controls; -using System.Windows; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragDeltaEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragDeltaEventArgs.cs index a6352491ed0..9ee2a749a49 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragDeltaEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragDeltaEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragStartedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragStartedEventArgs.cs index f0ed4487f44..0ad5f2b5fc3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragStartedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DragStartedEventArgs.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/GridViewRowPresenterBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/GridViewRowPresenterBase.cs index ccd74acf4ab..788dcd62ddc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/GridViewRowPresenterBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/GridViewRowPresenterBase.cs @@ -5,11 +5,7 @@ using System.Collections; // IEnumerator -using System.Collections.Generic; // List using System.Collections.Specialized; // NotifyCollectionChangedEventHandler -using System.Collections.ObjectModel; // Collection -using System.ComponentModel; // PropertyChangedEventArgs -using System.Diagnostics; // Debug using System.Windows.Media; // VisualOperations using MS.Internal.Controls; // EmptyEnumerator diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IContainItemStorage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IContainItemStorage.cs index d249499a89a..3d6f2575b91 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IContainItemStorage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IContainItemStorage.cs @@ -6,8 +6,6 @@ // Description: IContainItemStorage interface // -using System; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IHierarchicalVirtualizationAndScrollInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IHierarchicalVirtualizationAndScrollInfo.cs index 30ac20d347f..3a1d3aa315e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IHierarchicalVirtualizationAndScrollInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IHierarchicalVirtualizationAndScrollInfo.cs @@ -6,9 +6,6 @@ // Description: IHierarchicalVirtualizationAndScrollInfo interface // - -using System; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IItemContainerGenerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IItemContainerGenerator.cs index f19cb3d6d40..4380e80ccb9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IItemContainerGenerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IItemContainerGenerator.cs @@ -8,9 +8,7 @@ // Specs: Data Styling.mht // -using System; using System.Windows.Markup; -using MS.Internal.Data; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IRecyclingItemContainerGenerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IRecyclingItemContainerGenerator.cs index 5ff9309d5ac..a992039e1b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IRecyclingItemContainerGenerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IRecyclingItemContainerGenerator.cs @@ -8,8 +8,6 @@ // Spec: Item Container Recycling Spec.docx // -using System; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IScrollInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IScrollInfo.cs index 31741e4e6b4..39ece8b1877 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IScrollInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/IScrollInfo.cs @@ -7,12 +7,7 @@ // Spec: Virtualization in Layout.doc // -using MS.Internal; -using MS.Utility; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Media; -using System; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ItemsChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ItemsChangedEventArgs.cs index 17573f038ec..474e6cf3087 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ItemsChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ItemsChangedEventArgs.cs @@ -8,9 +8,7 @@ // Specs: Data Styling.mht // -using System; using System.Collections.Specialized; -using System.ComponentModel; namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/LayoutInformation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/LayoutInformation.cs index ab78c1af821..a94a04977c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/LayoutInformation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/LayoutInformation.cs @@ -4,7 +4,6 @@ // Spec: LayoutInformation class.doc -using System; using System.Windows.Media; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MenuBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MenuBase.cs index 13433e45197..9f85482c19c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MenuBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MenuBase.cs @@ -3,22 +3,13 @@ // See the LICENSE file in the project root for more information. -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; -using System.ComponentModel; -using System.Collections; using System.Collections.Specialized; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Peers; -using System.Diagnostics; using System.Windows.Threading; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Input; -using System.Security; -using System; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MultiSelector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MultiSelector.cs index 2e61413d6e2..d677666f3b1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MultiSelector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/MultiSelector.cs @@ -4,10 +4,8 @@ -using System; using System.ComponentModel; using System.Collections; -using System.Collections.ObjectModel; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PlacementMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PlacementMode.cs index fe1bb5668a2..4271dd6d9b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PlacementMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PlacementMode.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs index 390a6eb4429..df7fd9c875f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs @@ -4,15 +4,10 @@ -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Automation.Provider; using System.Windows.Data; @@ -25,13 +20,11 @@ using Accessibility; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.Data; using MS.Internal.KnownBoxes; using MS.Internal.Interop; -using MS.Utility; using MS.Win32; -using CommonDependencyProperty=MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; +using CommonDependencyProperty = MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; // Disable pragma warnings to enable PREsharp pragmas #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupAnimation.cs index ecb4f0a2861..6574f528fe8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupAnimation.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupPrimaryAxis.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupPrimaryAxis.cs index bf0a87feabc..815efd4c88a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupPrimaryAxis.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupPrimaryAxis.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs index 96bf88e3127..10bcc4b1a26 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs @@ -2,20 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Windows.Threading; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Markup; -using System.Runtime.InteropServices; -using MS.Utility; -using MS.Win32; -using MS.Internal; -using MS.Internal.Data; using MS.Internal.KnownBoxes; namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RangeBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RangeBase.cs index 1d95090145e..54078514bb5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RangeBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RangeBase.cs @@ -3,22 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.ComponentModel; -using System.Globalization; using System.Windows.Threading; using System.Windows.Automation.Peers; -using System.Windows.Automation.Provider; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; - -using MS.Internal; -using MS.Utility; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RepeatButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RepeatButton.cs index d7f2b2507c0..53e3d30adcc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RepeatButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RepeatButton.cs @@ -4,20 +4,11 @@ -using System; -using System.Collections; using System.ComponentModel; using System.Windows.Threading; - -using System.Windows; using System.Windows.Automation.Peers; -using System.Windows.Controls.Primitives; using System.Windows.Input; -using System.Windows.Media; - -using MS.Win32; -using MS.Utility; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ResizeGrip.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ResizeGrip.cs index e790cd6d8a3..6e63a884f32 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ResizeGrip.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ResizeGrip.cs @@ -6,13 +6,6 @@ // Description: Implements the ResizeGrip control // -using System; -using System.Diagnostics; - -using System.Windows; -using System.Windows.Threading; -using System.Windows.Media; -using System.Windows.Shapes; #if OLD_AUTOMATION using System.Windows.Automation.Provider; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs index 55b2e609890..c4402b425c7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs @@ -3,32 +3,16 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Data; - -using System.Windows.Media; using System.Windows.Input; -using System.Windows.Markup; using MS.Internal; using MS.Internal.Commands; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; -using MS.Internal.Utility; -using MS.Win32; -using System.Security; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollContentPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollContentPresenter.cs index cd130439ec4..7f915f356b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollContentPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollContentPresenter.cs @@ -8,20 +8,10 @@ using MS.Internal; using MS.Utility; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Windows.Controls.Primitives; -using System.Windows.Data; using System.Windows.Documents; -using System.Windows.Input; using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollEventArgs.cs index b359e00a265..df2dc9f563c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Controls; -using System.Windows; - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/SelectiveScrollingGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/SelectiveScrollingGrid.cs index 053df94be59..dd9c56b17d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/SelectiveScrollingGrid.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/SelectiveScrollingGrid.cs @@ -3,9 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Controls; using System.Windows.Data; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs index 16e2bddce36..28b1e971527 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs @@ -5,23 +5,14 @@ using System.ComponentModel; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Windows.Threading; using System.Windows.Data; -using System.Windows; using System.Windows.Automation.Peers; -using System.Windows.Automation.Provider; using System.Windows.Input; -using MS.Utility; using MS.Internal; using MS.Internal.Data; using MS.Internal.KnownBoxes; -using MS.Internal.Hashing.PresentationFramework; // HashHelper - -using System; -using System.Diagnostics; using MS.Internal.Controls; using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBar.cs index a60d56684b5..52d92abc756 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBar.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Windows.Automation.Peers; -using System.Windows.Media; -using System.Windows.Threading; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBarItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBarItem.cs index 38d8838a2de..27fc2adc041 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBarItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/StatusBarItem.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using MS.Internal.KnownBoxes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TabPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TabPanel.cs index 0e774aa12ad..9c22125cd9e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TabPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TabPanel.cs @@ -3,14 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using MS.Internal; -using MS.Utility; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Threading; using System.Windows.Media; using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs index 7d6b1ab3dd4..088f1ef8599 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs @@ -2,30 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Collections.ObjectModel; +using System.Windows.Documents; // TextEditor +using System.Windows.Input; // MouseButtonEventArgs + +using MS.Internal.Documents; // Undo + +using System.Windows.Media; // VisualTreeHelper + // // Description: The base class for TextBox and RichTextBox. // namespace System.Windows.Controls.Primitives { - using MS.Internal; - using System.Threading; - using System.Collections.ObjectModel; - using System.ComponentModel; // DefaultValue - - using System.Security; - - using System.Windows.Automation; // TextPattern - using System.Windows.Automation.Provider; // AutomationProvider - using System.Windows.Data; // Binding - using System.Windows.Documents; // TextEditor - using System.Windows.Input; // MouseButtonEventArgs - using System.Windows.Markup; // XamlDesignerSerializer - - using MS.Internal.Documents; // Undo - - using System.Windows.Media; // VisualTreeHelper - //------------------------------------------------------ // // Public Enumerations diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Thumb.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Thumb.cs index 31c99e63915..8746be91e54 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Thumb.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Thumb.cs @@ -2,23 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; -using System.Runtime.InteropServices; - -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Input; -using System.Windows.Media; - -using MS.Utility; -using MS.Win32; -using MS.Internal; using MS.Internal.PresentationFramework; // SafeSecurityHelper namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs index aafca780871..48b1c4d80c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs @@ -3,28 +3,14 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Collections; using MS.Internal; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Data; - -using System.Windows.Input; using System.Windows.Media; -using System.Windows.Shapes; using MS.Internal.KnownBoxes; -using MS.Win32; - // For typeconverter -using System.ComponentModel.Design.Serialization; -using System.Reflection; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickPlacement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickPlacement.cs index af9d4aaee5b..913d8792f4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickPlacement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickPlacement.cs @@ -2,14 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Controls.Primitives { - /// - /// Placement options for Slider's Tickbar - /// - public enum TickPlacement + /// + /// Placement options for Slider's Tickbar + /// + public enum TickPlacement { /// /// No TickMark diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToggleButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToggleButton.cs index e1f2bdba1b5..f9b4d800931 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToggleButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToggleButton.cs @@ -3,19 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Threading; using System.Windows.Automation.Peers; -using System.Windows.Automation.Provider; -using System.Windows.Controls.Primitives; -using System.Windows; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Shapes; using MS.Internal.KnownBoxes; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarOverflowPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarOverflowPanel.cs index 61297f0b31c..684bdb6944d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarOverflowPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarOverflowPanel.cs @@ -3,16 +3,6 @@ // See the LICENSE file in the project root for more information. -using System.Collections.Generic; -using System.Threading; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Media; -using System.Windows.Shapes; -using System.Windows.Documents; -using System; -using System.Diagnostics; - using MS.Internal; namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs index 1f4e593352d..798216911d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs @@ -6,18 +6,9 @@ using MS.Internal; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; - -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Media; -using System.Windows.Threading; namespace System.Windows.Controls.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs index 8db694510d9..4a6d3a01e2b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs @@ -9,20 +9,9 @@ using MS.Internal; using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; -using MS.Utility; -using System.Collections; -using System.ComponentModel; -using System.Threading; -using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System.Windows.Controls; -using System.Windows; using System.Windows.Data; using System.Windows.Media; -using System.Windows.Markup; using System.Windows.Input; -using System; -using System.Diagnostics; namespace System.Windows.Controls.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/UniformGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/UniformGrid.cs index dd1253aebfb..d793037bbf7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/UniformGrid.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/UniformGrid.cs @@ -15,14 +15,6 @@ // straightforward to construct this straightforward panel. // - -using System; -using System.ComponentModel; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Media; - - namespace System.Windows.Controls.Primitives { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialog.cs index 7ee333e38ef..c6dcd83b70e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialog.cs @@ -9,23 +9,13 @@ This file contains the implementation of the PrintDialog class and its supporting enums. */ -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; using System.Printing; -using System.Security; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Interop; using System.Windows.Media; -using System.Windows.Shapes; using System.Windows.Xps; using MS.Internal.Printing; using System.Windows.Xps.Serialization; using System.Windows.Documents; using System.Windows.Documents.Serialization; // WritingCompletedEventArgs -using MS.Internal.PresentationFramework; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialogException.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialogException.cs index 3f2e385121b..92b93a74861 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialogException.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialogException.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.Serialization; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs index 81ac243c7dc..994cfa55330 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs @@ -7,14 +7,7 @@ // Implementation of ProgressBar control. // -using System; -using System.Collections.Specialized; -using System.Threading; - using System.Windows.Automation.Peers; -using System.Windows.Automation.Provider; - -using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Media; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs index c065a503a73..5f52fcaa2d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RadioButton.cs @@ -2,19 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.ComponentModel; -using System.Threading; -using System.Windows.Threading; - -using System.Windows.Automation; using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows; using System.Windows.Input; using System.Windows.Media; -using MS.Utility; using MS.Internal.Telemetry.PresentationFramework; // Disable CS3001: Warning as Error: not CLS-compliant diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RealizedColumnsBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RealizedColumnsBlock.cs index 0854c2e641f..39a4aa7dba0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RealizedColumnsBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RealizedColumnsBlock.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs index 10546dd193c..a574e738b1c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs @@ -2,28 +2,24 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.Documents; +using System.Windows.Input; // KeyboardNavigation +using System.ComponentModel; // DefaultValue +using System.Windows.Controls.Primitives; // TextBoxBase +using System.Windows.Documents; // TextEditor +using System.Windows.Automation.Peers; // AutomationPattern +using System.Windows.Markup; // IAddChild +using System.Collections; // IEnumerator +using MS.Internal.Controls; // EmptyEnumerator +using MS.Internal.Telemetry.PresentationFramework; + // // Description: The stock rich text editing control. // namespace System.Windows.Controls { - using MS.Internal; - using MS.Internal.Documents; - using System.Windows.Threading; - using System.Windows.Input; // KeyboardNavigation - using System.ComponentModel; // DefaultValue - using System.Windows.Controls.Primitives; // TextBoxBase - using System.Windows.Documents; // TextEditor - using System.Windows.Automation.Peers; // AutomationPattern - using System.Windows.Media; // GlyphRun - using System.Windows.Markup; // IAddChild - using System.Collections; // IEnumerator - using System.Collections.ObjectModel; // ReadOnlyCollection - using MS.Internal.Automation; // For TextAdaptor - using MS.Internal.Controls; // EmptyEnumerator - using MS.Internal.Telemetry.PresentationFramework; - /// /// RichTextBox control /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RowDefinition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RowDefinition.cs index b50920ea489..0dad7db5b65 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RowDefinition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RowDefinition.cs @@ -2,20 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Threading; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Markup; -using MS.Internal; -using System.Reflection; using System.ComponentModel; -using BuildInfo=MS.Internal.PresentationFramework.BuildInfo; +using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; //--------------------------------------------------------------------------- // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollChangedEventArgs.cs index a0f63a4ab13..8fc3622d277 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollChangedEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollUnit.cs index f73549a6614..75620abad03 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollUnit.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs index e9e1160d139..46ae5bbb35f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs @@ -10,23 +10,15 @@ using MS.Internal.PresentationFramework; using MS.Internal.Telemetry.PresentationFramework; using MS.Utility; -using System; -using System.Collections; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows.Threading; -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; -using System.Windows.Automation.Provider; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Markup; using System.Windows.Shapes; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsChangedEventArgs.cs index 22e0fd5f496..037018464a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsChangedEventArgs.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsChangedEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsChangedEventHandler.cs index f0b6dad76a8..1c57491eae8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsChangedEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsChangedEventHandler.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsCollection.cs index f66a687db06..a942b5004be 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedCellsCollection.cs @@ -3,12 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedDatesCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedDatesCollection.cs index c26109c88f1..8501dd9f93c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedDatesCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedDatesCollection.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Threading; -using System.Windows; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedItemCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedItemCollection.cs index 38cec5ec82a..d956955a2b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedItemCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectedItemCollection.cs @@ -7,8 +7,6 @@ // Description: SelectedItemCollection holds the list of selected items of a Selector. // -using System; -using System.Collections; using System.Collections.ObjectModel; using System.Windows.Controls.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectionChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectionChangedEventArgs.cs index 3f5dc2f4129..b3fd32639fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectionChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectionChangedEventArgs.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; - -using System.Windows; using System.Windows.Controls.Primitives; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectiveScrollingOrientation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectiveScrollingOrientation.cs index 7aca5c30d1f..397ea7df420 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectiveScrollingOrientation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SelectiveScrollingOrientation.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs index b2421ed01a0..6b801d3b099 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs @@ -9,7 +9,6 @@ // can be viewed using this control. // -using System.Collections.Generic; // Stack using System.Collections.ObjectModel; // ReadOnlyCollection using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Documents; // IDocumentPaginatorSouce, ... @@ -22,9 +21,7 @@ using MS.Internal.Commands; // CommandHelpers using MS.Internal.Documents; // FindToolBar using MS.Internal.KnownBoxes; // BooleanBoxes -using MS.Internal.PresentationFramework; // SecurityHelper using MS.Internal.AppModel; // IJournalState -using System.Security; // SecurityCritical, SecurityTreatAsSafe namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs index 3651af6831f..1aa5dccf1f3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs @@ -3,30 +3,19 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Collections; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; -using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; - -using MS.Win32; using MS.Internal; using MS.Internal.Commands; using MS.Internal.Telemetry.PresentationFramework; // For typeconverter -using System.ComponentModel.Design.Serialization; -using System.Reflection; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SoundPlayerAction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SoundPlayerAction.cs index a2ec435374a..fd14f68f661 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SoundPlayerAction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SoundPlayerAction.cs @@ -11,24 +11,11 @@ * \***************************************************************************/ using MS.Internal; -using MS.Internal.PresentationFramework; -using MS.Utility; -using System; -using System.Collections; using System.ComponentModel; // DefaultValueAttribute using System.IO; -using System.IO.Packaging; using System.Media; -using System.Net; -using System.Windows; -using System.Windows.Documents; -using System.Windows.Markup; -using System.Windows.Media; using System.Windows.Navigation; using System.Windows.Threading; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; using System.Threading.Tasks; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SpellCheck.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SpellCheck.cs index 7c064d26e9d..68b1cce8afd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SpellCheck.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SpellCheck.cs @@ -2,20 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Threading; +using System.Windows.Documents; +using System.Windows.Controls.Primitives; +using System.Collections; + // // Description: Speller properties for TextBoxBase. // namespace System.Windows.Controls { - using System.Threading; - using System.Windows.Documents; - using System.Windows.Controls.Primitives; - using System.ComponentModel; - using System.Collections.Generic; - using System.Collections; - using System.Windows.Markup; - /// /// Speller properties for TextBoxBase. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Stack.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Stack.cs index 9bb52861b6d..6055505c7bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Stack.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Stack.cs @@ -12,15 +12,9 @@ using MS.Internal; using MS.Internal.Telemetry.PresentationFramework; using MS.Utility; - -using System; -using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Controls.Primitives; using System.Windows.Media; -using System.Windows.Threading; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs index 35d2f97da21..ca3ea271756 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs @@ -12,37 +12,21 @@ // See spec at StickyNoteControlSpec.mht // -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Collections.Specialized; -using System.Diagnostics; // Assert using System.Globalization; -using System.IO; -using System.Reflection; using System.Xml; -using System.Xml.Serialization; -using Microsoft.Win32; // SystemEvents using MS.Internal; using MS.Internal.Annotations.Component; using MS.Internal.Controls.StickyNote; using MS.Internal.Commands; using MS.Internal.KnownBoxes; using System.Windows.Threading; -using System.Windows; using System.Windows.Data; using System.Windows.Annotations; -using System.Windows.Automation; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Shapes; -using System.Text; -using System.Text.RegularExpressions; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StyleSelector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StyleSelector.cs index e218f32995e..056c6096388 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StyleSelector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StyleSelector.cs @@ -8,14 +8,6 @@ // Specs: Data Styling.mht // -using System.Windows.Shapes; -using System.Windows.Media; -using System.Windows.Data; -using System.ComponentModel; - - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabControl.cs index ec6dd96ad97..008a94040cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabControl.cs @@ -4,23 +4,13 @@ using System.ComponentModel; -using System.Collections; using System.Collections.Specialized; -using System.Diagnostics; -using System.Globalization; -using System.Windows.Threading; -using System.Windows.Data; using System.Windows.Input; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Media; using System.Windows.Controls.Primitives; -using System.Windows.Markup; -using MS.Utility; using MS.Internal.Telemetry.PresentationFramework; -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs index 8031d1506b3..048b3bb90a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs @@ -3,18 +3,12 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; -using System.Windows.Threading; using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Peers; -using System.Windows.Media; using System.Windows.Input; -using System.Windows; using System.Windows.Data; using System.Windows.Controls.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextAdaptor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextAdaptor.cs index 2d2e9b6e36e..2467d06280c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextAdaptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextAdaptor.cs @@ -8,10 +8,7 @@ // Spec for Text Object Model (TOM) at Text Object Model.doc // -using System; // Exception -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ReadOnlyCollection -using System.Security; // SecurityCritical, ... using System.Windows; // PresentationSource using System.Windows.Automation; // SupportedTextSelection using System.Windows.Automation.Peers; // AutomationPeer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBlock.cs index 72c1e1cd5d7..048f9060cc7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBlock.cs @@ -7,25 +7,15 @@ // Most text scenarios should use the FlowDocumentScrollViewer. // -using System; -using System.IO; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Globalization; -using System.Windows.Automation; using System.Windows.Threading; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.TextFormatting; using System.Windows.Markup; - -using MS.Utility; using MS.Internal; // Invariant.Assert -using MS.Internal.Automation; // TextAdaptor using System.Windows.Automation.Peers; using MS.Internal.Text; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBox.cs index 9d0ac375944..fec869ef9bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBox.cs @@ -2,34 +2,27 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Collections; // IEnumerator +using System.ComponentModel; // DefaultValue +using System.Windows.Media; +using System.Windows.Data; // Binding +using System.Windows.Documents; +using System.Windows.Automation.Peers; +using System.Windows.Input; // CanExecuteRoutedEventArgs, ExecuteRoutedEventArgs + +using System.Windows.Controls.Primitives; // TextBoxBase +using System.Windows.Markup; // IAddChild, XamlDesignerSerializer, ContentPropertyAttribute +using MS.Internal.Documents; // Undo +using MS.Internal.Commands; // CommandHelpers +using MS.Internal.Telemetry.PresentationFramework; + // // Description: The stock plain text editing control. // namespace System.Windows.Controls { - using MS.Internal; - using System.Threading; - using System.Collections; // IEnumerator - using System.ComponentModel; // DefaultValue - using System.Globalization; - using System.Windows; - using System.Windows.Media; - using System.Windows.Data; // Binding - using System.Windows.Documents; - using System.Windows.Automation.Peers; - using System.Windows.Input; // CanExecuteRoutedEventArgs, ExecuteRoutedEventArgs - - using System.Windows.Controls.Primitives; // TextBoxBase - using System.Windows.Navigation; - using System.Windows.Markup; // IAddChild, XamlDesignerSerializer, ContentPropertyAttribute - using MS.Utility; - using MS.Internal.Text; - using MS.Internal.Automation; // TextAdaptor - using MS.Internal.Documents; // Undo - using MS.Internal.Commands; // CommandHelpers - using MS.Internal.Telemetry.PresentationFramework; - /// /// The stock text editing control. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextChange.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextChange.cs index 8664b530f49..14d6e0c580a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextChange.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextChange.cs @@ -6,10 +6,6 @@ // Description: // -using System; -using System.Windows; -using System.Collections; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextChangedEventArgs.cs index ed255c46a2e..b52b0457014 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextChangedEventArgs.cs @@ -7,8 +7,6 @@ // using System.ComponentModel; -using System.Windows.Documents; -using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextRangeAdaptor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextRangeAdaptor.cs index 794d72b904a..d832160ee20 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextRangeAdaptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextRangeAdaptor.cs @@ -6,9 +6,7 @@ // Description: TextRange provider adaptor for Text Object Model based objects // -using System; // Exception, ... using System.Collections; // Hashtable -using System.Collections.Generic; // List using System.Collections.ObjectModel; // ReadOnlyCollection using System.Globalization; // CultureInfo using System.Windows; // TextDecorationCollection diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs index fe077c3cab9..dcda66c0e04 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextSearch.cs @@ -3,23 +3,12 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; -using System.Windows; using System.Windows.Threading; using System.Windows.Data; -using System.ComponentModel; using System.Windows.Input; - -using System.Collections; using MS.Win32; using System.Globalization; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Markup; // for XmlLanguage -using System.Windows.Media; -using System.Text; -using System.Collections.Generic; using MS.Internal; using MS.Internal.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs index c0a38aff38d..c41ddcde6e5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBar.cs @@ -3,23 +3,14 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Threading; - -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Shapes; - -using MS.Utility; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBarTray.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBarTray.cs index 958cf135b14..8a12641423c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBarTray.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolBarTray.cs @@ -5,20 +5,12 @@ using MS.Internal; using MS.Internal.Controls; -using MS.Internal.Documents; using MS.Internal.KnownBoxes; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; - -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Controls.Primitives; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; -using System.Windows.Documents; using System.Windows.Media; using System.Windows.Input; using System.Windows.Markup; // IAddChild, ContentPropertyAttribute diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs index cfd25918c66..4e9e92ebe98 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs @@ -3,23 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.ComponentModel; - -using System.Collections; -using System.Collections.Specialized; using System.Windows.Threading; - -using System.Windows; -using System.Windows.Media; -using System.Windows.Input; -using System.Windows.Data; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; -using System.Windows.Markup; -using System.Windows.Shapes; -using MS.Utility; using MS.Internal.KnownBoxes; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs index 225ed2482f8..7ad6c7f62b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTipService.cs @@ -3,12 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Input; -using System.Windows.Media; using MS.Internal.KnownBoxes; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs index cb160d09aa4..0ca1fa64b57 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs @@ -3,13 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeViewItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeViewItem.cs index fa65bf75ea4..423acf149e5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeViewItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeViewItem.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UIElementCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UIElementCollection.cs index 849d46516b6..dabb3fcb7cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UIElementCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UIElementCollection.cs @@ -6,12 +6,8 @@ // Description: Contains the UIElementCollection base class. // -using MS.Internal; -using System; using System.Collections; using System.Windows.Media; -using System.Windows.Threading; -using System.Windows.Markup; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UserControl.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UserControl.cs index 50705419b3c..6beebe17e10 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UserControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/UserControl.cs @@ -3,14 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Markup; -using System.Diagnostics; using MS.Internal.KnownBoxes; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Validation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Validation.cs index f75e13b9da7..9e8f1aa68ad 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Validation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Validation.cs @@ -9,22 +9,14 @@ // See specs at Validation.mht // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Threading; using MS.Internal.Controls; -using MS.Internal.Data; using MS.Internal.KnownBoxes; -using MS.Utility; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationError.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationError.cs index d8ee94bc452..f8f0f9e01a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationError.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationError.cs @@ -10,8 +10,6 @@ // See specs at Validation.mht // -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationErrorEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationErrorEventArgs.cs index 9b83590ec4c..e002064f7db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationErrorEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationErrorEventArgs.cs @@ -9,9 +9,6 @@ // See specs at Validation.mht // -using System; -using System.Windows; - using MS.Internal; namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationResult.cs index 652fa3c3f13..0b60fa54fdd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationResult.cs @@ -9,8 +9,6 @@ // See specs at Validation.mht // -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationRule.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationRule.cs index 3d8386b895a..dea41b10efe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationRule.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationRule.cs @@ -13,7 +13,6 @@ // See specs at Validation.mht // -using System; using System.Globalization; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationStep.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationStep.cs index 62c28cffe9a..16e9234ccf5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationStep.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ValidationStep.cs @@ -6,7 +6,6 @@ // Description: Enum describing the different steps in the validation process. // -using System; using System.ComponentModel; // doc comments namespace System.Windows.Controls diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewBase.cs index 02e8e55d87b..21ef526d002 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewBase.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. -using System.Diagnostics; // Debug using System.Windows.Automation.Peers; // IViewAutomationPeer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewBox.cs index e0388297a8e..86a726f8acd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewBox.cs @@ -8,17 +8,11 @@ // using MS.Internal; -using MS.Utility; using MS.Internal.Controls; using MS.Internal.Telemetry.PresentationFramework; -using System.Diagnostics; using System.Collections; -using System.Windows.Threading; using System.Windows.Media; -using System.Windows.Documents; - -using System; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs index 7114d159e68..0a802b95c6f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs @@ -10,16 +10,11 @@ using MS.Internal; using MS.Internal.KnownBoxes; -using System; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Media; using System.Windows.Media.Media3D; using System.Windows.Markup; -using System.Windows.Threading; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationCacheLength.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationCacheLength.cs index 7d0de9683e6..668192b9fa0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationCacheLength.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationCacheLength.cs @@ -6,7 +6,6 @@ // Description: Virtualization cache length implementation // -using MS.Internal; using System.ComponentModel; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationCacheLengthConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationCacheLengthConverter.cs index c4c8fbff7c0..1340a432b3f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationCacheLengthConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationCacheLengthConverter.cs @@ -7,17 +7,10 @@ // using MS.Internal; -using MS.Utility; using System.ComponentModel; -using System.Windows; -using System; -using System.Security; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Windows.Markup; -using System.Text; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationMode.cs index 8cb9cea259b..45995a01ad3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizationMode.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizedCellInfoCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizedCellInfoCollection.cs index e87578f5c1b..9831e962cb8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizedCellInfoCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizedCellInfoCollection.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingPanel.cs index 2140711a065..f318f96ddba 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingPanel.cs @@ -4,13 +4,7 @@ using MS.Internal; -using MS.Utility; - -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; -using System.ComponentModel; using System.Windows.Media; using System.Windows.Controls.Primitives; // IItemContainerGenerator diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingStackPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingStackPanel.cs index e91668edd86..4fcd3453d05 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingStackPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingStackPanel.cs @@ -8,21 +8,16 @@ using MS.Internal; using MS.Internal.Controls; using MS.Utility; - -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.Globalization; -using System.Diagnostics; using System.IO; using System.Windows.Controls.Primitives; using System.Windows.Media; using System.Windows.Threading; using System.Windows.Input; using System.Windows.Data; -using MS.Internal.Data; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VisualStates.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VisualStates.cs index 1151e5151a7..8d6900c55ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VisualStates.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VisualStates.cs @@ -2,14 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Security; -using System.Runtime.InteropServices; - -using MS.Internal; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WebBrowser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WebBrowser.cs index f15a9689765..5ebd5e587cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WebBrowser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WebBrowser.cs @@ -6,32 +6,22 @@ // Description: // WebBrowser is a wrapper for the webbrowser activex control -using System; -using System.ComponentModel; using System.Runtime.InteropServices; -using System.Windows; using MS.Win32; -using System.Security; using System.Windows.Controls.Primitives; //PopupRoot -using MS.Internal.Utility ; +using MS.Internal.Utility; using MS.Internal.AppModel; //RootBrowserWindow using System.Windows.Interop; using System.Windows.Input; -using System.Windows.Threading; -using System.Diagnostics; using System.Windows.Navigation; using System.IO; //Stream using System.Threading; // thread using MS.Internal; using MS.Internal.Controls; -using MS.Internal.Interop; using MS.Internal.Telemetry.PresentationFramework; -using System.IO.Packaging; using System.Diagnostics.CodeAnalysis; using HRESULT = MS.Internal.Interop.HRESULT; -using SafeSecurityHelper=MS.Internal.PresentationFramework.SafeSecurityHelper; -using SecurityHelperPF=MS.Internal.PresentationFramework.SecurityHelper; using PackUriHelper = MS.Internal.IO.Packaging.PackUriHelper; /* Overview of Keyboard Input Routing for the WebOC diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WrapPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WrapPanel.cs index 08eb16fa18b..f1cda5064b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WrapPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WrapPanel.cs @@ -9,18 +9,8 @@ using MS.Internal; using MS.Internal.Telemetry.PresentationFramework; -using MS.Utility; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Threading; - -using System.Windows.Media; - - -using System; - namespace System.Windows.Controls { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/CornerRadiusConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/CornerRadiusConverter.cs index 8666e42a7e5..a4d9768535e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/CornerRadiusConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/CornerRadiusConverter.cs @@ -9,16 +9,11 @@ // // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Globalization; using System.Reflection; -using System.Text; -using System.Windows; -using System.Security; using MS.Internal; -using MS.Utility; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/Binding.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/Binding.cs index 481667fac9a..6429edb16d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/Binding.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/Binding.cs @@ -8,22 +8,14 @@ // See spec at Data Binding.mht // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using System.Diagnostics; using System.ComponentModel; using System.Xml; - -using System.Windows; using System.Windows.Controls; // Validation -using System.Windows.Markup; -using MS.Utility; using MS.Internal; // Invariant.Assert using MS.Internal.Controls; // Validation using MS.Internal.Data; -using MS.Internal.KnownBoxes; namespace System.Windows.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingBase.cs index 2cdc1b21bb8..87c3fc5f824 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingBase.cs @@ -9,10 +9,8 @@ // See spec at Data Binding.mht // -using System; using System.Collections.ObjectModel; // Collection using System.ComponentModel; // [DefaultValue] -using System.Diagnostics; // Debug.Assert using System.Globalization; // CultureInfo using System.Windows.Markup; // MarkupExtension using System.Windows.Controls; // ValidationRule diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpression.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpression.cs index ced9291429a..3776d136d4a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpression.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpression.cs @@ -8,25 +8,16 @@ // See spec at Data Binding.mht // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.ComponentModel; using System.Globalization; using System.Windows.Threading; using System.Threading; -using System.Windows; -using System.Windows.Input; using System.Windows.Controls; using System.Windows.Markup; -using MS.Utility; using MS.Internal; -using MS.Internal.Controls; // Validation using MS.Internal.Data; -using MS.Internal.KnownBoxes; -using MS.Internal.Utility; // TraceLog namespace System.Windows.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpressionBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpressionBase.cs index 21915f79801..83367f5f2a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpressionBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpressionBase.cs @@ -14,23 +14,15 @@ // BindingExpression.GetReference correctly //#define USE_ITEM_REFERENCE -using System; -using System.Collections.Generic; // List using System.Collections.ObjectModel; // Collection using System.ComponentModel; // TypeConverter -using System.Diagnostics; // StackTrace using System.Globalization; // CultureInfo using System.Threading; // Thread - -using System.Windows; // FrameworkElement using System.Windows.Controls; // Validation using System.Windows.Markup; // XmlLanguage using System.Windows.Threading; // Dispatcher using MS.Internal; // Invariant.Assert -using MS.Internal.Controls; // ValidationErrorCollection using MS.Internal.Data; // DataBindEngine -using MS.Internal.KnownBoxes; // BooleanBoxes -using MS.Internal.Utility; // TraceLog namespace System.Windows.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingGroup.cs index ac2c55f8420..dcfe9ac103a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingGroup.cs @@ -6,17 +6,12 @@ // Description: Defines BindingGroup object, manages a collection of bindings. // -using System; using System.Collections; // IList -using System.Collections.Generic; // IList using System.Collections.ObjectModel; // Collection using System.Collections.Specialized; // INotifyCollectionChanged using System.ComponentModel; // IEditableObject -using System.Diagnostics; // Debug using System.Globalization; // CultureInfo using System.Threading; // Thread - -using System.Windows; using System.Windows.Controls; // ValidationRule using MS.Internal.Controls; // ValidationRuleCollection using MS.Internal; // InheritanceContextHelper diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingListCollectionView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingListCollectionView.cs index 002ac814614..e20bea6c6f5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingListCollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingListCollectionView.cs @@ -6,19 +6,14 @@ // See spec at CollectionView.mht // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Threading; using MS.Internal; using MS.Internal.Data; -using MS.Utility; namespace System.Windows.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingOperations.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingOperations.cs index 60dcae636bc..0e88e7e5ac5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingOperations.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingOperations.cs @@ -8,18 +8,9 @@ // See spec at Data Binding.mht // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.ComponentModel; -using System.Globalization; using System.Threading; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Markup; -using System.Windows.Threading; using MS.Internal.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionContainer.cs index 6d9d0446f19..41bd9722885 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionContainer.cs @@ -11,20 +11,12 @@ // using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; - -using System.Diagnostics; -using System.Windows; -using System.Windows.Controls; -using MS.Utility; using MS.Internal; // Invariant.Assert using MS.Internal.Utility; using MS.Internal.Data; // IndexedEnumerable -using System; - namespace System.Windows.Data { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionRegisteringEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionRegisteringEventArgs.cs index ca820eeca77..8de10cc8cbb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionRegisteringEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionRegisteringEventArgs.cs @@ -8,7 +8,6 @@ // See spec at Cross-thread Collections.docx // -using System; using System.Collections; namespace System.Windows.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionSynchronizationCallback.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionSynchronizationCallback.cs index 73734aa7b80..ded1fbffc6e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionSynchronizationCallback.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionSynchronizationCallback.cs @@ -8,7 +8,6 @@ // See spec at Cross-thread Collections.docx // -using System; using System.Collections; namespace System.Windows.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionView.cs index d3428709a88..53a44c03321 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionView.cs @@ -10,17 +10,13 @@ // -using System; using System.ComponentModel; using System.Globalization; using System.Reflection; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Diagnostics; -using System.Windows; using System.Threading; using System.Windows.Threading; using MS.Internal.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewRegisteringEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewRegisteringEventArgs.cs index 9bcba5d17f9..2e409e72ff6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewRegisteringEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewRegisteringEventArgs.cs @@ -8,8 +8,6 @@ // See spec at Cross-thread Collections.docx // -using System; - namespace System.Windows.Data { public class CollectionViewRegisteringEventArgs : EventArgs diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs index a00a99e62fd..8b731066db5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CollectionViewSource.cs @@ -9,7 +9,6 @@ // See spec at CollectionViewSource.mht // -using System; using System.Collections; // IEnumerable using System.Collections.ObjectModel; // ObservableCollection using System.Collections.Specialized; // NotifyCollectionChanged* diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CompositeCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CompositeCollection.cs index 0e0ebbbb1e8..ec4d213b8ff 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CompositeCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/CompositeCollection.cs @@ -9,18 +9,9 @@ // using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; - -using System.Windows; -using System.Windows.Markup; - -using MS.Internal; // Invariant.Assert using MS.Internal.Data; -using MS.Utility; - -using System; namespace System.Windows.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/DataChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/DataChangedEventManager.cs index d29a18e0899..607a672bdfe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/DataChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/DataChangedEventManager.cs @@ -7,9 +7,6 @@ // pattern. See WeakEventTable.cs for an overview. // -using System; -using System.Windows; // WeakEventManager - namespace System.Windows.Data { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/DataTransferEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/DataTransferEventArgs.cs index 2fdcc81c4ae..6b3e31af97d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/DataTransferEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/DataTransferEventArgs.cs @@ -8,8 +8,6 @@ // Specs: UIBinding.mht // -using System; - namespace System.Windows.Data { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/FilterEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/FilterEventArgs.cs index 14b0f6d12dd..307ff0180b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/FilterEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/FilterEventArgs.cs @@ -8,8 +8,6 @@ // Specs: CollectionViewSource.mht // -using System; - namespace System.Windows.Data { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IMultiValueConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IMultiValueConverter.cs index e209073fd42..f4dee6dfce1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IMultiValueConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IMultiValueConverter.cs @@ -10,19 +10,16 @@ // See spec at Data Binding.mht // -using System; -using System.Windows; using System.Globalization; -using System.Reflection; namespace System.Windows.Data { -/// -/// Interface for MultiValueConverter object - -/// used by MultiBinding to convert and combine source values to target values -/// and to convert and split target values to source values. -/// -public interface IMultiValueConverter + /// + /// Interface for MultiValueConverter object - + /// used by MultiBinding to convert and combine source values to target values + /// and to convert and split target values to source values. + /// + public interface IMultiValueConverter { /// /// Convert a value. Called when moving values from sources to target. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IValueConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IValueConverter.cs index 7298ba3a5cb..b89b953fc8c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IValueConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/IValueConverter.cs @@ -9,34 +9,31 @@ // Specs: Transformer.mht // -using System; -using System.Windows; using System.Globalization; -using System.Reflection; namespace System.Windows.Data { -/// -/// Interface for ValueConverter object -/// -/// -/// When implementing this interface it is a good practice to decorate your implementation -/// with a attribute -/// to indicate to development tools between what data types your converter can convert. -/// -/// [ValueConversion(typeof(Employee), typeof(Brush))] -/// class MyConverter : IValueConverter -/// { -/// public object Convert(object value, Type targetType, object parameter, CultureInfo culture) -/// { -/// if (value is Dev) return Brushes.Beige; -/// if (value is Employee) return Brushes.Salmon; -/// return Brushes.Yellow; -/// } -/// } -/// -/// -public interface IValueConverter + /// + /// Interface for ValueConverter object + /// + /// + /// When implementing this interface it is a good practice to decorate your implementation + /// with a attribute + /// to indicate to development tools between what data types your converter can convert. + /// + /// [ValueConversion(typeof(Employee), typeof(Brush))] + /// class MyConverter : IValueConverter + /// { + /// public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + /// { + /// if (value is Dev) return Brushes.Beige; + /// if (value is Employee) return Brushes.Salmon; + /// return Brushes.Yellow; + /// } + /// } + /// + /// + public interface IValueConverter { /// /// Convert a value. Called when moving a value from source to target. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ListCollectionView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ListCollectionView.cs index d6b65399ac0..1ff443cae44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ListCollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ListCollectionView.cs @@ -8,21 +8,15 @@ // See spec at CollectionView.mht // -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; // ConstructorInfo - -using System.Windows; using System.Windows.Threading; using MS.Internal; using MS.Internal.Data; -using MS.Utility; namespace System.Windows.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/MultiBinding.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/MultiBinding.cs index 162ba9878a5..8a901a52821 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/MultiBinding.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/MultiBinding.cs @@ -8,29 +8,24 @@ // Specs: UIBinding.mht // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.Windows.Controls; // Validation using System.Windows.Markup; using MS.Internal.Controls; // Validation using MS.Internal.Data; -using MS.Utility; namespace System.Windows.Data { -/// -/// Describes a collection of bindings attached to a single property. -/// The inner bindings contribute their values to the MultiBinding, -/// which combines/converts them into a resultant final value. -/// In the reverse direction, the target value is tranlated to -/// a set of values that are fed back into the inner bindings. -/// -[ContentProperty("Bindings")] + /// + /// Describes a collection of bindings attached to a single property. + /// The inner bindings contribute their values to the MultiBinding, + /// which combines/converts them into a resultant final value. + /// In the reverse direction, the target value is tranlated to + /// a set of values that are fed back into the inner bindings. + /// + [ContentProperty("Bindings")] public class MultiBinding : BindingBase, IAddChild { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/MultiBindingExpression.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/MultiBindingExpression.cs index 36bc791b325..c810abb5945 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/MultiBindingExpression.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/MultiBindingExpression.cs @@ -8,33 +8,22 @@ // See spec at Data Binding.mht // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Threading; -using System.Threading; using System.Windows.Controls; -using System.Windows.Input; // FocusChangedEvent -using System.Windows.Markup; -using MS.Internal.Controls; // Validation -using MS.Internal.KnownBoxes; using MS.Internal.Data; -using MS.Utility; using MS.Internal; // Invariant.Assert namespace System.Windows.Data { -/// -/// Describes a collection of BindingExpressions attached to a single property. -/// The inner BindingExpressions contribute their values to the MultiBindingExpression, -/// which combines/converts them into a resultant final value. -/// In the reverse direction, the target value is tranlated to -/// a set of values that are fed back into the inner BindingExpressions. -/// -public sealed class MultiBindingExpression: BindingExpressionBase, IDataBindEngineClient + /// + /// Describes a collection of BindingExpressions attached to a single property. + /// The inner BindingExpressions contribute their values to the MultiBindingExpression, + /// which combines/converts them into a resultant final value. + /// In the reverse direction, the target value is tranlated to + /// a set of values that are fed back into the inner BindingExpressions. + /// + public sealed class MultiBindingExpression: BindingExpressionBase, IDataBindEngineClient { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ObjectDataProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ObjectDataProvider.cs index 08deff11ee8..9d360cc18e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ObjectDataProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ObjectDataProvider.cs @@ -8,18 +8,13 @@ // Specs: Avalon DataProviders.mht // -using System; using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; using System.Windows.Threading; using System.Threading; -using System.Windows; -using System.Windows.Data; using MS.Internal; using MS.Internal.Data; // ParameterCollection -using System.Windows.Markup; //--------------------------------------------------------------------------- // Design notes: diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PriorityBinding.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PriorityBinding.cs index f83b6ab003e..73e79756430 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PriorityBinding.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PriorityBinding.cs @@ -9,24 +9,20 @@ // See spec at Data Binding.mht // -using System; -using System.Collections; using System.Collections.ObjectModel; // Collection using System.ComponentModel; -using System.Globalization; using System.Windows.Markup; using MS.Internal.Data; -using MS.Utility; namespace System.Windows.Data { -/// -/// Describes a collection of bindings attached to a single property. -/// These behave as "priority" bindings, meaning that the property -/// receives its value from the first binding in the collection that -/// can produce a legal value. -/// -[ContentProperty("Bindings")] + /// + /// Describes a collection of bindings attached to a single property. + /// These behave as "priority" bindings, meaning that the property + /// receives its value from the first binding in the collection that + /// can produce a legal value. + /// + [ContentProperty("Bindings")] public class PriorityBinding : BindingBase, IAddChild { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PriorityBindingExpression.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PriorityBindingExpression.cs index 88af9f13229..762cfc39474 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PriorityBindingExpression.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PriorityBindingExpression.cs @@ -10,27 +10,20 @@ // See spec at Data Binding.mht // -using System; -using System.Collections; using System.Collections.ObjectModel; // Collection -using System.Diagnostics; -using System.Threading; using System.Windows.Controls; // ValidationStep -using System.Windows.Threading; -using System.Windows.Markup; using MS.Internal; using MS.Internal.Data; -using MS.Utility; namespace System.Windows.Data { -/// -/// Describes a collection of BindingExpressions attached to a single property. -/// These behave as "priority" BindingExpressions, meaning that the property -/// receives its value from the first BindingExpression in the collection that -/// can produce a legal value. -/// -public sealed class PriorityBindingExpression : BindingExpressionBase + /// + /// Describes a collection of BindingExpressions attached to a single property. + /// These behave as "priority" BindingExpressions, meaning that the property + /// receives its value from the first BindingExpression in the collection that + /// can produce a legal value. + /// + public sealed class PriorityBindingExpression : BindingExpressionBase { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PropertyGroupDescription.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PropertyGroupDescription.cs index 3a9964d544e..6bcbb5a23cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PropertyGroupDescription.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/PropertyGroupDescription.cs @@ -9,12 +9,9 @@ // See spec at Grouping.mht // -using System; // StringComparison using System.Collections; // IComparer using System.ComponentModel; // [DefaultValue] using System.Globalization; // CultureInfo -using System.Reflection; // PropertyInfo -using System.Windows; // SR using MS.Internal; // XmlHelper namespace System.Windows.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/RelativeSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/RelativeSource.cs index 8d45a076a35..a191f7115cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/RelativeSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/RelativeSource.cs @@ -7,7 +7,6 @@ // using System.ComponentModel; // ISupportInitialize -using System.Diagnostics; using System.Windows.Markup; // MarkupExtension namespace System.Windows.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ValueConversionAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ValueConversionAttribute.cs index 8922b2b4d4a..42541f4c0fb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ValueConversionAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ValueConversionAttribute.cs @@ -10,8 +10,6 @@ // Specs: Data Binding.mht // -using System; - namespace System.Windows.Data { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ValueUnavailableException.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ValueUnavailableException.cs index cb78fa08471..41d3857ac64 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ValueUnavailableException.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ValueUnavailableException.cs @@ -7,8 +7,6 @@ // by a validation rule is not available. // -using System; - namespace System.Windows.Data { ///Exception class thrown when a value requested by a validation rule is not available diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlDataProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlDataProvider.cs index f9bfa30cdcf..9f19e0bac2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlDataProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlDataProvider.cs @@ -9,21 +9,15 @@ // XmlDataSource.mht // -using System; using System.IO; // Stream -using System.Collections; using System.ComponentModel; // ISupportInitialize, AsyncCompletedEventHandler, [DesignerSerialization*], [DefaultValue] -using System.Diagnostics; using System.IO.Packaging; // PackUriHelper -using System.Globalization; // CultureInfo using System.Net; // WebRequest, IWebRequestCreate using System.Threading; // ThreadPool, WaitCallback using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; // IXmlSerializable using System.Xml.XPath; -using System.Windows; -using System.Windows.Data; using System.Windows.Threading; // Dispatcher* using System.Windows.Markup; // IUriContext, [XamlDesignerSerializer] using MS.Internal; // CriticalExceptions diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlNamespaceMapping.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlNamespaceMapping.cs index d151b7d0909..f71964f504e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlNamespaceMapping.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlNamespaceMapping.cs @@ -9,7 +9,6 @@ // WCP DataSources.mht // -using System; using System.ComponentModel; // ISupportInitialize namespace System.Windows.Data diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlNamespaceMappingCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlNamespaceMappingCollection.cs index 97e67f8b7f0..993a52a7967 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlNamespaceMappingCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/XmlNamespaceMappingCollection.cs @@ -9,12 +9,9 @@ // WCP DataSources.mht // -using System; using System.Collections; // IEnumerator -using System.Collections.Generic; // ICollection using System.Xml; using System.Windows.Markup; -using MS.Utility; namespace System.Windows.Data { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DataTemplateKey.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DataTemplateKey.cs index efcec9bc58f..8f6ff57968c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DataTemplateKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DataTemplateKey.cs @@ -7,9 +7,6 @@ // Description: Resource key for a DataTemplate // -using System; -using System.Reflection; - namespace System.Windows { /// Resource key for a DataTemplate diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DataTrigger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DataTrigger.cs index 7382e7c9939..e63a38a99a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DataTrigger.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DataTrigger.cs @@ -8,10 +8,8 @@ // gets values from data. // -using System; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Data; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DeferrableContent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DeferrableContent.cs index e80f32f0782..e568e706f77 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DeferrableContent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DeferrableContent.cs @@ -2,13 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; using System.IO; -using System.Security; using System.Xaml; -using System.Xaml.Permissions; using System.Windows.Baml2006; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DeferrableContentConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DeferrableContentConverter.cs index a895542c6c7..db939b3225a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DeferrableContentConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DeferrableContentConverter.cs @@ -2,26 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.IO; -using System.Net; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Collections.Specialized; -using System.Diagnostics; using System.ComponentModel; -using System.Windows.Threading; -using System.Windows.Media; -using System.IO.Packaging; -using MS.Internal.IO.Packaging; // for PackageCacheEntry using System.Globalization; -using System.Windows.Navigation; - -using MS.Internal; -using MS.Internal.Utility; -using MS.Internal.AppModel; -using MS.Utility; using System.Xaml; using System.Windows.Baml2006; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DependencyPropertyHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DependencyPropertyHelper.cs index 900f503148e..09e3c32d956 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DependencyPropertyHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DependencyPropertyHelper.cs @@ -10,7 +10,6 @@ // See spec at GetValueSource.mht // -using System; using MS.Internal; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DescendentsWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DescendentsWalker.cs index 86a02f588c5..6a0a72ab254 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DescendentsWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DescendentsWalker.cs @@ -2,14 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; -using MS.Utility; using System.Windows.Controls.Primitives; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DescendentsWalkerBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DescendentsWalkerBase.cs index 50fe3198db9..9239bbf6719 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DescendentsWalkerBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DescendentsWalkerBase.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Diagnostics; -using System.Windows; using System.Windows.Media; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/BindingDiagnostics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/BindingDiagnostics.cs index 6e9a28f0e43..00ed812ed2c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/BindingDiagnostics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/BindingDiagnostics.cs @@ -7,8 +7,6 @@ // Binding diagnostics API // -using System.Collections.Generic; - namespace System.Windows.Diagnostics { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/BindingFailedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/BindingFailedEventArgs.cs index a86f56d9f85..644c1ba4327 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/BindingFailedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/BindingFailedEventArgs.cs @@ -6,7 +6,6 @@ // Description: // Contains EventArg types raised to communicate BindingFailed events. -using System.Diagnostics; using System.Windows.Data; namespace System.Windows.Diagnostics diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/ResourceDictionaryDiagnostics.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/ResourceDictionaryDiagnostics.cs index 51020f0058a..fa4a3c0f3b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/ResourceDictionaryDiagnostics.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/ResourceDictionaryDiagnostics.cs @@ -11,14 +11,8 @@ // iii. Notifies listeners when themed ResourceDictionary instances get // unloaded (generic ResourceDictionary instances are never unloaded) -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Reflection; -using System.Security; -using System.Windows; using System.Windows.Threading; using MS.Internal; using MS.Internal.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/ResourceDictionaryInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/ResourceDictionaryInfo.cs index 446be891fe2..3c3a0637a21 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/ResourceDictionaryInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Diagnostics/ResourceDictionaryInfo.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. -using System.Diagnostics; using System.Reflection; namespace System.Windows.Diagnostics diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DialogResultConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DialogResultConverter.cs index 23158ca3064..a061938956a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DialogResultConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DialogResultConverter.cs @@ -9,7 +9,6 @@ // // -using System; using System.ComponentModel; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Adorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Adorner.cs index 72a37c82489..fe77e5ac5a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Adorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Adorner.cs @@ -8,11 +8,8 @@ // See spec at AdornerLayer Spec.htm // -using System; -using System.Collections; using System.Windows.Data; using System.Windows.Media; -using System.Windows.Input; using System.Windows.Threading; using MS.Internal; // DoubleUtil diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerDecorator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerDecorator.cs index fac623c3971..941aeda768c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerDecorator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerDecorator.cs @@ -9,12 +9,8 @@ // See spec at: AdornerLayer Spec.htm // -using System; -using System.Collections; -using System.Windows; using System.Windows.Controls; using System.Windows.Media; -using System.Windows.Threading; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerHitTestResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerHitTestResult.cs index 073f4f2597c..fd3ef6c30ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerHitTestResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerHitTestResult.cs @@ -10,23 +10,17 @@ // See spec at: AdornerLayer Spec.htm // -using System; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Threading; -using System.Collections; -using MS.Internal; using System.Windows.Documents; namespace System.Windows.Media { - /// - /// Data provided as a result of calling AdornerLayer.AdornerHitTest(). - /// In addition to the visual and point information provided by the base - /// class PointHitTestResult, also returns the Adorner that was hit (since - /// there may be multiple Visuals in a single Adorner). - /// - public class AdornerHitTestResult : PointHitTestResult + /// + /// Data provided as a result of calling AdornerLayer.AdornerHitTest(). + /// In addition to the visual and point information provided by the base + /// class PointHitTestResult, also returns the Adorner that was hit (since + /// there may be multiple Visuals in a single Adorner). + /// + public class AdornerHitTestResult : PointHitTestResult { private readonly Adorner _adorner; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerLayer.cs index c50aceada6b..483d6298934 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerLayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerLayer.cs @@ -8,15 +8,11 @@ // See spec at: AdornerLayer Spec.htm // -using System; using System.Windows.Media; -using System.Diagnostics; using System.Collections; using System.Collections.Specialized; using System.Windows.Threading; using System.Windows.Controls; - -using MS.Utility; using MS.Internal; using MS.Internal.Controls; using MS.Internal.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AnchoredBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AnchoredBlock.cs index bf40222175a..7cb6068d3a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AnchoredBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AnchoredBlock.cs @@ -13,7 +13,6 @@ using System.ComponentModel; // TypeConverter using System.Windows.Media; // Brush using System.Windows.Markup; // ContentProperty -using MS.Internal; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Block.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Block.cs index f6f32223e57..f55626f80df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Block.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Block.cs @@ -9,13 +9,11 @@ // using System.ComponentModel; // TypeConverter -using System.Windows.Controls; // Border using System.Windows.Media; // Brush -using MS.Internal; // DoubleUtil using MS.Internal.Text; // Text DPI restrictions using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS restrictions -namespace System.Windows.Documents +namespace System.Windows.Documents { /// /// Block element - an abstract class, a base for elements allowed diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/BlockCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/BlockCollection.cs index 24e0c2c81f8..c87d260bea1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/BlockCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/BlockCollection.cs @@ -10,8 +10,6 @@ namespace System.Windows.Documents { - using MS.Internal; // Invariant - /// /// Collection of Block elements - elements allowed as children /// of FlowDocument, Section, ListItem, TableCell, Floater and Figure. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/BlockUIContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/BlockUIContainer.cs index a1e47c3aa54..2381b22b8b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/BlockUIContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/BlockUIContainer.cs @@ -7,7 +7,6 @@ // flow content block collections // -using System.ComponentModel; // DesignerSerializationVisibility using System.Windows.Markup; // ContentProperty namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CaretElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CaretElement.cs index 64a21fd7fc3..02c3d87a913 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CaretElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CaretElement.cs @@ -2,26 +2,23 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; // Brush, Transform +using System.Windows.Media.Animation; // AnimationClock +using System.Windows.Controls; // ScrollViewer +using MS.Win32; // SafeNativeMethods +using MS.Internal; // DoubleUtil.AreClose(), Invariant.Assert +using MS.Internal.Documents; // IFlowDocumentViewer +using System.Runtime.InteropServices; // HandleRef +using System.Windows.Interop; +using System.Windows.Controls.Primitives; + // // Description: Caret rendering visual. // namespace System.Windows.Documents { - using System.Security; // SecurityCritical, SecurityTreatAsSafe - using System.Windows.Media; // Brush, Transform - using System.Windows.Media.Animation; // AnimationClock - using System.Windows.Controls; // ScrollViewer - using MS.Win32; // SafeNativeMethods - using MS.Internal; // DoubleUtil.AreClose(), Invariant.Assert - using MS.Internal.Documents; // IFlowDocumentViewer - using System.Runtime.InteropServices; // HandleRef - using System.Collections.Generic; // List - using System.Windows.Interop; - using System.Windows.Controls.Primitives; - - -// Disable pragma warnings to enable PREsharp pragmas + // Disable pragma warnings to enable PREsharp pragmas #pragma warning disable 1634, 1691 /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ChangeBlockUndoRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ChangeBlockUndoRecord.cs index 9be6bca06d5..ee14e79bbfb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ChangeBlockUndoRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ChangeBlockUndoRecord.cs @@ -7,8 +7,6 @@ // TextContainer. // -using System; -using System.Windows; using MS.Internal; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ChildDocumentBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ChildDocumentBlock.cs index c0adee0844c..5fa4639c37c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ChildDocumentBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ChildDocumentBlock.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; + // // Description: // Represent a node in the doubly linked list a DocumentSequenceTextContainer @@ -11,11 +13,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using System; - using System.Diagnostics; - - //===================================================================== /// /// Represent a node in the doubly linked list a DocumentSequenceTextContainer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ColumnResizeAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ColumnResizeAdorner.cs index 36c1061e991..67c4f4d5d01 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ColumnResizeAdorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ColumnResizeAdorner.cs @@ -7,15 +7,7 @@ // Description: Adorner for column resize. // -using System; -using System.Diagnostics; -using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using MS.Win32; -using MS.Internal; namespace System.Windows.Documents.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs index 16a715c1647..ada5b11dc1a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs @@ -2,22 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; // ArrayList +using System.Windows.Media; // Brush, Transform +using System.Windows.Controls.Primitives; // TextBoxBase +using System.Windows.Input; // InputLanguageManager +using MS.Win32; // TextServices +using MS.Internal; // Invariant + // // Description: Composition adorner to render the composition display attribute. // namespace System.Windows.Documents { - using System.Collections; // ArrayList - using System.Diagnostics; - using System.Windows.Media; // Brush, Transform - using System.Windows.Controls; // TextBox - using System.Windows.Controls.Primitives; // TextBoxBase - using System.Windows.Input; // InputLanguageManager - using System.Windows.Threading; // Dispatcher - using MS.Win32; // TextServices - using MS.Internal; // Invariant - internal class CompositionAdorner : Adorner { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DPTypeDescriptorContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DPTypeDescriptorContext.cs index 4f2a36cff06..0ba234c0b0a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DPTypeDescriptorContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DPTypeDescriptorContext.cs @@ -2,17 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Globalization; + // // Description: Set of static methods implementing text range serialization // namespace System.Windows.Documents { - using MS.Internal; - using System.Windows; - using System.Globalization; - using System.Windows.Media; - /// /// An object implementing ITypeDescriptorContext intended to be used in serialization /// scenarios for checking whether a particular value can be converted to a string diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DisplayAttributeHighlightLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DisplayAttributeHighlightLayer.cs index ce20bd212ed..2bbdfc615b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DisplayAttributeHighlightLayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DisplayAttributeHighlightLayer.cs @@ -6,11 +6,6 @@ // Description: Highlight rendering for IME compositions. // -using System; -using System.Diagnostics; -using System.Collections; -using System.Windows.Media; - namespace System.Windows.Documents { #if UNUSED_IME_HIGHLIGHT_LAYER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReference.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReference.cs index dc0d91cef65..02da4c4d52c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReference.cs @@ -2,6 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.Documents; +using MS.Internal.Utility; +using System.Windows.Navigation; +using System.Windows.Markup; +using System.IO; + // // Description: // Implements the DocumentReference element @@ -9,26 +16,6 @@ namespace System.Windows.Documents { - using MS.Internal; - using MS.Internal.AppModel; - using MS.Internal.Documents; - using MS.Internal.Utility; - using MS.Internal.Navigation; - using MS.Internal.PresentationFramework; // SecurityHelper - using System.Reflection; - using System.Windows; // DependencyID etc. - using System.Windows.Navigation; - using System.Windows.Markup; - using System.Windows.Threading; // Dispatcher - using System; - using System.ComponentModel; - using System.Diagnostics; - using System.IO; - using System.IO.Packaging; - using System.Net; - using System.Security; - - //===================================================================== /// /// DocumentReference is the class that references a Document. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReferenceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReferenceCollection.cs index 9c2fe2f3d47..104cb91e78c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReferenceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReferenceCollection.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Specialized; + // // Description: // Implements the DocumentReferenceCollection as holder for a collection @@ -10,12 +12,6 @@ namespace System.Windows.Documents { - using System; - using System.Collections.Generic; - using System.Collections.Specialized; - using System.Diagnostics; - - //===================================================================== /// /// DocumentReferenceCollection is an ordered collection of DocumentReference diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequence.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequence.cs index c56b72a53f1..e0351f639da 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequence.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequence.cs @@ -8,16 +8,12 @@ // using MS.Internal.Documents; -using MS.Utility; // ExceptionStringTable using System.Collections; using System.Collections.Specialized; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.Windows.Automation.Peers; // AutomationPeer using System.Windows.Threading; // Dispatcher -using System.Windows; // DependencyID etc. using System.Windows.Media; // Visual using System.Windows.Markup; // IAddChild, ContentProperty using System.Windows.Navigation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceHighlightLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceHighlightLayer.cs index 9519206c7bf..2fd8ae0e3f1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceHighlightLayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceHighlightLayer.cs @@ -2,18 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using System.Collections; + // // Description: DocumentSequence's HighlightLayer for TextSelection. // namespace System.Windows.Documents { - using MS.Internal.Documents; - using System; - using System.Diagnostics; - using System.Collections; - using System.Collections.Generic; - // A special HighlightLayer that exists only to notify a FixedDocument // of changes to its highlights when the highlights are stored on a // DocumentSequenceTextContainer. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextContainer.cs index 51b62bf8045..96bf22a1ac1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextContainer.cs @@ -2,6 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.Documents; +using System.Collections.Specialized; +using System.Collections.ObjectModel; + // // Description: // DocumentSequenceTextContainer is a TextContainer that aggregates @@ -12,19 +17,6 @@ namespace System.Windows.Documents { - using MS.Internal; - using MS.Internal.Documents; - using System; - using System.Collections; - using System.Collections.Specialized; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.ComponentModel; - using System.Diagnostics; - using System.Windows; // DependencyID etc. - using System.Text; - using System.Windows.Threading; // Dispatcher - //===================================================================== /// /// DocumentSequenceTextContainer is a TextContainer that aggregates diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextPointer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextPointer.cs index 82415491b5d..2cfab4bfb13 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextPointer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextPointer.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; + // // Description: // DocumentSequenceTextPointer is an implementation of ITextPointer/ITextPointer @@ -13,14 +15,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using MS.Utility; - using MS.Internal; - using System.Windows; - using System; - using System.Diagnostics; - - /// /// DocumentSequenceTextPointer is an implementation of ITextPointer for FixedDocumentSequence /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextView.cs index ff6579770d6..455cf1eba43 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentSequenceTextView.cs @@ -2,6 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using MS.Internal; +using System.Collections.ObjectModel; +using System.Windows.Media; + // // Description: // DocumentSequenceTextView implements TextView for DocumentSequence @@ -10,19 +15,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using MS.Internal; - using MS.Utility; - using System; - using System.Collections; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.Diagnostics; - using System.Windows; - using System.Windows.Media; - using System.Windows.Shapes; - - /// /// DocumentSequenceTextView implements TextView for DocumentSequence /// to support text editing (e.g Selection). diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/NamedElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/NamedElement.cs index 4ec831313bc..1cb2000d974 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/NamedElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/NamedElement.cs @@ -3,18 +3,6 @@ // See the LICENSE file in the project root for more information. -using MS.Internal.Documents; -using MS.Utility; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Controls.Primitives; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Shapes; using System.Windows.Markup; [assembly: XmlnsDefinition( diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/SemanticBasicElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/SemanticBasicElement.cs index 4deed4ffc56..9d50777cf84 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/SemanticBasicElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/SemanticBasicElement.cs @@ -3,18 +3,7 @@ // See the LICENSE file in the project root for more information. -using MS.Internal.Documents; -using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Controls.Primitives; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Shapes; using System.Windows.Markup; [assembly: XmlnsDefinition( diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/StoryFragments.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/StoryFragments.cs index 088a9fd6e63..9f25babf62d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/StoryFragments.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentStructures/StoryFragments.cs @@ -3,18 +3,7 @@ // See the LICENSE file in the project root for more information. -using MS.Internal.Documents; -using MS.Utility; -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Controls.Primitives; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Shapes; using System.Windows.Markup; [assembly: XmlnsDefinition( diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/EditingCommands.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/EditingCommands.cs index f5c66cb4a4a..2e27fa07b17 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/EditingCommands.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/EditingCommands.cs @@ -2,15 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Input; // Command + // // Description: Command definitions for Rich Text Editing. // namespace System.Windows.Documents { - using System.Windows.Input; // Command - using System.ComponentModel; // TypeConverter - /// /// Command definitions for Rich Text Editing. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Figure.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Figure.cs index a6f8565e465..8a4c3e7fc32 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Figure.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Figure.cs @@ -7,8 +7,6 @@ // using System.ComponentModel; // TypeConverter -using System.Windows.Controls; // TextBlock -using MS.Internal; using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS restrictions namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDSBuilder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDSBuilder.cs index 5436049845f..ba756ac878a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDSBuilder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDSBuilder.cs @@ -2,6 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Controls; +using System.Windows.Markup; +using System.Windows.Shapes; +using System.Windows.Documents.DocumentStructures; +using Ds = System.Windows.Documents.DocumentStructures; +using System.Collections; + // // Description: // FixedTextBuilder contains heuristics to map fixed document elements @@ -10,21 +17,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using System.Windows.Controls; - using System.Windows.Media; - using System.Windows.Media.Imaging; - using System.Windows.Markup; - using System.Windows.Shapes; - using System.Windows.Documents.DocumentStructures; - using Ds=System.Windows.Documents.DocumentStructures; - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Globalization; - using System.Text; - //===================================================================== /// /// FixedTextBuilder contains heuristics to map fixed document elements diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs index 5d3067c3884..695ad26237f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs @@ -2,6 +2,25 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; // DoubleUtil +using MS.Internal.Documents; +using System.Windows.Threading; // Dispatcher +using System.Windows.Automation.Peers; // AutomationPeer +using System.Windows.Documents.DocumentStructures; +using System.Windows.Media; // Visual +using System.Windows.Markup; // IAddChild, ContentPropertyAttribute +using System.IO; +using System.IO.Packaging; +using System.Collections; +using System.ComponentModel; // DesignerSerializationVisibility +using System.Globalization; +using MS.Internal.Annotations.Component; +using System.Windows.Navigation; +using System.Windows.Controls; +using MS.Internal.IO.Packaging; + +using PackUriHelper = System.IO.Packaging.PackUriHelper; + // // Description: // Implements the FixedDocument element @@ -10,36 +29,6 @@ namespace System.Windows.Documents { - using MS.Internal; // DoubleUtil - using MS.Internal.Documents; - using MS.Utility; // ExceptionStringTable - using MS.Internal.Utility; - using System.Windows.Threading; // Dispatcher - using System.Windows; // DependencyID etc. - using System.Windows.Automation.Peers; // AutomationPeer - using System.Windows.Documents; // DocumentPaginator - using System.Windows.Documents.DocumentStructures; - using System.Windows.Media; // Visual - using System.Windows.Markup; // IAddChild, ContentPropertyAttribute - using System.Windows.Shapes; // Glyphs - using System; - using System.IO; - using System.IO.Packaging; - using System.Net; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; // DesignerSerializationVisibility - using System.Diagnostics; - using System.Globalization; - using System.Runtime.Serialization.Formatters.Binary; - using MS.Internal.Annotations.Component; - using System.Windows.Navigation; - using System.Windows.Controls; - using System.Text; - using MS.Internal.IO.Packaging; - using System.Security; - - using PackUriHelper = System.IO.Packaging.PackUriHelper; //===================================================================== /// /// FixedDocument is the spine of a portable, high fidelity fixed-format diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedElement.cs index d9c20f4eacd..7adedffafcf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedElement.cs @@ -2,6 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using System.Windows.Automation; +using System.Windows.Controls; +using System.Windows.Markup; // for XmlLanguage +using System.Windows.Navigation; +using System.Globalization; +using System.Text; + // // Description: // FixedElement represents a flow element/object in the Fixed Document. @@ -9,22 +17,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Controls; - using System.Windows.Shapes; - using System.Windows.Markup; // for XmlLanguage - using System.Windows.Media; - using System.Windows.Navigation; - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Globalization; - using System.Text; - using System.Security; - /// /// FixedElement represents a flow element/object in the Fixed Document. /// Its children collection is used for DependencyProperty evaluation. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFindEngine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFindEngine.cs index 99fabb73398..506ee22f5f3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFindEngine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFindEngine.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; +using System.Xml; +using System.Text; +using System.Globalization; +using System.Windows.Markup; + // // Description: // Implements fast, paginated search functionality for Fixed documents @@ -10,14 +16,6 @@ namespace System.Windows.Documents { - using System; - using System.IO; - using System.Xml; - using System.Text; - using System.Globalization; - using System.Diagnostics; - using System.Windows.Markup; - internal sealed class FixedFindEngine { //Searches for the specified pattern and updates start *or* end pointers depending on search direction diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFlowMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFlowMap.cs index 63881d59f0e..fe3a843220a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFlowMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFlowMap.cs @@ -2,20 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; + // // Description: Implements Fixed/Flow structural mapping // namespace System.Windows.Documents { - using MS.Internal.Documents; - using System; - using System.Diagnostics; - using System.Collections; - using System.Collections.Generic; - using System.Globalization; - using System.Text; - //-------------------------------------------------------------------- // // Internal Enums diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedHighlight.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedHighlight.cs index 41537f64659..24e7a8bffbd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedHighlight.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedHighlight.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using System.Windows.Media; // Brush +using System.Windows.Media.TextFormatting; // CharacterHit +using System.Windows.Shapes; // Glyphs +using System.Windows.Controls; // Image + // // Description: // Implements FixedHighlight @@ -9,17 +15,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using System; - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows.Media; // Brush - using System.Windows.Media.TextFormatting; // CharacterHit - using System.Windows.Shapes; // Glyphs - using System.Windows.Controls; // Image - - - //===================================================================== /// /// FixedHighlight represents partial glyph run that is highlighted on a fixed document. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedHyperlink.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedHyperlink.cs index f277ac9d73b..dbccfd75266 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedHyperlink.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedHyperlink.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Navigation; + // // Description: // Implements the help class of FixedHyperLink. @@ -9,17 +11,6 @@ namespace System.Windows.Documents { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Collections.Specialized; - using System.ComponentModel; - using System.Diagnostics; - using System.Windows.Threading; - using System.Windows.Markup; - using System.Windows.Navigation; - using System.Windows.Media; - /// /// The IFixedNavigate interface will be implemented by FixedPage, FixedDocument, /// and FixedDocumentSequence to support fixed hyperlink. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedLineResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedLineResult.cs index 6979155269d..4615c4e4d8e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedLineResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedLineResult.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Globalization; + // // Description: // FixedLineResult represents a per-line layout info for a fixe page @@ -9,13 +11,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using System; - using System.Collections; - using System.Diagnostics; - using System.Globalization; - - //===================================================================== /// /// FixedLineResult represents a per-line layout info for a fixe page diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedNode.cs index cf662d10fbd..2884bec0101 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedNode.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Globalization; +using System.Text; + // // Description: // FixedNode is an immutable type that represents a fast and @@ -12,11 +15,6 @@ namespace System.Windows.Documents { - using System; - using System.Diagnostics; - using System.Globalization; - using System.Text; - //===================================================================== /// /// FixedNode is an immutable type that represents a fast and diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPage.cs index b4c863bcfbc..6bbb43088f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPage.cs @@ -2,6 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; +using System.ComponentModel; +using System.Windows.Controls; +using System.Windows.Documents.DocumentStructures; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Navigation; +using System.Windows.Shapes; +using MS.Internal.Documents; +using MS.Internal.Utility; + +using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; + // // Description: // Implements the FixedPage element @@ -10,28 +24,6 @@ namespace System.Windows.Documents { - using System; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Globalization; - using System.IO.Packaging; - using System.Text; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Documents.DocumentStructures; - using System.Windows.Input; - using System.Windows.Markup; - using System.Windows.Media; - using System.Windows.Navigation; - using System.Windows.Shapes; - using MS.Internal; - using MS.Internal.Documents; - using MS.Internal.Utility; - - using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; - //===================================================================== /// /// FixedPage is the container element for a metafile that represents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPageStructure.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPageStructure.cs index 1217aff1388..0d0ea32ab24 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPageStructure.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPageStructure.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; +using System.Windows.Shapes; +using System.Windows.Controls; +using MS.Internal.Documents; +using CultureInfo = System.Globalization.CultureInfo; + // // Description: // FixedPageStructure represents deduced information (such as boundary, @@ -10,18 +16,6 @@ namespace System.Windows.Documents { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows.Media; - using System.Windows.Shapes; - using System.Windows.Controls; - using System.Windows.Markup; - using System.Windows.Documents.DocumentStructures; - using MS.Internal.Documents; - using CultureInfo = System.Globalization.CultureInfo; - //===================================================================== /// /// FixedPageStructure represents deduced information (such as boundary, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPosition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPosition.cs index 2601fd972d8..ff33970b4de 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPosition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPosition.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Globalization; + // // Description: // FixedPosition represents a hit-testable position in a fixed document's tree. @@ -9,13 +11,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using System; - using System.Collections; - using System.Diagnostics; - using System.Globalization; - - //===================================================================== /// /// FixedPosition represents a hit-testable position in a fixed document's tree. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMContainer.cs index a6892dee313..aac5dd9af41 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMContainer.cs @@ -9,10 +9,6 @@ namespace System.Windows.Documents { - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows.Media; - internal abstract class FixedSOMContainer :FixedSOMSemanticBox, IComparable { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMElement.cs index 6fcb21d82c0..bd9be43c9c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMElement.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; +using System.Windows.Shapes; +using System.Windows.Controls; + /*++ Description: Abstract class that provides a common base class for all non-container semantic elements. @@ -11,13 +15,6 @@ namespace System.Windows.Documents { - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows.Media; - using System.Windows.Media.Imaging; - using System.Windows.Shapes; - using System.Windows.Controls; - internal abstract class FixedSOMElement : FixedSOMSemanticBox { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMFixedBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMFixedBlock.cs index 67206c6163a..bc202e28dcc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMFixedBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMFixedBlock.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; +using System.Text; + /*++ Description: This class reprsents a table row on the page. It would contain several table cells @@ -9,13 +12,6 @@ This class reprsents a table row on the page. It would contain several table cel namespace System.Windows.Documents { - using System.Collections; - using System.Collections.Generic; - using System.Windows.Media; - using System.Globalization; - using System.Diagnostics; - using System.Text; - internal sealed class FixedSOMFixedBlock : FixedSOMPageElement { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMGroup.cs index 8b63f4d8da4..b6d983b5ab9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMGroup.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; + /*++ Description: A concrete container that can be used to put together to group different or same types of containers @@ -9,12 +11,6 @@ A concrete container that can be used to put together to group different or same namespace System.Windows.Documents { - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows.Media; - using System.Globalization; - - internal class FixedSOMGroup :FixedSOMPageElement, IComparable { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMImage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMImage.cs index d84c716d0ca..b6b998d0213 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMImage.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Automation; +using System.Windows.Controls; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + /*++ Description: SOM object that wraps an image on the page. The corresponding markup element can be either an image or @@ -10,14 +16,6 @@ a Path with an ImageBrush namespace System.Windows.Documents { - using System.Windows.Automation; - using System.Windows.Controls; - using System.Windows.Media; - using System.Windows.Media.Imaging; - using System.Windows.Shapes; - using System.Globalization; - using System.Diagnostics; - internal sealed class FixedSOMImage : FixedSOMElement { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineCollection.cs index 89a768c5aa4..b0272a01b92 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineCollection.cs @@ -10,17 +10,11 @@ These ranges are used in construction of FixedBlocks and Tables namespace System.Windows.Documents { - using System.Collections.Generic; - using System.Windows.Shapes; - using System.Windows.Media; - using System.Diagnostics; - using System.Windows; - //Stores a collection of horizontal and vertical lines sorted by y and x axis respectively // Needs performance review: It might be better to use a list while creating FixedSOMLineRanges and then convert them to an array //when consuming them, i.e. determinining separation etc. We are doing lots of indexed access at this stage - + internal sealed class FixedSOMLineCollection { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineRanges.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineRanges.cs index f8b62783c40..10714acc2c4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineRanges.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineRanges.cs @@ -9,13 +9,6 @@ Internal helper class that can store a set of sorted lines by their start and en namespace System.Windows.Documents { - using System.Collections; - using System.Collections.Generic; - using System.Windows.Shapes; - using System.Windows.Controls; - using System.Diagnostics; - using System.Windows.Media; - internal class FixedSOMLineRanges { public void AddRange(double start, double end) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPage.cs index 94bf31b4127..cc19cf68d8b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPage.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Markup; // for XmlLanguage +using System.Windows.Media; +using System.Globalization; + /*++ Description: A semantic container that contains all the first-level containers on the page @@ -9,13 +13,6 @@ A semantic container that contains all the first-level containers on the page namespace System.Windows.Documents { - using System.Collections; - using System.Collections.Generic; - using System.Windows.Markup; // for XmlLanguage - using System.Windows.Media; - using System.Globalization; - using System.Diagnostics; - internal sealed class FixedSOMPage: FixedSOMContainer { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageConstructor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageConstructor.cs index 708a098ae22..468c0fb6217 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageConstructor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageConstructor.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Shapes; +using System.Windows.Controls; +using System.Windows.Media; + /*++ Description: This class is responsible for algorithmically reconstructing a semantic object model (SOM) @@ -10,15 +14,6 @@ namespace System.Windows.Documents { - using System.Collections; - using System.Collections.Generic; - using System.Windows.Shapes; - using System.Windows.Controls; - using System.Diagnostics; - using System.Windows.Media; - using System.Windows.Media.Imaging; - using System.Globalization; - #region GeometryAnalyzer /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageElement.cs index 001a5a0face..b0f08b22dbb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageElement.cs @@ -9,9 +9,7 @@ namespace System.Windows.Documents { - using System.Collections.Generic; - using System.Diagnostics; - + internal abstract class FixedSOMPageElement :FixedSOMContainer { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMSemanticBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMSemanticBox.cs index f1ee5289d1c..ecfd8af619c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMSemanticBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMSemanticBox.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; + /*++ Description: This class is the abstract base class for all the objects in SOM. It consists of a bounding rectangle, and @@ -10,12 +12,6 @@ implements IComparable interface to figure out content ordering on the page namespace System.Windows.Documents { - using System.Collections.Generic; - using System.Diagnostics; - using System.Globalization; - using System.Windows.Media; - using System.Windows.Markup; - internal abstract class FixedSOMSemanticBox : IComparable { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTable.cs index 85ab58a6e2f..60a7831f3b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTable.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; + /*++ Description: This class reprsents a table on the page @@ -9,13 +11,6 @@ This class reprsents a table on the page namespace System.Windows.Documents { - using System.Windows.Shapes; - using System.Windows.Media; - using System.Windows.Markup; - using System.Diagnostics; - using System.Windows; - using System.Globalization; - internal sealed class FixedSOMTable : FixedSOMPageElement { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTableCell.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTableCell.cs index ae07f016e22..68c2ccac088 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTableCell.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTableCell.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; + /*++ Description: This class reprsents a table cell on the page. Objects of this class would contain @@ -10,12 +12,6 @@ This class reprsents a table cell on the page. Objects of this class would conta namespace System.Windows.Documents { - using System.Windows.Shapes; - using System.Windows.Media; - using System.Diagnostics; - using System.Windows; - using System.Windows.Controls; - internal sealed class FixedSOMTableCell : FixedSOMContainer { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTableRow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTableRow.cs index a49eda092ba..964be5d147e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTableRow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTableRow.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Media; + /*++ Description: This class reprsents a table row on the page. It would contain several table cells @@ -9,12 +11,6 @@ This class reprsents a table row on the page. It would contain several table cel namespace System.Windows.Documents { - using System.Windows.Shapes; - using System.Windows.Media; - using System.Globalization; - using System.Diagnostics; - using System.Windows; - internal sealed class FixedSOMTableRow : FixedSOMContainer { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTextRun.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTextRun.cs index a2df2d8cd73..8088e574dd9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTextRun.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTextRun.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Markup; // for XmlLanguage +using System.Windows.Media; +using System.Globalization; + /*++ Description: This class represents a (partial) Glyphs element on the page. Most of the time it will be a full glyphs element @@ -10,14 +14,6 @@ Partial elements are necessary when we decide that a single Glyphs element repre namespace System.Windows.Documents { - using System.Windows.Shapes; - using System.Windows.Markup; // for XmlLanguage - using System.Windows.Media; - using System.Diagnostics; - using System.Globalization; - using System.Windows; - using System.Collections.Generic; - //a set of characters that have the same font, face and size internal sealed class FixedSOMTextRun : FixedSOMElement, IComparable { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSchema.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSchema.cs index c1f5e67f217..7b889b624ba 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSchema.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSchema.cs @@ -4,27 +4,18 @@ #region Using directives -using System; using System.Collections; -using System.Collections.Generic; using System.Text; -using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Windows.Markup; using System.Xml; using System.IO; using System.IO.Packaging; -using System.Xml.Schema; -using System.Net; using System.Resources; using System.Reflection; -using System.Globalization; -using System.Security; using MS.Internal; #endregion -using InternalPackUriHelper = MS.Internal.IO.Packaging.PackUriHelper; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs index 5f62fd2086d..2fff300666f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs @@ -2,6 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using System.Windows.Controls; // UIElementCollection +using System.Windows.Media; +using System.Windows.Automation; +using System.Windows.Documents.DocumentStructures; +using System.Collections; +using System.Globalization; +using System.Text; +using System.IO; +using System.Xml; +using Path = System.Windows.Shapes.Path; + +using MS.Utility; + // // Description: // FixedTextBuilder contains heuristics to map fixed document elements @@ -10,26 +24,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using System.Windows.Controls; // UIElementCollection - using System.Windows.Media; - using System.Windows.Media.Imaging; - using System.Windows.Markup; - using System.Windows.Shapes; // Glyphs - using System.Windows.Automation; - using System.Windows.Documents.DocumentStructures; - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Globalization; - using System.Text; - using System.IO; - using System.Xml; - using Path=System.Windows.Shapes.Path; - - using MS.Utility; - //===================================================================== /// /// FixedTextBuilder contains heuristics to map fixed document elements diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextContainer.cs index f5b59187d6b..d016a22fcca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextContainer.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using System.Windows.Controls; +using System.Windows.Media; +using System.Windows.Shapes; +using System.Collections; + // // Description: // Implements the FixedTextContainer @@ -11,21 +17,6 @@ namespace System.Windows.Documents { - using MS.Internal; - using MS.Internal.Documents; - using MS.Utility; - using System.Windows; // DependencyID etc. - using System.Windows.Controls; - using System.Windows.Media; - using System.Windows.Markup; - using System.Windows.Shapes; - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Text; - using System.Windows.Threading; // Dispatcher - //===================================================================== /// /// FixedTextContainer is an implementaiton of TextContainer for Fixed Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextPointer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextPointer.cs index 38ab06a2e18..2c30ba8561d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextPointer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextPointer.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; + // // Description: // FixedTextPointer is an implementation of TextPointer/TextNavigator @@ -13,13 +15,6 @@ namespace System.Windows.Documents { - using MS.Utility; - using System.Windows; - using System; - using System.Diagnostics; - using MS.Internal; - - /// /// FixedTextPointer is an implementation of TextPointer/TextNavigator /// for Fixed Document. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextView.cs index 56320f84dba..a1f169470fb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextView.cs @@ -2,28 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using System.Collections; +using System.Collections.ObjectModel; +using System.Windows.Controls; +using System.Windows.Shapes; +using System.Windows.Media; +using System.Windows.Media.TextFormatting; // CharacterHit + // // Description: TextView implementation for FixedDocument. // namespace System.Windows.Documents { - using MS.Internal; - using MS.Internal.Documents; - using MS.Internal.Media; - using MS.Utility; - using System.Collections; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.Diagnostics; - using System.Windows.Documents; - using System.Windows.Controls; - using System.Windows.Shapes; - using System.Windows.Media; - using System.Windows.Media.TextFormatting; // CharacterHit - using System; - - /// /// TextView for each individual FixedDocumentPage /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Floater.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Floater.cs index 2551fc63168..653597545ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Floater.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Floater.cs @@ -7,7 +7,6 @@ // using System.ComponentModel; -using MS.Internal; using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS restrictions namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowNode.cs index ff22ba43dc1..7c7db1ef67d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowNode.cs @@ -11,9 +11,6 @@ namespace System.Windows.Documents { - using System; - using System.Diagnostics; - //===================================================================== /// /// FlowNode represents a structural node in the Flow Order of a fixed document. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowPosition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowPosition.cs index bee322e2f02..fa80a1e1245 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowPosition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FlowPosition.cs @@ -2,6 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using System.Collections; +using System.Globalization; +using System.Windows.Controls; + // // Description: // FlowPosition represents a navigational position in a document's content flow. @@ -9,15 +14,6 @@ namespace System.Windows.Documents { - using MS.Internal.Documents; - using System; - using System.Collections; - using System.Diagnostics; - using System.Globalization; - using System.Windows.Controls; - - - //===================================================================== /// /// FlowPosition represents a navigational position in a document's content flow. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FrameworkRichTextComposition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FrameworkRichTextComposition.cs index 7cf60801c25..3a3cdea31df 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FrameworkRichTextComposition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FrameworkRichTextComposition.cs @@ -6,10 +6,6 @@ // Description: the TextComposition class // -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Input; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FrameworkTextComposition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FrameworkTextComposition.cs index a1bd4e8f778..37d31d14193 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FrameworkTextComposition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FrameworkTextComposition.cs @@ -8,12 +8,8 @@ using MS.Internal; using MS.Win32; -using System; -using System.Diagnostics; using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Input; -using System.Security; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Glyphs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Glyphs.cs index 31edad01645..bb46398a91b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Glyphs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Glyphs.cs @@ -8,27 +8,14 @@ // Spec: Glyphs element and GlyphRun object.htm // -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; -using System.IO; -using System.Windows.Threading; - - -using System.Windows; using System.Windows.Media; using System.Windows.Navigation; using System.Windows.Markup; using System.ComponentModel; -using System.Security; - -using MS.Utility; -using MS.Internal.Navigation; using MS.Internal.Utility; -using MS.Internal; -using BuildInfo=MS.Internal.PresentationFramework.BuildInfo; +using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightChangedEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightChangedEventHandler.cs index 64c11a638a1..56975e0454c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightChangedEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightChangedEventHandler.cs @@ -6,8 +6,6 @@ // Description: HighlightLayer.Changed event handler. // -using System.Collections; - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightLayer.cs index 1101bfeec43..75cc86416ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightLayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightLayer.cs @@ -6,8 +6,6 @@ // Description: A group of non-overlapping text highlights with a single owner. // -using System.Collections; - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightVisual.cs index 60595b7cf8f..a136c873d94 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightVisual.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using System.Windows.Media; // Visual +using System.Collections; + // // Description: // Implements the HighlightVisual element for rendering highlight for fixed @@ -10,20 +14,6 @@ namespace System.Windows.Documents { - using MS.Internal; // DoubleUtil - using MS.Internal.Documents; - using MS.Utility; // ExceptionStringTable - using System.ComponentModel; - using System.Windows.Threading; // Dispatcher - using System.Windows; // DependencyID etc. - using System.Windows.Media; // Visual - using System.Windows.Shapes; // Glyphs - using System; - using System.Collections; - using System.IO; - using System.Diagnostics; - - internal sealed class HighlightVisual : Adorner { //-------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Highlights.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Highlights.cs index 4dec01f9cff..e4b4de396d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Highlights.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Highlights.cs @@ -7,7 +7,6 @@ // using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs index a645154eb98..4ef38efc19e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs @@ -8,22 +8,16 @@ // using System.ComponentModel; -using System.Diagnostics; -using System.IO.Packaging; -using System.Security; -using System.Text; using System.Windows.Automation.Peers; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Markup; using System.Windows.Navigation; using System.Windows.Shapes; -using MS.Internal; using MS.Internal.AppModel; using System.Windows.Threading; -using CommonDependencyProperty=MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; -using SecurityHelper=MS.Internal.PresentationFramework.SecurityHelper; +using CommonDependencyProperty = MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextContainer.cs index 1be9687e92e..5ff35ce7d43 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextContainer.cs @@ -6,7 +6,6 @@ // Description: An abstract interface describing a linear text document. // -using System; using MS.Internal.Documents; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextPointer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextPointer.cs index 9b6cddcc468..245736fc26d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextPointer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextPointer.cs @@ -8,8 +8,6 @@ namespace System.Windows.Documents { - using System; - // Abstract version of TextPointer. It has full read-only support for // rich content, but only supports plain text editing. internal interface ITextPointer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextRange.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextRange.cs index ca8497c381a..67a11e38c3d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextRange.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; + // // Description: A part of abstract layer of TextOM. // Defines an abstraction for a TextRange. @@ -15,12 +17,6 @@ namespace System.Windows.Documents { - using System.Diagnostics; - using System.Collections.Generic; - using System.Threading; - using System.Globalization; - using System.IO; - /// /// A class a portion of text content. /// Can be contigous or disjoint; supports rectangular table ranges. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextSelection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextSelection.cs index 75876c7e848..76929af2a1d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextSelection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ITextSelection.cs @@ -10,14 +10,6 @@ namespace System.Windows.Documents { - using System.Diagnostics; - using System.Collections.Generic; - using System.Globalization; - using System.Windows.Input; - using System.Threading; - using MS.Internal.Documents; - using MS.Win32; - /// /// The TextSelection class encapsulates selection state for the TextEditor /// class. It has no public constructor, but is exposed via a public property diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ImmComposition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ImmComposition.cs index c243e9a4896..931aefdf4cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ImmComposition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ImmComposition.cs @@ -7,21 +7,13 @@ // This class handles IMM32 IME's composition string and support level 3 input to TextBox and RichTextBox. // -using System; using System.Runtime.InteropServices; -using System.Threading; using System.Collections; -using System.Diagnostics; using System.Windows.Media; using System.Windows.Input; -using System.Windows.Documents; using System.Windows.Interop; -using System.Windows.Threading; -using System.Security; -using System.Text; using MS.Win32; using MS.Internal.Documents; -using MS.Internal.PresentationFramework; using MS.Internal; using MS.Internal.Interop; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InlineCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InlineCollection.cs index e0ee3bf5622..23f2e569603 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InlineCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InlineCollection.cs @@ -2,17 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Markup; // ContentWrapper +using System.Windows.Controls; // TextBlock +using System.Collections; + // // Description: Collection of Inline elements // namespace System.Windows.Documents { - using MS.Internal; // Invariant - using System.Windows.Markup; // ContentWrapper - using System.Windows.Controls; // TextBlock - using System.Collections; - /// /// Collection of Inline elements - elements allowed as children /// of Paragraph, Span and TextBlock elements. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InlineUIContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InlineUIContainer.cs index 35f9b9005cc..802f35a2e02 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InlineUIContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InlineUIContainer.cs @@ -7,12 +7,10 @@ // flow content inline collections // -using System.ComponentModel; // DesignerSerializationVisibility using System.Windows.Markup; // XamlDesignerSerializationManager -using MS.Internal; using MS.Internal.Documents; -namespace System.Windows.Documents +namespace System.Windows.Documents { /// /// InlineUIContainer - a wrapper for embedded UIElements in text diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InputScopeAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InputScopeAttribute.cs index 314582057d2..60b57d8af88 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InputScopeAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/InputScopeAttribute.cs @@ -7,16 +7,8 @@ // Description: InputScopeAttribute is an image object that links IOleDataObject. // -using System; -using System.Security; using System.Runtime.InteropServices; -using System.Windows.Threading; - -using System.Diagnostics; -using System.Windows.Media; using System.Windows.Input; -using System.Windows.Documents; -using System.Windows.Controls; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/LinkTarget.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/LinkTarget.cs index acecd64297f..3c51a4ac8bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/LinkTarget.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/LinkTarget.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; + // // Description: // Implements the LinkTargetCollection as holder for a collection @@ -10,15 +12,6 @@ namespace System.Windows.Documents { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Collections.Specialized; - using System.ComponentModel; - using System.Diagnostics; - using System.Windows.Threading; - using System.Windows.Markup; - //===================================================================== /// /// LinkTarget is the class that keep name that a named element exist in document diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ListItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ListItem.cs index 7d5256b11ef..34889e5b3c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ListItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ListItem.cs @@ -8,12 +8,11 @@ // such as bullets and numbering. // -using MS.Internal; // Invariant using System.Windows.Markup; // ContentProperty using System.ComponentModel; // TypeConverter using System.Windows.Media; // Brush -namespace System.Windows.Documents +namespace System.Windows.Documents { /// /// ListItem acts by default like a Paragraph, but with different diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ListItemCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ListItemCollection.cs index 5ca4e1c7e36..d819ef06b6e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ListItemCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ListItemCollection.cs @@ -8,8 +8,6 @@ namespace System.Windows.Documents { - using MS.Internal; // Invariant - /// /// Collection of ListItem elements /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MoveSizeWinEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MoveSizeWinEventHandler.cs index e808db56b56..d5852d0f0b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MoveSizeWinEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MoveSizeWinEventHandler.cs @@ -6,10 +6,8 @@ // Description: MoveSizeWinEventHandler implementation. // -using System; using System.Collections; using System.Runtime.InteropServices; -using System.Security; using MS.Win32; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/RCW.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/RCW.cs index 35d94102058..d35ccfe34a2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/RCW.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/RCW.cs @@ -6,10 +6,8 @@ // Description: RCW for ISpellChecker and related COM types. // -using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using System.Security; /// /// RCW for spellcheck.idl found in Windows SDK diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/OptionDescription.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/OptionDescription.cs index 8544c6c1fc0..70fec628daa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/OptionDescription.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/OptionDescription.cs @@ -8,15 +8,11 @@ // that is expressed in terms of .NET types. // -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Security; +using IOptionDescription = System.Windows.Documents.MsSpellCheckLib.RCW.IOptionDescription; namespace System.Windows.Documents.MsSpellCheckLib { - using IOptionDescription = RCW.IOptionDescription; - internal partial class SpellChecker { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellChecker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellChecker.cs index 98d597617d8..22c31083a4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellChecker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellChecker.cs @@ -8,21 +8,18 @@ // resilience against out-of-proc COM server failures. // -using System.Collections.Generic; using System.ComponentModel; using System.Runtime.InteropServices; -using System.Security; +using ISpellChecker = System.Windows.Documents.MsSpellCheckLib.RCW.ISpellChecker; +using IEnumString = System.Windows.Documents.MsSpellCheckLib.RCW.IEnumString; +using ISpellCheckerChangedEventHandler = System.Windows.Documents.MsSpellCheckLib.RCW.ISpellCheckerChangedEventHandler; +using IOptionDescription = System.Windows.Documents.MsSpellCheckLib.RCW.IOptionDescription; +using IEnumSpellingError = System.Windows.Documents.MsSpellCheckLib.RCW.IEnumSpellingError; namespace System.Windows.Documents { namespace MsSpellCheckLib { - using ISpellChecker = RCW.ISpellChecker; - using IEnumString = RCW.IEnumString; - using ISpellCheckerChangedEventHandler = RCW.ISpellCheckerChangedEventHandler; - using IOptionDescription = RCW.IOptionDescription; - using IEnumSpellingError = RCW.IEnumSpellingError; - /// /// This type encapsulates services provided by RCW.ISpellChecker interface and provides /// a resilient (to out-of-proc COM server failures) interface to callers. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellCheckerChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellCheckerChangedEventArgs.cs index 4ec1876f86b..8454a757a0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellCheckerChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellCheckerChangedEventArgs.cs @@ -6,8 +6,6 @@ // Description: EventArgs class that supports SpellCheckerChangedEventHandler. // -using System; - namespace System.Windows.Documents { namespace MsSpellCheckLib diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellCheckerChangedEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellCheckerChangedEventHandler.cs index d04a4eb4800..d951ec1fc47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellCheckerChangedEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellCheckerChangedEventHandler.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using ISpellChecker = System.Windows.Documents.MsSpellCheckLib.RCW.ISpellChecker; +using ISpellCheckerChangedEventHandler = System.Windows.Documents.MsSpellCheckLib.RCW.ISpellCheckerChangedEventHandler; + // // Description: An implementation of ISpellCheckerChangedEventHandler // that is exposed by MsSpellCheckLib.RCW. @@ -15,9 +18,6 @@ namespace System.Windows.Documents { namespace MsSpellCheckLib { - using ISpellChecker = RCW.ISpellChecker; - using ISpellCheckerChangedEventHandler = RCW.ISpellCheckerChangedEventHandler; - internal partial class SpellChecker { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellingError.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellingError.cs index 107d1abe85a..457d313e0f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellingError.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellChecker/SpellingError.cs @@ -11,15 +11,11 @@ // is CorrectiveAction.GetSuggestions. // -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Security; +using ISpellingError = System.Windows.Documents.MsSpellCheckLib.RCW.ISpellingError; namespace System.Windows.Documents.MsSpellCheckLib { - using ISpellingError = RCW.ISpellingError; - internal partial class SpellChecker { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellCheckerFactory/SpellCheckerCreationHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellCheckerFactory/SpellCheckerCreationHelper.cs index e34e6803085..309432e45b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellCheckerFactory/SpellCheckerCreationHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellCheckerFactory/SpellCheckerCreationHelper.cs @@ -10,8 +10,6 @@ // using MS.Internal; -using System.Collections.Generic; -using System.Security; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellCheckerFactory/SpellCheckerFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellCheckerFactory/SpellCheckerFactory.cs index ad617e96ea1..ae8aa2e1015 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellCheckerFactory/SpellCheckerFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/SpellCheckerFactory/SpellCheckerFactory.cs @@ -11,22 +11,18 @@ // COM types to .NET types. // -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Reflection; -using System.Security; using MS.Internal; +using ISpellChecker = System.Windows.Documents.MsSpellCheckLib.RCW.ISpellChecker; +using ISpellCheckerFactory = System.Windows.Documents.MsSpellCheckLib.RCW.ISpellCheckerFactory; +using IUserDictionariesRegistrar = System.Windows.Documents.MsSpellCheckLib.RCW.IUserDictionariesRegistrar; +using SpellCheckerFactoryClass = System.Windows.Documents.MsSpellCheckLib.RCW.SpellCheckerFactoryClass; namespace System.Windows.Documents { namespace MsSpellCheckLib { - using ISpellChecker = RCW.ISpellChecker; - using ISpellCheckerFactory = RCW.ISpellCheckerFactory; - using IUserDictionariesRegistrar = RCW.IUserDictionariesRegistrar; - using SpellCheckerFactoryClass = RCW.SpellCheckerFactoryClass; - /// /// Encapsulation of RCW.ISpellCheckerFactory and RCW.IUserDictionariesRegistrar funcionalities /// and provides a resilient (to out-of-proc COM server failures) interface to callers. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/ChangeNotifyWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/ChangeNotifyWrapper.cs index e877d6cea12..e86e17b9cb8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/ChangeNotifyWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/ChangeNotifyWrapper.cs @@ -6,7 +6,6 @@ // Description: See below. // -using System; using System.ComponentModel; /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/Extensions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/Extensions.cs index b43310ac147..fd342520f3b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/Extensions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/Extensions.cs @@ -6,21 +6,16 @@ // Description: Extension methods for use with MsSpellCheckLib.RCW interfaces // -using System; -using System.Collections.Generic; -using System.Reflection; using System.Runtime.InteropServices; -using System.Security; +using IEnumString = System.Windows.Documents.MsSpellCheckLib.RCW.IEnumString; +using IEnumSpellingError = System.Windows.Documents.MsSpellCheckLib.RCW.IEnumSpellingError; +using ISpellingError = System.Windows.Documents.MsSpellCheckLib.RCW.ISpellingError; + +using SpellingError = System.Windows.Documents.MsSpellCheckLib.SpellChecker.SpellingError; +using CorrectiveAction = System.Windows.Documents.MsSpellCheckLib.SpellChecker.CorrectiveAction; namespace System.Windows.Documents.MsSpellCheckLib { - using IEnumString = RCW.IEnumString; - using IEnumSpellingError = RCW.IEnumSpellingError; - using ISpellingError = RCW.ISpellingError; - - using SpellingError = SpellChecker.SpellingError; - using CorrectiveAction = SpellChecker.CorrectiveAction; - /// /// Extension methods for use with MsSpellCheckLib.RCW interfaces /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/RetryHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/RetryHelper.cs index 37415954a82..d7536691484 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/RetryHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/MsSpellCheckLib/Utils/RetryHelper.cs @@ -6,9 +6,6 @@ // Description: See for RetryHelper class below. // -using System; -using System.Collections.Generic; -using System.Reflection; using MS.Internal; namespace System.Windows.Documents.MsSpellCheckLib diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NLGSpellerInterop.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NLGSpellerInterop.cs index 4231671f8bb..cb62e4448b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NLGSpellerInterop.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NLGSpellerInterop.cs @@ -2,6 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Runtime.InteropServices; +using MS.Internal; +using MS.Win32; +using System.Globalization; +using System.Windows.Controls; +using MS.Internal.PresentationFramework; + // // Description: Custom COM marshalling code and interfaces for interaction // with the Natural Language Group's nl6 proofing engine. @@ -9,17 +16,6 @@ namespace System.Windows.Documents { - using System.Collections; - using System.Runtime.InteropServices; - using MS.Internal; - using MS.Win32; - using System.Globalization; - using System.Security; - using System.IO; - using System.Collections.Generic; - using System.Windows.Controls; - using MS.Internal.PresentationFramework; - // Custom COM marshalling code and interfaces for interaction // with the Natural Language Group's nl6 proofing engine. internal class NLGSpellerInterop : SpellerInteropBase diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NaturalLanguageHyphenator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NaturalLanguageHyphenator.cs index b81111a53b1..e6c970c05d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NaturalLanguageHyphenator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NaturalLanguageHyphenator.cs @@ -9,15 +9,11 @@ // NaturalLanguage6.dll - the component owned by the Natural Language Team. // -using System.Security; -using System.Collections; using System.Globalization; -using System.IO; using System.Runtime.InteropServices; using System.Windows.Media.TextFormatting; -using MS.Win32; using MS.Internal; -using DllImport=MS.Internal.PresentationFramework.DllImport; +using DllImport = MS.Internal.PresentationFramework.DllImport; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NullTextContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NullTextContainer.cs index a1ba0087b57..3274397404d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NullTextContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NullTextContainer.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.Documents; +using MS.Internal; + // // Description: // NullTextContainer is an immutable empty TextContainer that contains @@ -11,13 +14,6 @@ namespace System.Windows.Documents { - using System; - using System.Diagnostics; - using System.Windows.Threading; - using System.Windows; // DependencyID etc. - using MS.Internal.Documents; - using MS.Internal; - //===================================================================== /// /// NullTextContainer is an immutable empty TextContainer that contains diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NullTextNavigator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NullTextNavigator.cs index 7647e31ef23..f7334710a28 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NullTextNavigator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/NullTextNavigator.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; + // // Description: // TextNavigator implementation for NullTextContainer @@ -12,11 +14,6 @@ namespace System.Windows.Documents { - using System; - using System.Diagnostics; - using System.Windows; - using MS.Internal; - /// /// NullTextPointer is an implementation of ITextPointer for NullTextContainer /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContent.cs index 0b7caa04827..7061dcf86fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContent.cs @@ -2,6 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.Documents; +using MS.Internal.Utility; +using System.Windows.Navigation; +using System.Windows.Markup; +using System.Windows.Threading; // Dispatcher +using System.Collections.Specialized; +using System.ComponentModel; +using System.IO; + +using MS.Utility; + // // Description: // Implements the PageContent element @@ -9,32 +21,6 @@ namespace System.Windows.Documents { - using MS.Internal; - using MS.Internal.AppModel; - using MS.Internal.Documents; - using MS.Internal.Utility; - using MS.Internal.Navigation; - using MS.Internal.PresentationFramework; // SecurityHelper - using System.Reflection; - using System.Windows; // DependencyID etc. - using System.Windows.Controls; - using System.Windows.Media; - using System.Windows.Navigation; - using System.Windows.Markup; - using System.Windows.Threading; // Dispatcher - using System; - using System.Collections.Specialized; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.IO; - using System.IO.Packaging; - using System.Net; - using System.Security; - using System.Globalization; - - using MS.Utility; - //===================================================================== /// /// PageContent is the class that references or directly hosts a page stream. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContentAsyncResult.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContentAsyncResult.cs index 7d6b2332316..d29e746bad5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContentAsyncResult.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContentAsyncResult.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; +using System.Windows.Threading; +using System.Threading; + // // Description: // Implements the PageContentAsyncResult @@ -9,22 +13,6 @@ namespace System.Windows.Documents { - using System; - using System.Diagnostics; - using System.IO; - using System.Windows.Threading; - using System.Threading; - using MS.Internal; - using MS.Internal.AppModel; - using MS.Internal.Utility; - using MS.Internal.Navigation; - using MS.Utility; - using System.Reflection; - using System.Windows.Controls; - using System.Windows.Markup; - using System.Net; - using System.IO.Packaging; - /// /// IAsyncResult for GetPageAsync. This item is passed around and queued up during various /// phase of async call. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContentCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContentCollection.cs index 4510738e820..787a9dfd0a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContentCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContentCollection.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; + // // Description: // Implements the PageContentCollection element @@ -9,13 +11,6 @@ namespace System.Windows.Documents { - using System; - using System.Collections.Generic; - using System.Collections; - using System.Diagnostics; - using System.Windows.Markup; - - //===================================================================== /// /// PageContentCollection is an ordered collection of PageContent diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PrecursorTextChangeType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PrecursorTextChangeType.cs index e8fbe4bd4e9..606f6c3e422 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PrecursorTextChangeType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PrecursorTextChangeType.cs @@ -6,10 +6,6 @@ // Description: // -using System; -using System.Windows; -using System.Collections; - namespace System.Windows.Documents { // These are possible changes added to a change list. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PropertyRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PropertyRecord.cs index 41842b298b4..cea2197a84f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PropertyRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PropertyRecord.cs @@ -6,8 +6,6 @@ // Description: DependencyProperty/value pair struct used by TextContainer undo. // -using System; - namespace System.Windows.Documents { // This struct records DependencyProperty/value pairs. We use the struct diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RangeContentEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RangeContentEnumerator.cs index 86c5862464a..35cf1da3857 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RangeContentEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RangeContentEnumerator.cs @@ -7,12 +7,8 @@ // Description: IEnumerator for TextRange and TextElement content. // -using System; using System.Collections; using MS.Internal; -using System.Text; -using MS.Utility; -using System.Windows.Controls; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlLexer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlLexer.cs index 5c0ef9a8a48..0cf04312cf0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlLexer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlLexer.cs @@ -7,7 +7,6 @@ // using System.Collections; -using System.Diagnostics; using System.Globalization; using System.Text; using System.IO; // Stream diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs index 9a347031b5d..2286785949b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs @@ -7,7 +7,6 @@ // using System.Collections; -using System.Diagnostics; using System.Globalization; using System.Text; using System.IO; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RubberbandSelector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RubberbandSelector.cs index 6927e13aeea..d365b60faf9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RubberbandSelector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RubberbandSelector.cs @@ -3,27 +3,17 @@ // See the LICENSE file in the project root for more information. +using MS.Internal; // For Invariant.Assert +using MS.Internal.Documents; +using System.Windows.Controls; // Canvas +using System.Collections; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Media.TextFormatting; // CharacterHit +using System.Windows.Input; + namespace System.Windows.Documents { - using MS.Internal; // For Invariant.Assert - using MS.Internal.Documents; - using System.Windows; // DependencyID etc. - using System.Windows.Controls; // Canvas - using System.Collections; - using System.Windows.Media; - using System.Windows.Media.Imaging; - using System.Windows.Media.TextFormatting; // CharacterHit - using System.Windows.Shapes; // Glyphs - using System.Windows.Markup; - using System.Windows.Input; - using System.Threading; - using System; - using System.IO; - using System.Collections.Generic; - using System.Security ; - using System.Diagnostics; - - //===================================================================== /// /// Class has a function similar to that of TextEditor. It can be attached diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SelectionWordBreaker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SelectionWordBreaker.cs index 18c3ada3c5e..0e9025258a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SelectionWordBreaker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SelectionWordBreaker.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Win32; +using MS.Internal; // Invariant + // // Description: Word breaker used for TextSelection's auto-word selection and // ctl-arrow navigation. @@ -9,9 +12,6 @@ namespace System.Windows.Documents { - using MS.Win32; - using MS.Internal; // Invariant - // Word breaker used for TextSelection's auto-word selection and ctl-arrow // navigation. // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/ISerializerFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/ISerializerFactory.cs index 98e9ccec148..9a826ecb463 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/ISerializerFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/ISerializerFactory.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; + #if !DONOTREFPRINTINGASMMETA // // @@ -11,9 +13,6 @@ // namespace System.Windows.Documents.Serialization { - using System; - using System.IO; - /// /// ISerializerFactory is implemented by an assembly containing a plug-in serializer and provides /// functionality to instantiate the associated serializer diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerDescriptor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerDescriptor.cs index d8beefc43f9..e051844f738 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerDescriptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerDescriptor.cs @@ -2,6 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Globalization; +using System.Reflection; +using System.Diagnostics.CodeAnalysis; +using Microsoft.Win32; + #if !DONOTREFPRINTINGASMMETA // // @@ -11,16 +16,6 @@ // namespace System.Windows.Documents.Serialization { - using System; - using System.Globalization; - using System.Collections.Generic; - using System.Reflection; - using System.Windows; - using System.Security; - using System.Diagnostics.CodeAnalysis; - using Microsoft.Win32; - using MS.Internal.PresentationFramework; - /// /// SerializerDescriptor describes an individual plug-in serializer /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerProvider.cs index baa3fd76b2e..3bc3c8727a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerProvider.cs @@ -10,16 +10,10 @@ // See spec at // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; -using System.Reflection; -using System.Security; using System.Windows.Xps.Serialization; -using System.Diagnostics.CodeAnalysis; using Microsoft.Win32; -using MS.Internal.PresentationFramework; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriter.cs index 7f38a92b70a..0e4928cddb2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriter.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Printing; +using System.Windows.Media; + #if !DONOTREFPRINTINGASMMETA // // Description: Plug-in document serializers implement this abstract class @@ -10,12 +13,6 @@ // namespace System.Windows.Documents.Serialization { - using System; - using System.Printing; - using System.Windows.Documents; - using System.Windows.Media; - using System.Security; - /// /// SerializerWriter is an abstract class that is implemented by plug-in document serializers /// Objects of this class are instantiated by SerializerProvider.Create diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriterCollator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriterCollator.cs index 79ed330c3c1..0bd7ac9f991 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriterCollator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriterCollator.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Printing; +using System.Windows.Media; + #if !DONOTREFPRINTINGASMMETA // // Description: Plug-in document serializers implement this abstract class @@ -10,11 +13,6 @@ // namespace System.Windows.Documents.Serialization { - using System; - using System.Printing; - using System.Windows.Media; - using System.Security; - /// /// SerializerWriterCollator is an abstract class that is implemented by plug-in document serializers /// Objects of this class are instantiated by SerializerWriter.CreateVisualCellator diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriterEventHandlers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriterEventHandlers.cs index 17e1c646fe5..534a16e8b0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriterEventHandlers.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerWriterEventHandlers.cs @@ -14,7 +14,6 @@ EventHandlers used with the XpsDocumentWriter and XPSEmitter classes. #if !DONOTREFPRINTINGASMMETA using System.Printing; #endif -using System.Security; namespace System.Windows.Documents.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Span.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Span.cs index 89ba555d64c..abf639616a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Span.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Span.cs @@ -7,11 +7,10 @@ // using MS.Internal; // Invariant.Assert -using System.Windows.Controls; // TextBlock using System.Windows.Markup; // ContentProperty using System.ComponentModel; // DesignerSerializationVisibility -namespace System.Windows.Documents +namespace System.Windows.Documents { /// /// Span element used for grouping other Inline elements. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Speller.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Speller.cs index a0f10b22c6d..7d282900966 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Speller.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Speller.cs @@ -2,27 +2,23 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Threading; +using System.Windows.Threading; +using System.Globalization; +using System.Collections; +using System.Windows.Controls; +using System.Windows.Markup; // XmlLanguage +using System.Windows.Input; +using System.IO; +using System.Windows.Navigation; + // // Description: Spell checking component for the TextEditor. // namespace System.Windows.Documents { - using MS.Internal; - using System.Threading; - using System.Windows.Threading; - using System.Globalization; - using System.Collections; - using System.Collections.Generic; - using System.Security; - using System.Runtime.InteropServices; - using MS.Win32; - using System.Windows.Controls; - using System.Windows.Markup; // XmlLanguage - using System.Windows.Input; - using System.IO; - using System.Windows.Navigation; - // Spell checking component for the TextEditor. // Class is marked as partial to allow for definition of TextMapOffsetLogger in a separate // source file. When TextMapOffsetLogger is removed, the partial declaration can diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerError.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerError.cs index 5761d3ff301..df86d1cdd0a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerError.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerError.cs @@ -2,17 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Documents; +using MS.Internal; + // // Description: A misspelled word in a TextBox or RichTextBox. // namespace System.Windows.Controls { - using System.Collections; - using System.Collections.Generic; - using System.Windows.Documents; - using MS.Internal; - /// /// A misspelled word in a TextBox or RichTextBox. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs index d0301a2e222..563976a1400 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs @@ -6,12 +6,9 @@ // Description: Highlight rendering for the Speller. // -using System; using MS.Internal; -using System.Windows.Documents; using System.Windows.Media; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerInteropBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerInteropBase.cs index 153a240079f..f1cfa2777d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerInteropBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerInteropBase.cs @@ -3,16 +3,11 @@ // See the LICENSE file in the project root for more information. +using System.Globalization; +using System.Windows.Controls; + namespace System.Windows.Documents { - using System.Collections; - using System.Collections.Generic; - using System.Globalization; - using System.Reflection; - using System.Runtime.InteropServices; - using System.Security; - using System.Windows.Controls; - internal abstract class SpellerInteropBase: IDisposable { #region Internal Types diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerStatusTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerStatusTable.cs index eb765dab353..83fc08eeb51 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerStatusTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerStatusTable.cs @@ -2,17 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Collections; + // // Description: Run-length table of document status for use the by the Speller. // namespace System.Windows.Documents { - using MS.Internal; - using System.Collections; - using System.Diagnostics; - using System.Windows.Controls; - // Run-length table of document status for use the by the Speller. // // The speller tracks all document content as either diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SplayTreeNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SplayTreeNode.cs index ca427567eb1..ef8efb96884 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SplayTreeNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SplayTreeNode.cs @@ -7,7 +7,6 @@ // tree. // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/StaticTextPointer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/StaticTextPointer.cs index fcaab3b34d4..e6d3a5a207a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/StaticTextPointer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/StaticTextPointer.cs @@ -2,18 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; + // // Description: Optimized minimal version of TextPointer that gets stored on the stack. // namespace System.Windows.Documents { - using System; - using MS.Internal; - using System.Threading; - using System.Windows; - using System.Collections; - internal struct StaticTextPointer { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Table.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Table.cs index 269dd710ba4..6f651f4b2ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Table.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Table.cs @@ -8,18 +8,9 @@ // See spec at WPP TableOM.doc // -using MS.Internal; -using MS.Internal.PtsHost; -using MS.Internal.PtsTable; -using MS.Utility; -using System; using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; -using System.Windows; using System.Windows.Automation.Peers; -using System.Windows.Media; using System.Windows.Markup; using MS.Internal.PtsHost.UnsafeNativeMethods; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableCell.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableCell.cs index 29de8a0d451..c3e4f02cd0d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableCell.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableCell.cs @@ -17,25 +17,12 @@ // Why even AffectsRender causes it? using MS.Internal; -using MS.Internal.PtsHost; -using MS.Internal.PtsTable; -using MS.Internal.Text; -using MS.Utility; -using System.Diagnostics; -using System.Security; -using System.Windows.Threading; -using System.Collections; -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Media; -using System.Windows.Controls; using System.Windows.Markup; using System.ComponentModel; // TypeConverter -using System.Collections.Generic; using MS.Internal.Documents; -using System; - using MS.Internal.PtsHost.UnsafeNativeMethods; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableCellCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableCellCollection.cs index 1d59622d3bc..47fcae11b67 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableCellCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableCellCollection.cs @@ -6,9 +6,7 @@ // Description: Collection of TableCell objects. // -using System; using System.Collections; -using System.Collections.Generic; using MS.Internal.Documents; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableColumn.cs index 80af8b00ff9..9cba4da2cdf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableColumn.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableColumn.cs @@ -6,17 +6,9 @@ // Description: Table column object implementation. // -using System; -using System.Diagnostics; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Controls; -using System.Windows.Documents; using System.Windows.Media; using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS restrictions -using System.Collections; -using System.Collections.Generic; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableColumnCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableColumnCollection.cs index 9a199babc2b..0da995232f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableColumnCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableColumnCollection.cs @@ -6,9 +6,7 @@ // Description: Collection of TableColumn objects. // -using System; using System.Collections; -using System.Collections.Generic; using MS.Internal.Documents; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRow.cs index 0de84ecf53a..db04d249d6c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRow.cs @@ -8,25 +8,10 @@ // See spec at WPP TableOM.doc // -using MS.Internal; -using MS.Internal.PtsHost; using MS.Internal.PtsTable; -using MS.Internal.Text; -using MS.Utility; - -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Security; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Media; using System.Windows.Markup; -using System.Collections.Generic; using MS.Internal.Documents; -using MS.Internal.PtsHost.UnsafeNativeMethods; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowCollection.cs index 61dea34f89a..f0a28d32cf3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowCollection.cs @@ -6,9 +6,7 @@ // Description: Collection of TableRow objects. // -using System; using System.Collections; -using System.Collections.Generic; using MS.Internal.Documents; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowGroup.cs index 0cb528aecc8..3c86c46dd9c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowGroup.cs @@ -13,28 +13,11 @@ //you need to disable warnings 1634 and 1691. (Presharp Documentation) #pragma warning disable 1634, 1691 -using MS.Internal.PtsHost; using MS.Internal.PtsTable; -using MS.Utility; - -using System; -using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Threading; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Media; using System.Windows.Markup; -using System.Collections.Generic; using MS.Internal.Documents; -using MS.Internal; -using MS.Internal.Data; -using MS.Internal.PtsHost.UnsafeNativeMethods; - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowGroupCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowGroupCollection.cs index 6f54b97d9ca..c6e15a3f196 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowGroupCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TableRowGroupCollection.cs @@ -6,9 +6,7 @@ // Description: Collection of TableRowGroup objects. // -using System; using System.Collections; -using System.Collections.Generic; using MS.Internal.Documents; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextChangeType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextChangeType.cs index e0a964003fb..bc4f5b8fbbc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextChangeType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextChangeType.cs @@ -6,10 +6,6 @@ // Description: // -using System; -using System.Windows; -using System.Collections; - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainer.cs index 83946ff3059..b2775d5210c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainer.cs @@ -8,13 +8,8 @@ //#define DEBUG_SLOW -using System; using System.Windows.Threading; using MS.Internal; -using System.Collections; -using System.ComponentModel; -using System.Windows.Controls; -using System.Windows.Markup; using MS.Internal.Documents; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangeEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangeEventArgs.cs index 350d214acb1..e4cfd35e99f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangeEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangeEventArgs.cs @@ -6,8 +6,6 @@ // Description: The arguments sent when a Change event is fired in a TextContainer. // -using System; - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangeEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangeEventHandler.cs index 394886f2dd1..3928fdb1175 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangeEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangeEventHandler.cs @@ -6,9 +6,6 @@ // Description: Delegate for a Change event fired on a TextContainer. // -using System; -using System.Windows; - namespace System.Windows.Documents { // Delegate for a ChangeAdded event fired on a TextContainer. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventArgs.cs index a0bb2f8c8a5..89bbac82f96 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventArgs.cs @@ -6,10 +6,7 @@ // Description: The arguments sent when a TextChangedEvent is fired in a TextContainer. // -using System; -using System.Windows; using System.Windows.Controls; -using System.Collections.Generic; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventHandler.cs index 99ec40aa896..41734ea7015 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventHandler.cs @@ -6,9 +6,6 @@ // Description: Delegate for a TextChangedEvent fired on a TextContainer. // -using System; -using System.Windows; - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs index fc810416001..4ce474e8ac8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs @@ -2,6 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Globalization; +using System.Threading; +using System.Collections; // ArrayList +using System.Runtime.InteropServices; +using System.Windows.Threading; +using System.Windows.Input; +using System.Windows.Controls; // ScrollChangedEventArgs +using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase +using System.Windows.Markup; +using MS.Win32; +using MS.Internal.Documents; +using MS.Internal.Commands; // CommandHelpers + #pragma warning disable 1634, 1691 // To enable presharp warning disables (#pragma suppress) below. // // Description: Text editing service for controls. @@ -9,26 +23,6 @@ namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - using System.Security; - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Markup; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCharacters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCharacters.cs index 9315da2df9a..76fca2350ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCharacters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCharacters.cs @@ -2,32 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Windows.Input; +using MS.Internal.Commands; // CommandHelpers + // // Description: A component of TextEditor supporting character formatting commands // namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Markup; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorContextMenu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorContextMenu.cs index f0cb7511413..4f4546a21d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorContextMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorContextMenu.cs @@ -2,24 +2,22 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Threading; +using System.Runtime.InteropServices; +using MS.Win32; +using System.Windows.Interop; + // // Description: A Component of TextEditor supporting the default ContextMenu. // namespace System.Windows.Documents { - using MS.Internal; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Threading; - using System.Runtime.InteropServices; - using System.Security; - using MS.Win32; - using System.Windows.Interop; - // A Component of TextEditor supporting the default ContextMenu. internal static class TextEditorContextMenu { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs index 4dadf70258e..0ae2179249d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs @@ -2,35 +2,22 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Globalization; +using System.Xml; +using System.IO; +using System.Runtime.InteropServices; +using System.Windows.Input; +using System.Windows.Controls; // ScrollChangedEventArgs +using System.Windows.Markup; +using MS.Internal.Commands; // CommandHelpers + // // Description: A Component of TextEditor supporting Cut/Copy/Paste commands // namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Security; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Xml; - using System.IO; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Markup; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorDragDrop.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorDragDrop.cs index afcc86538c6..e3b4a7b30e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorDragDrop.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorDragDrop.cs @@ -2,6 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Runtime.InteropServices; +using System.Windows.Input; +using System.Windows.Interop; // WindowInteropHelper +using System.Windows.Controls; // ScrollChangedEventArgs +using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase +using System.Windows.Data; // BindingExpression +using System.Windows.Media; +using MS.Win32; + // // Description: A Component of TextEditor class supposrtinng Drag-and-drop // functionality @@ -9,33 +19,6 @@ namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Interop; // WindowInteropHelper - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Data; // BindingExpression - using System.Windows.Media; - using System.Windows.Markup; - using System.Windows; - using System.Security; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - using MS.Internal.PresentationFramework; //Demand for drag and drop - - using SecurityHelper=MS.Internal.SecurityHelper; - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorLists.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorLists.cs index 956301b686a..a1e4c8fab8e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorLists.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorLists.cs @@ -2,32 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Windows.Input; +using MS.Internal.Commands; // CommandHelpers + // // Description: A Component of TextEditor supporting list editing commands. // namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Markup; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorMouse.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorMouse.cs index c07ef63b7f8..b53f2c9937e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorMouse.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorMouse.cs @@ -2,33 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Windows.Input; +using System.Windows.Controls; // ScrollChangedEventArgs +using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase +using System.Windows.Media; +using System.Windows.Media.Media3D; + // // Description: A Component of TextEditor supporting mouse gestures. // namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Media.Media3D; - using System.Windows.Markup; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorParagraphs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorParagraphs.cs index d896875d552..577382921eb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorParagraphs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorParagraphs.cs @@ -2,32 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Input; +using MS.Internal.Commands; // CommandHelpers + // // Description: A component of TextEditor supporting paragraph formating commands // namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Markup; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorSelection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorSelection.cs index f9746267b01..638c13d3a0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorSelection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorSelection.cs @@ -2,33 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Windows.Input; +using System.Windows.Controls; // ScrollChangedEventArgs +using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase +using MS.Internal.Commands; // CommandHelpers + // // Description: A component of TextEditor supporting selection and navigation // namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - using System.Security; // SecurityCritical attribute. - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Markup; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorSpelling.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorSpelling.cs index c5a111595e9..4cae5782180 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorSpelling.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorSpelling.cs @@ -2,19 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Windows.Input; +using MS.Internal.Commands; +using System.Windows.Controls; +using System.Windows.Markup; // XmlLanguage + // // Description: A Component of TextEditor supporting spelling. // namespace System.Windows.Documents { - using MS.Internal; - using System.Windows; - using System.Windows.Input; - using MS.Internal.Commands; - using System.Windows.Controls; - using System.Windows.Markup; // XmlLanguage - // A Component of TextEditor supporting spelling. internal static class TextEditorSpelling { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorTables.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorTables.cs index 8eabe8f25df..102467f3c2f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorTables.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorTables.cs @@ -2,32 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Input; +using MS.Internal.Commands; // CommandHelpers + // // Description: A Component of TextEditor supporting Table editing commands // namespace System.Windows.Documents { - using MS.Internal; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Markup; - - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Text editing service for controls. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorThreadLocalStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorThreadLocalStore.cs index 8e4ef172c72..f31c5797e14 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorThreadLocalStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorThreadLocalStore.cs @@ -2,16 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; + // // Description: Thread local state for the TextEditor. // namespace System.Windows.Documents { - using System.Collections; - using System.Collections.Specialized; - using System.Diagnostics; - // Thread local state for the TextEditor. internal class TextEditorThreadLocalStore { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorTyping.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorTyping.cs index 5084564a256..4e230ede6dd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorTyping.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorTyping.cs @@ -2,34 +2,25 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.Interop; +using System.Collections; // ArrayList +using System.Runtime.InteropServices; + +using System.Windows.Threading; +using System.Windows.Input; +using System.Windows.Controls; // ScrollChangedEventArgs +using System.Windows.Interop; +using MS.Win32; +using MS.Internal.Documents; +using MS.Internal.Commands; // CommandHelpers + // // Description: Text editing service for controls. // namespace System.Windows.Documents { - using MS.Internal; - using MS.Internal.Interop; - using System.Globalization; - using System.Threading; - using System.ComponentModel; - using System.Text; - using System.Collections; // ArrayList - using System.Runtime.InteropServices; - - using System.Windows.Threading; - using System.Windows.Input; - using System.Windows.Controls; // ScrollChangedEventArgs - using System.Windows.Controls.Primitives; // CharacterCasing, TextBoxBase - using System.Windows.Media; - using System.Windows.Markup; - using System.Security; - using System.Windows.Interop; - using MS.Utility; - using MS.Win32; - using MS.Internal.Documents; - using MS.Internal.Commands; // CommandHelpers - /// /// Subcomponent of TextEditor class - Support for Typing /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEffectResolver.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEffectResolver.cs index 5fb5eaffe54..0dc9fc1bff2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEffectResolver.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEffectResolver.cs @@ -6,16 +6,12 @@ // Description: Text Effect Setter // -using System.Collections.Generic; - -using System.Windows.Controls; -using System.Windows.Documents; using System.Windows.Media; using MS.Internal.Text; namespace System.Windows.Documents -{ +{ /// /// Helper class to help set text effects into the Text container /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElement.cs index fb4171eea01..e81140b3227 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElement.cs @@ -11,7 +11,6 @@ using System.Collections; using System.ComponentModel; -using System.Windows.Controls; using System.Windows.Markup; using System.Windows.Media; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementCollection.cs index 18fdad77226..e6fd5a43dca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementCollection.cs @@ -2,18 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; // IList +using System.Windows.Controls; // TextBlock, ContentControl and AccessText +using MS.Internal; // Invariant + // // Description: Generic type for TextElement collections // namespace System.Windows.Documents { - using System.Collections; // IList - using System.Collections.Generic; // ICollection - using System.Windows.Controls; // TextBlock, ContentControl and AccessText - using MS.Internal; // Invariant - using MS.Internal.Documents; // FlowDocumentView - /// /// public class TextElementCollection : IList, ICollection where TextElementType : TextElement diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementEditingBehaviorAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementEditingBehaviorAttribute.cs index ad3c1d55577..e028fab2d2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementEditingBehaviorAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementEditingBehaviorAttribute.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementEnumerator.cs index 901b4bf35fa..24cb9e82943 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextElementEnumerator.cs @@ -7,13 +7,7 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; using MS.Internal; -using System.Text; -using MS.Utility; -using System.Windows.Controls; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextFindEngine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextFindEngine.cs index ee742ec5f32..5a160a65444 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextFindEngine.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextFindEngine.cs @@ -10,16 +10,8 @@ // using MS.Internal; -using MS.Utility; using MS.Win32; - -using System; -using System.Collections; -using System.Diagnostics; using System.Globalization; -using System.Security; -using System.Text; -using System.Windows; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextMapOffsetErrorLogger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextMapOffsetErrorLogger.cs index bc6e922aa9a..67092fc1712 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextMapOffsetErrorLogger.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextMapOffsetErrorLogger.cs @@ -10,7 +10,6 @@ // respect to user opt-in for CEIP. // -using MS.Internal.Telemetry; using System.Collections; using System.Diagnostics.Tracing; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextParentUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextParentUndoUnit.cs index a4dd42a7af2..072b0d8d825 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextParentUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextParentUndoUnit.cs @@ -8,17 +8,6 @@ // See spec at Undo spec.htm // -using System; -using MS.Internal; -using System.Windows.Input; -using System.Windows.Controls; -using System.Windows.Documents.Internal; -using System.Windows.Threading; -using System.ComponentModel; -using System.Windows.Media; -using System.Windows.Markup; -using System.Text; -using MS.Utility; using MS.Internal.Documents; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextPointer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextPointer.cs index 9fdc81aa671..df3402f0edb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextPointer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextPointer.cs @@ -6,12 +6,7 @@ // Description: TextPointer object representing a location in formatted text. // -using System; using MS.Internal; -using System.Threading; -using System.Windows; -using System.Windows.Media; -using System.Collections; using System.Windows.Controls; // doc comments namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextPointerBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextPointerBase.cs index 8d335bf8383..781e24ed1db 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextPointerBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextPointerBase.cs @@ -2,19 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.Documents; +using System.Globalization; +using System.Windows.Media; // Matrix + // // Description: ITextPointer helper methods. // namespace System.Windows.Documents { - using System; - using MS.Internal; - using MS.Internal.Documents; - using System.Globalization; - using System.Windows.Media; // Matrix - using System.Windows.Controls; // TextBlock - // ITextPointer helper methods. internal static class TextPointerBase { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRange.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRange.cs index 24773446287..455c0441d07 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRange.cs @@ -7,9 +7,6 @@ // using MS.Internal; -using System.Collections.Generic; -using System.Windows.Threading; -using System.Globalization; using System.Xml; using System.IO; using System.Windows.Markup; // Parser diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeBase.cs index 3e77598f6d1..6bb2b812d96 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeBase.cs @@ -2,6 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Collections; +using System.Globalization; +using System.Text; +using System.Xml; +using System.IO; +using System.Windows.Controls; // TextBlock + // // Description: Provides an abstract level of TextRange implementation // Implemented as a static class containing a set of methods @@ -23,17 +31,6 @@ namespace System.Windows.Documents { - using MS.Internal; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Globalization; - using System.Text; - using System.Xml; - using System.IO; - using MS.Internal.Documents; - using System.Windows.Controls; // TextBlock - /// /// A class a portion of text content. /// Can be contigous or disjoint; supports rectangular table ranges. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEdit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEdit.cs index 91e798f9f3c..f562d3361fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEdit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEdit.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS restrictions to obtain TextIndent valid value range. + // // Description: Static internal class providing a set of // helpoer methods for text editing operations @@ -9,11 +12,6 @@ namespace System.Windows.Documents { - using System; - using MS.Internal; - using System.Windows.Controls; - using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS restrictions to obtain TextIndent valid value range. - /// /// The TextRange class represents a pair of TextPositions, with many /// rich text editing operations exposed. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditLists.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditLists.cs index 8f362a6e6d6..4e845e850d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditLists.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditLists.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; + // // Description: Internal static class representing a group of methods // for list editing @@ -9,10 +11,6 @@ namespace System.Windows.Documents { - using System; - using MS.Internal; - using System.Windows.Controls; - /// /// The TextRange class represents a pair of TextPositions, with many /// rich text editing operations exposed. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditTables.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditTables.cs index 79b3d789263..1314710ed97 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditTables.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditTables.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using MS.Internal.Documents; +using System.Windows.Documents.Internal; // ColumnResizeAdorner + // // Description: Internal static class representing a group of methods // for list editing @@ -9,12 +13,6 @@ namespace System.Windows.Documents { - using System; - using MS.Internal; - using MS.Internal.Documents; - using System.Collections.Generic; - using System.Windows.Documents.Internal; // ColumnResizeAdorner - /// /// Internal static class representing a group of methods for table editing /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeSerialization.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeSerialization.cs index c5ca982a0db..33cec3afdd2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeSerialization.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeSerialization.cs @@ -2,24 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Xml; +using System.Windows.Markup; // TypeConvertContext, ParserContext +using System.Windows.Controls; +using System.Globalization; + // // Description: Set of static methods implementing text range serialization // namespace System.Windows.Documents { - using MS.Internal; - using System.Text; - using System.Xml; - using System.IO; - using System.Windows.Markup; // TypeConvertContext, ParserContext - using System.Windows.Controls; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Globalization; - using System.Security; - /// /// TextRangeSerialization is a static class containing /// an implementation for TextRange serialization functionality. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSchema.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSchema.cs index 077a11fdc01..13c36c23cc2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSchema.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSchema.cs @@ -2,17 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Windows.Controls; // TextBox, TextBlock +using System.Windows.Media; // Brush + // // Description: A static class providing information about text content schema // namespace System.Windows.Documents { - using MS.Internal; - using System.Collections.Generic; - using System.Windows.Controls; // TextBox, TextBlock - using System.Windows.Media; // Brush - /// /// Provides an information about text structure schema. /// The schema is used in editing operations for maintaining diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSegment.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSegment.cs index 565b212e5e6..fac40dad1cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSegment.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSegment.cs @@ -2,15 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; + // // Description: A pair of TextPositions used to denote a run of TextContainer content. // namespace System.Windows.Documents { - using MS.Internal; - using System.Collections; - /// /// A pair of TextPositions used to denote a run of TextContainer content. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs index dfbe236adf6..4729eef70af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs @@ -2,25 +2,22 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; +using System.Globalization; +using System.Windows.Controls.Primitives; // TextBoxBase +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Threading; +using System.IO; +using MS.Win32; +using System.Windows.Controls; + // // Description: Holds and manipulates the text selection state for TextEditor. // namespace System.Windows.Documents { - using MS.Internal; - using System.Collections.Generic; - using System.Globalization; - using System.Windows.Controls.Primitives; // TextBoxBase - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Threading; - using System.Threading; - using System.Security; - using System.IO; - using MS.Win32; - using System.Windows.Controls; - /// /// The TextSelection class encapsulates selection state for the RichTextBox /// control. It has no public constructor, but is exposed via a public diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelectionHighlightLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelectionHighlightLayer.cs index bfdc95f7d39..1ff77f8548b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelectionHighlightLayer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelectionHighlightLayer.cs @@ -6,10 +6,8 @@ // Description: Highlight rendering for the TextSelection. // -using System; using MS.Internal; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesDisplayAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesDisplayAttribute.cs index aa672b97a00..f7cb40fa7d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesDisplayAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesDisplayAttribute.cs @@ -6,19 +6,10 @@ // Description: TextServicesDisplayAttribute // -using System.Runtime.InteropServices; -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; using System.Windows.Media; -using System.Windows.Input; -using System.Windows.Documents; using MS.Win32; using MS.Internal; -using System; - namespace System.Windows.Documents { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesDisplayAttributePropertyRanges.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesDisplayAttributePropertyRanges.cs index 4ea86c7aa77..0f33d489085 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesDisplayAttributePropertyRanges.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesDisplayAttributePropertyRanges.cs @@ -3,15 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Security; using System.Collections; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Input; -using System.Windows.Documents; using MS.Win32; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesHost.cs index 8ff2f18e88d..331747a924e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesHost.cs @@ -6,19 +6,11 @@ // Description: TextServicesHost implementation. // -using System; using System.Runtime.InteropServices; using System.Windows.Threading; using System.Threading; -using System.Collections; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Input; -using System.Windows.Documents; using MS.Win32; using MS.Internal; -using MS.Internal.PresentationFramework; // SecurityHelper -using System.Security; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesProperty.cs index 54cfdf56bf7..13cc392490a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesProperty.cs @@ -6,19 +6,8 @@ // Description: TextServicesProperty implementation. // -using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Security; - -using System.Collections; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Input; -using System.Windows.Documents; using MS.Win32; -using System; - namespace System.Windows.Documents { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesPropertyRanges.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesPropertyRanges.cs index ab7fb6a7d1b..64eeeb0793a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesPropertyRanges.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextServicesPropertyRanges.cs @@ -3,16 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Windows.Threading; -using System.Security; - -using System.Collections; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Input; -using System.Windows.Documents; using MS.Win32; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs index b2b7bb43580..0e8e7b0257c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs @@ -7,31 +7,20 @@ // -using System; using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; using System.Windows.Threading; using System.Threading; using System.Globalization; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.IO; using MS.Internal; -using System.Windows.Controls; using System.Windows.Markup; // for XmlLanguage using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Windows.Input; using System.Windows.Interop; -using System.Windows.Documents; using MS.Internal.Documents; -using System.Security; using MS.Win32; -using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; - namespace System.Windows.Documents { // The TextStore class is a managed implementation of a Text Services diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDeleteContentUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDeleteContentUndoUnit.cs index d1fbcd7c4c5..c1870186919 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDeleteContentUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDeleteContentUndoUnit.cs @@ -7,12 +7,10 @@ // using MS.Internal; -using System; using System.IO; using System.Windows.Controls; using System.Windows.Markup; using System.Xml; -using System.Security; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDumper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDumper.cs index b1ee0f60b8b..7ebdc459724 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDumper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDumper.cs @@ -6,9 +6,6 @@ // Description: Debug-only helper class, dumps TextContainer state to debugger. // -using System; -using System.Diagnostics; - namespace System.Windows.Documents { #if DEBUG diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeExtractElementUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeExtractElementUndoUnit.cs index 6be7a54f6d8..f2af94a5864 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeExtractElementUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeExtractElementUndoUnit.cs @@ -6,9 +6,6 @@ // Description: Undo unit for TextContainer.ExtractElement calls. // -using System; -using MS.Internal; - namespace System.Windows.Documents { // Undo unit for TextContainer.ExtractElement calls. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeFixupNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeFixupNode.cs index 76f3a87702f..49dfd58c899 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeFixupNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeFixupNode.cs @@ -6,7 +6,6 @@ // Description: A special TextContainer node used to parent deleted nodes. // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeInsertElementUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeInsertElementUndoUnit.cs index 5c855f3455d..a19ce0e535a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeInsertElementUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeInsertElementUndoUnit.cs @@ -6,7 +6,6 @@ // Description: Undo unit for TextContainer.InsertElement calls. // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeInsertUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeInsertUndoUnit.cs index 31aefd1f631..4c198170bbc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeInsertUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeInsertUndoUnit.cs @@ -6,7 +6,6 @@ // Description: Undo unit for TextContainer.InsertText and InsertEmbeddedObject calls. // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeNode.cs index 7b669b3cda8..dab9e6d5a4f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeNode.cs @@ -7,7 +7,6 @@ // // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeObjectNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeObjectNode.cs index 512e6b35403..825f4051476 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeObjectNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeObjectNode.cs @@ -6,7 +6,6 @@ // Description: A TextContainer node representing a UIElement. // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreePropertyUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreePropertyUndoUnit.cs index 0f2f21278ff..a00926b1372 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreePropertyUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreePropertyUndoUnit.cs @@ -6,7 +6,6 @@ // Description: Undo unit for TextContainer.SetValue, etc. calls. // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeRootNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeRootNode.cs index 742617339d0..d09b708e6e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeRootNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeRootNode.cs @@ -6,9 +6,7 @@ // Description: The root node of a TextContainer. // -using System; using MS.Internal; -using System.Collections; using System.Windows.Threading; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeRootTextBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeRootTextBlock.cs index 4437eca6629..dd82e39d4e7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeRootTextBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeRootTextBlock.cs @@ -6,9 +6,7 @@ // Description: The root node of a TextBlock splay tree. // -using System; using MS.Internal; -using System.Collections; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeText.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeText.cs index b63276cb0e8..5bb79d6161d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeText.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeText.cs @@ -7,8 +7,6 @@ // Description: A static class that manipulates an array TextTreeTextBlocks. // -using System; -using System.Collections; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextBlock.cs index ceebc9f8d2b..c1f63166e0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextBlock.cs @@ -7,7 +7,6 @@ // // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextElementNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextElementNode.cs index a1c323cc7ae..3834e8d77a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextElementNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextElementNode.cs @@ -6,7 +6,6 @@ // Description: A TextContainer node representing a TextElement. // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextNode.cs index 47e654e1457..e0ca96eb4fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextNode.cs @@ -6,7 +6,6 @@ // Description: A TextContainer node representing a run of text. // -using System; using MS.Internal; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeUndoUnit.cs index 789bd33802e..92e3878cf71 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeUndoUnit.cs @@ -6,10 +6,8 @@ // Description: Base class for all TextContainer undo units. // -using System; using MS.Internal; using MS.Internal.Documents; -using System.Windows.Data; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Tracing/SpellerCOMActionTraceLogger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Tracing/SpellerCOMActionTraceLogger.cs index 03a3ae2cbf6..f5bfed336f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Tracing/SpellerCOMActionTraceLogger.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Tracing/SpellerCOMActionTraceLogger.cs @@ -11,8 +11,6 @@ // using MS.Internal; -using MS.Internal.Telemetry; -using System.Collections.Generic; using System.Diagnostics.Tracing; namespace System.Windows.Documents.Tracing diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Typography.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Typography.cs index 20a41d61c60..129dd2e4454 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Typography.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Typography.cs @@ -7,20 +7,7 @@ // Text, FlowDocument, TextRange // -using System.Windows.Threading; - -using System.Collections; -using System.Diagnostics; -using System.Windows; -using System.Windows.Media; -using System.Windows.Documents; -using System.Windows.Controls; -using System.ComponentModel; - using MS.Internal.Text; -using MS.Utility; - -using System; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/UIElementPropertyUndoUnit.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/UIElementPropertyUndoUnit.cs index 64964911674..c4539d49b2f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/UIElementPropertyUndoUnit.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/UIElementPropertyUndoUnit.cs @@ -9,8 +9,6 @@ // 2. HorizontalAlignmentProperty sets on UIElement child of BlockUIContainer. // -using System; -using System.Windows; using MS.Internal; using MS.Internal.Documents; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ValidationHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ValidationHelper.cs index 6eba3913fc9..8b59878e1d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ValidationHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ValidationHelper.cs @@ -2,17 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; // Invariant.Assert +using System.ComponentModel; + // // Description: Helpers for TOM parameter validation. // namespace System.Windows.Documents { - using MS.Internal; // Invariant.Assert - using System.ComponentModel; - using System.Windows; - using System.Windows.Media; - internal static class ValidationHelper { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinEventHandler.cs index 1a34ad9cce7..451094ddaa1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinEventHandler.cs @@ -6,13 +6,7 @@ // Description: WinEventHandler implementation. // -using System; -using System.Collections; using System.Runtime.InteropServices; -using System.ComponentModel; -using System.Diagnostics; -using System.Security; -using System.Windows.Threading; using MS.Win32; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinRTSpellerInterop.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinRTSpellerInterop.cs index b4c6f08f650..1804c56c48c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinRTSpellerInterop.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinRTSpellerInterop.cs @@ -2,6 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal.WindowsRuntime.Windows.Data.Text; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Runtime.InteropServices; +using System.Security; +using System.Text.RegularExpressions; +using System.Threading; +using System.Windows.Controls; +using System.Windows.Documents.Tracing; +using System.Windows.Input; +using System.Windows.Threading; + +using System.Windows.Documents.MsSpellCheckLib; + // // Description: Custom COM marshalling code and interfaces for interaction // with the WinRT wordbreaker API and ISpellChecker @@ -10,29 +25,6 @@ namespace System.Windows.Documents { - using MS.Internal; - using MS.Internal.WindowsRuntime.Windows.Data.Text; - - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.IO; - using System.Runtime.InteropServices; - using System.Runtime.CompilerServices; - using System.Security; - using System.Text.RegularExpressions; - using System.Threading; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Documents.Tracing; - using System.Windows.Input; - using System.Windows.Threading; - - using System.Windows.Documents.MsSpellCheckLib; - internal partial class WinRTSpellerInterop: SpellerInteropBase { #region Constructors diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinRTSpellerInteropExtensions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinRTSpellerInteropExtensions.cs index 75f4eab8339..847c9b91810 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinRTSpellerInteropExtensions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WinRTSpellerInteropExtensions.cs @@ -3,10 +3,8 @@ // See the LICENSE file in the project root for more information. using MS.Internal.WindowsRuntime.Windows.Data.Text; -using System.Collections.Generic; using System.Windows.Documents.MsSpellCheckLib; -using System.Windows.Documents.Tracing; using static System.Windows.Documents.WinRTSpellerInterop; namespace System.Windows.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WpfPayload.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WpfPayload.cs index 15a1bf77365..68380a1e1f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WpfPayload.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WpfPayload.cs @@ -2,6 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Internal; // Invariant +using MS.Internal.IO.Packaging; +using System.Xml; +using System.Windows.Markup; // TypeConvertContext, ParserContext +using System.Windows.Controls; // Image +using System.Globalization; // CultureInfo + +using System.Windows.Media; // ImageSource +using System.Windows.Media.Imaging; // BitmapEncoder +using System.IO; // MemoryStream +using System.IO.Packaging; // Package +using System.Threading; // Interlocked.Increment + // // Description: Helper class for creating and accessing WPF Payloads in packages // This file contains the definition and implementation @@ -20,25 +33,6 @@ namespace System.Windows.Documents { - using MS.Internal; // Invariant - using MS.Internal.IO.Packaging; - using System; - using System.Xml; - using System.Windows.Markup; // TypeConvertContext, ParserContext - using System.Windows.Controls; // Image - using System.Collections.Generic; // List - using System.ComponentModel; // TYpeDescriptor - using System.Globalization; // CultureInfo - - using System.Windows.Media; // ImageSource - using System.Windows.Media.Imaging; // BitmapEncoder - using System.IO; // MemoryStream - using System.IO.Packaging; // Package - using System.Threading; // Interlocked.Increment - using System.Security; // SecurityCritical, SecurityTreatAsSafe attributes - using MS.Internal.PresentationFramework; // SecurityHelper - - using InternalPackUriHelper = MS.Internal.IO.Packaging.PackUriHelper; // An object supporting flow content packaging with images and other resources. /// /// WpfPayload is a class providing services for creating, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XPSS0ValidatingLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XPSS0ValidatingLoader.cs index ba880c87dfb..c2b3b4e1425 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XPSS0ValidatingLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XPSS0ValidatingLoader.cs @@ -4,19 +4,11 @@ #region Using directives -using System; using System.Collections; -using System.Collections.Generic; -using System.Text; using System.Windows.Markup; using System.Xml; using System.IO; using System.IO.Packaging; -using System.Xml.Schema; -using System.Net; -using System.Resources; -using System.Reflection; -using System.Security; using MS.Internal; using MS.Internal.IO.Packaging; @@ -27,7 +19,6 @@ using Package = System.IO.Packaging.Package; using PackageRelationship = System.IO.Packaging.PackageRelationship; using PackUriHelper = System.IO.Packaging.PackUriHelper; -using InternalPackUriHelper = MS.Internal.IO.Packaging.PackUriHelper; namespace System.Windows.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlRtfConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlRtfConverter.cs index de659515395..a37fa9a238b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlRtfConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlRtfConverter.cs @@ -6,9 +6,6 @@ // Description: Xaml-Rtf Converter. // -using System.IO; -using System.Text; - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlToRtfWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlToRtfWriter.cs index a489eb12287..039ffcf8f83 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlToRtfWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlToRtfWriter.cs @@ -7,7 +7,6 @@ // using System.Collections; -using System.Diagnostics; using System.Text; using System.Windows.Media; // Color using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ZoomPercentageConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ZoomPercentageConverter.cs index c7b54ec5ecd..07a21fc4e79 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ZoomPercentageConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ZoomPercentageConverter.cs @@ -10,16 +10,15 @@ // Used to support the warnings disabled below #pragma warning disable 1634, 1691 -using System; using System.Globalization; using System.Windows.Data; namespace System.Windows.Documents { -/// -/// ValueConverter for DocumentViewer's ZoomPercentage property -/// -public sealed class ZoomPercentageConverter : IValueConverter + /// + /// ValueConverter for DocumentViewer's ZoomPercentage property + /// + public sealed class ZoomPercentageConverter : IValueConverter { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DynamicResourceExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DynamicResourceExtension.cs index cb680b41681..14af08528c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DynamicResourceExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DynamicResourceExtension.cs @@ -9,11 +9,8 @@ * * \***************************************************************************/ -using System; using System.ComponentModel; -using System.Windows; using System.Windows.Markup; -using System.Reflection; using MS.Internal; // Helper namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DynamicResourceExtensionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DynamicResourceExtensionConverter.cs index f055e49bbf7..ae55908ecff 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DynamicResourceExtensionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/DynamicResourceExtensionConverter.cs @@ -10,12 +10,8 @@ // // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Collections; -using System.Security; -using System.Text; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventSetter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventSetter.cs index 8e158f21946..d1a23747257 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventSetter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventSetter.cs @@ -9,7 +9,6 @@ * * \***************************************************************************/ -using System; using System.ComponentModel; // EditorBrowsableAttribute namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventSetterHandlerConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventSetterHandlerConverter.cs index 7649f7339e9..f94a3693064 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventSetterHandlerConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventSetterHandlerConverter.cs @@ -6,9 +6,6 @@ using System.ComponentModel; using System.Globalization; using System.Reflection; - -using System.Windows; -using System.Collections.Generic; using System.Xaml; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventTrigger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventTrigger.cs index 7a72fc34809..c4be64fcfd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventTrigger.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventTrigger.cs @@ -10,10 +10,7 @@ * * \***************************************************************************/ -using System.Collections; -using System.Diagnostics; using System.Windows.Markup; -using System.Collections.Specialized; using System.ComponentModel; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FigureLength.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FigureLength.cs index df6f8df001d..498c6ade451 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FigureLength.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FigureLength.cs @@ -10,7 +10,6 @@ // // -using MS.Internal; using System.ComponentModel; using System.Globalization; using MS.Internal.PtsHost.UnsafeNativeMethods; // PTS restrictions diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FigureLengthConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FigureLengthConverter.cs index 43c885c15a8..b7b2a30cd5a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FigureLengthConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FigureLengthConverter.cs @@ -9,14 +9,8 @@ // // -using MS.Internal; -using MS.Utility; using System.ComponentModel; -using System.Windows; -using System; -using System.Security; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FluentThemeState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FluentThemeState.cs index e28a0cd0994..778330708bf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FluentThemeState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FluentThemeState.cs @@ -1,5 +1,3 @@ -using System; -using System.Windows; using System.Windows.Media; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FontSizeConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FontSizeConverter.cs index c685cca0781..b1328caa9e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FontSizeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FontSizeConverter.cs @@ -7,22 +7,10 @@ // // Description: Converter for FontSize to Double // -using System; -using System.IO; -using System.Diagnostics; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Reflection; // for ConstructorInfo using System.Globalization; // for CultureInfo -using MS.Utility; // For ExceptionStringTable -using System.Windows.Media; // for Typeface -using System.Windows.Controls; // for ReadingPanel -using System.Windows.Documents; -using System.Windows.Markup; -using MS.Internal; -using MS.Internal.Text; -using MS.Internal.Documents; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkCompatibilityPreferences.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkCompatibilityPreferences.cs index 03a71179e9b..a5eff982682 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkCompatibilityPreferences.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkCompatibilityPreferences.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Specialized; // NameValueCollection using System.Configuration; // ConfigurationManager -using System.Runtime.Versioning; -using MS.Internal; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs index 7e32c120d79..e1bc3b3ce63 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs @@ -2,33 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows.Threading; -using System.Threading; - using System.Windows.Controls; using System.Windows.Data; using System.Windows.Diagnostics; -using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; -using System.Windows.Media.TextFormatting; using System.Windows.Markup; #if DEBUG -using System.Reflection; #endif -using MS.Internal.Text; using MS.Internal; using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContextData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContextData.cs index 089b17d7f2b..21666023bff 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContextData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContextData.cs @@ -5,12 +5,6 @@ using System.Windows.Threading; -using MS.Utility; - -using System; -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows { internal class FrameworkContextData diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs index d29ba997760..4298c27703b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Threading; -using System.Threading; -using System.Reflection; using System.Windows.Data; using System.Windows.Diagnostics; using System.Windows.Documents; @@ -20,19 +14,14 @@ using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Media3D; -using System.Windows.Media.TextFormatting; using System.Windows.Navigation; using System.Windows.Markup; using System.Windows.Controls; -using System.Windows.Automation; using MS.Internal; using MS.Internal.KnownBoxes; using MS.Internal.PresentationFramework; // SafeSecurityHelper using MS.Utility; -using MS.Internal.Automation; -using MS.Internal.PtsTable; // BodyContainerProxy -using System.Security; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElementFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElementFactory.cs index 976192d48a5..4ec233c2e91 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElementFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElementFactory.cs @@ -2,21 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Reflection; -using System.Windows.Threading; using System.Threading; using System.Windows.Baml2006; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Documents; using System.Collections; // For ArrayList -using System.Collections.Generic; using System.Collections.Specialized; // HybridDictionary -using System.Diagnostics; // For Debug.Assert using System.Globalization; using System.Windows.Media.Media3D; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkPropertyMetadata.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkPropertyMetadata.cs index 6958326b22f..fcbe8a25f16 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkPropertyMetadata.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkPropertyMetadata.cs @@ -5,8 +5,6 @@ // // -using MS.Utility; -using System; using System.ComponentModel; // InvalidEnumArgumentException using System.Windows.Data; // UpdateSourceTrigger diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkReadOnlyPropertyMetadata.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkReadOnlyPropertyMetadata.cs index 61562cba7be..bb4da5e2369 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkReadOnlyPropertyMetadata.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkReadOnlyPropertyMetadata.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { internal class ReadOnlyFrameworkPropertyMetadata : FrameworkPropertyMetadata diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkTemplate.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkTemplate.cs index f442907fc29..05e38ce055f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkTemplate.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkTemplate.cs @@ -13,22 +13,13 @@ using MS.Utility; // ChildValueLookupList using System.ComponentModel; // DesignerSerializationVisibility, DefaultValueAttribute using System.Collections; // Hashtable -using System.Collections.Generic; // List using System.Collections.Specialized; // HybridDictionary -using System.Diagnostics; // Debug using System.Runtime.CompilerServices; // ConditionalWeakTable -using System.Security; // SecurityCriticalAttribute, SecurityTreatAsSafe -using System.Threading; // Interlocked -using System.Windows.Media.Animation; // Timeline using System.Windows.Markup; // XamlTemplateSerializer, ContentPropertyAttribute using System.Windows.Diagnostics; -using System.Windows.Media; -using System.Windows.Controls; -using System.Windows.Documents; using System.Windows.Threading; // DispatcherObject using System.Xaml; using System.Windows.Data; -using System.Globalization; using MS.Internal.Xaml.Context; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Generated/FrameworkContentElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Generated/FrameworkContentElement.cs index a3ca854d9b0..16ba3ee0c26 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Generated/FrameworkContentElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Generated/FrameworkContentElement.cs @@ -13,18 +13,12 @@ using MS.Internal; using MS.Utility; - -using System; using System.Collections; -using System.Diagnostics; -using System.Security; using System.Windows.Controls; using System.Windows.Diagnostics; using System.Windows.Media; using System.Windows.Markup; -using SR=System.Windows.SR; - namespace System.Windows { [RuntimeNamePropertyAttribute("Name")] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Generated/FrameworkElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Generated/FrameworkElement.cs index 9a032c9aaff..3b682b33bf8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Generated/FrameworkElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Generated/FrameworkElement.cs @@ -13,18 +13,12 @@ using MS.Internal; using MS.Utility; - -using System; using System.Collections; -using System.Diagnostics; -using System.Security; using System.Windows.Controls; using System.Windows.Diagnostics; using System.Windows.Media; using System.Windows.Markup; -using SR=System.Windows.SR; - namespace System.Windows { [RuntimeNamePropertyAttribute("Name")] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/GridLength.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/GridLength.cs index c1b72776bea..d542d988a43 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/GridLength.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/GridLength.cs @@ -11,7 +11,6 @@ // // -using MS.Internal; using System.ComponentModel; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/GridLengthConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/GridLengthConverter.cs index ff36002f4b1..37e70a2eeb6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/GridLengthConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/GridLengthConverter.cs @@ -12,13 +12,8 @@ // using MS.Internal; -using MS.Utility; using System.ComponentModel; -using System.Windows; -using System; -using System.Security; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/IFrameworkInputElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/IFrameworkInputElement.cs index 484f84120a0..b9c8afc4d51 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/IFrameworkInputElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/IFrameworkInputElement.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Windows.Input; - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/IWindowService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/IWindowService.cs index a4a2abbd7d7..6f4d38451bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/IWindowService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/IWindowService.cs @@ -8,17 +8,8 @@ // // -using System; -using System.ComponentModel; - -using System.Windows; -using System.Windows.Controls.Primitives; - -using System.Windows.Navigation; -using System.Windows.Media; - -namespace System.Windows -{ +namespace System.Windows +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/InheritablePropertyChangeInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/InheritablePropertyChangeInfo.cs index 5593d20b70e..9c10a6931e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/InheritablePropertyChangeInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/InheritablePropertyChangeInfo.cs @@ -11,8 +11,6 @@ // // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Ink/EditingMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Ink/EditingMode.cs index 3093f1988f5..9e851568dc0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Ink/EditingMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Ink/EditingMode.cs @@ -7,10 +7,8 @@ // Defines InkCanvasEditingMode for InkCanvas // -using System; - namespace System.Windows.Controls -{ +{ /// /// Defines the InkCanvasEditingMode for the InkEditor /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Ink/Events.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Ink/Events.cs index f31357505da..596c5f63b8c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Ink/Events.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Ink/Events.cs @@ -7,17 +7,10 @@ // Defined our Delegates, EventHandlers and EventArgs // -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Windows; -using System.Windows.Media; -using System.Windows.Documents; using System.Windows.Ink; using Swi = System.Windows.Ink; -using MS.Utility; namespace System.Windows.Controls { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/Command/CommandConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/Command/CommandConverter.cs index 5042a12fec0..68ee34a2471 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/Command/CommandConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/Command/CommandConverter.cs @@ -8,18 +8,13 @@ // For type converter spec please reference typeconverter.asp // -using System; using System.ComponentModel; // for TypeConverter using System.Globalization; // for CultureInfo using System.Reflection; -using MS.Utility; -using MS.Internal; -using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Markup; using System.Windows.Documents; // EditingCommands -using System.ComponentModel.Design.Serialization; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/Command/CommandValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/Command/CommandValueSerializer.cs index c42cf895110..74cb6a5695b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/Command/CommandValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/Command/CommandValueSerializer.cs @@ -2,19 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Markup; +using System.Reflection; + // // Contents: ValueSerializer for the ICommand interface // namespace System.Windows.Input { - using System; - using System.Collections.Generic; - using System.Text; - using System.Windows.Markup; - using System.Windows.Documents; // EditingCommands - using System.Reflection; - internal class CommandValueSerializer : ValueSerializer { public override bool CanConvertToString(object value, IValueSerializerContext context) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs index d36fe70a151..01898f6d6c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs @@ -3,28 +3,18 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Diagnostics; using System.Windows.Threading; -using System.Threading; -using System.Windows; using System.Windows.Documents; using System.Windows.Interop; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Media3D; -using System.Security; -using MS.Utility; -using MS.Internal.Controls; using MS.Internal; using MS.Internal.KnownBoxes; -using Microsoft.Win32; -using CommonDependencyProperty=MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; +using CommonDependencyProperty = MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs index 1d15cd774f3..c66b388311c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs @@ -21,26 +21,16 @@ // The classid of the ActiveX control is specified in the constructor. // -using System; using System.Collections; using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Threading; - -using System.Windows; -using System.Windows.Interop; using System.Windows.Controls; using System.Windows.Input; -using System.Windows.Markup; using MS.Internal; using MS.Internal.Controls; -using MS.Internal.Utility; using MS.Win32; -using System.Security; // Since we disable PreSharp warnings in this file, PreSharp warning is unknown to C# compiler. // We first need to disable warnings about unknown message numbers and unknown pragmas. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/HwndHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/HwndHost.cs index a9f204d6a49..9a8de538afd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/HwndHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/HwndHost.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Windows.Automation.Peers; using System.Windows.Automation.Provider; using System.Windows.Input; @@ -11,13 +9,9 @@ using MS.Win32; using MS.Internal; using MS.Internal.Interop; -using System.Security; -using Microsoft.Win32; using System.Windows.Media; -using System.Windows.Interop; using System.Runtime.InteropServices; using System.Windows.Threading; -using System.Diagnostics.CodeAnalysis; // Disable pragma warnings to enable PREsharp pragmas #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/IErrorPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/IErrorPage.cs index cb09e0104e1..70b891d507f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/IErrorPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/IErrorPage.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows.Threading; namespace System.Windows.Interop diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/IProgressPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/IProgressPage.cs index c75e4898e95..9630a17d3a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/IProgressPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/IProgressPage.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows.Threading; namespace System.Windows.Interop diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/WindowInteropHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/WindowInteropHelper.cs index 2e20bf02879..4cfd2bafead 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/WindowInteropHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/WindowInteropHelper.cs @@ -8,13 +8,7 @@ // -using System; -using System.Windows; -using System.Windows.Interop; -using System.Security; -using System.Diagnostics; using MS.Internal; -using MS.Win32; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LengthConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LengthConverter.cs index f4e560809cd..4055e6d6535 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LengthConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LengthConverter.cs @@ -9,18 +9,12 @@ // // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Runtime.CompilerServices; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Windows; -using System.Windows.Markup; -using System.Security; using MS.Internal; -using MS.Utility; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Localization.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Localization.cs index 92204d43baa..f8ba0429db0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Localization.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Localization.cs @@ -9,8 +9,6 @@ // // -using System.Collections; -using System.Diagnostics; using System.Runtime.CompilerServices; // ConditionalWeakTable using MS.Internal.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LogicalTreeHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LogicalTreeHelper.cs index a6f9a4ca25f..62050354247 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LogicalTreeHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LogicalTreeHelper.cs @@ -11,22 +11,19 @@ // // -using System; using System.Collections; // In order to use IEnumerator -using System.Diagnostics; -using MS.Utility; // In order to use SR namespace System.Windows { -/* - public delegate bool ParentTraversalCallback(FrameworkElement parentFE, FrameworkContentElement parentFCE, object data); - public delegate bool ChildTraversalCallback(FrameworkElement childFE, FrameworkContentElement childFCE, object child, object data); -*/ - -/// -/// Static helper functions for dealing with the logical tree -/// -public static class LogicalTreeHelper + /* + public delegate bool ParentTraversalCallback(FrameworkElement parentFE, FrameworkContentElement parentFCE, object data); + public delegate bool ChildTraversalCallback(FrameworkElement childFE, FrameworkContentElement childFCE, object child, object data); + */ + + /// + /// Static helper functions for dealing with the logical tree + /// + public static class LogicalTreeHelper { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LostFocusEventManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LostFocusEventManager.cs index 0d74516ee24..576a8344f8c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LostFocusEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/LostFocusEventManager.cs @@ -8,8 +8,6 @@ // pattern. See WeakEventTable.cs for an overview. // -using System; -using System.Windows; // WeakEventManager using MS.Internal; // Helper namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/AttributeData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/AttributeData.cs index cab84c378c9..569ffac077c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/AttributeData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/AttributeData.cs @@ -9,21 +9,6 @@ \***************************************************************************/ using System; -using System.Xml; -using System.Xml.Serialization; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Globalization; -using MS.Utility; -using System.Collections.Specialized; -using Microsoft.Win32; -using System.Runtime.InteropServices; -using MS.Internal; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006KeyRecord.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006KeyRecord.cs index bfda94aa7b3..86ce5951313 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006KeyRecord.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006KeyRecord.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; using System.Xaml; -using System.Windows.Markup; -using System.Diagnostics; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006KnownTypes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006KnownTypes.cs index 8848d13601b..744cc278604 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006KnownTypes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006KnownTypes.cs @@ -21,9 +21,7 @@ using System.Windows.Navigation; using System.Windows.Resources; using System.Windows.Shapes; -using System.Windows; using System.Xaml; -using System; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs index ae97d57b8ff..5bf598028fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs @@ -2,18 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Buffers; -using System.Collections.Generic; using System.IO; using System.Xaml; -using System.Diagnostics; using System.ComponentModel; using System.Reflection; using System.Windows.Diagnostics; -using System.Windows.Media.Media3D; using System.Windows.Media; -using MS.Internal; using System.Globalization; using XamlReaderHelper = System.Windows.Markup.XamlReaderHelper; using System.Runtime.CompilerServices; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderContext.cs index 74d8d8bb996..81215a9eb1a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderContext.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Xaml; using MS.Internal.Xaml.Context; namespace System.Windows.Baml2006 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderFrame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderFrame.cs index 9fc57a467a5..6de85535566 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderFrame.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Xaml; -using System.Diagnostics; using MS.Internal.Xaml.Context; namespace System.Windows.Baml2006 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderInternal.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderInternal.cs index 73b753525c3..3fcb932335a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderInternal.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderInternal.cs @@ -2,19 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.IO; using System.Xaml; -using System.Diagnostics; using System.ComponentModel; using System.Reflection; -using System.Windows.Diagnostics; -using System.Windows.Media.Media3D; -using System.Windows.Media; using MS.Internal; -using System.Globalization; -using XamlReaderHelper = System.Windows.Markup.XamlReaderHelper; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderSettings.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderSettings.cs index 9f18256f766..b17b0f6fcb9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderSettings.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006ReaderSettings.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.IO; using System.Xaml; -using System.Diagnostics; -using System.ComponentModel; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006RecordType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006RecordType.cs index 3ae7c8bafff..6a004fc3a3d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006RecordType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006RecordType.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Baml2006 { internal enum Baml2006RecordType : byte diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006SchemaContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006SchemaContext.cs index 9de8511738d..b95a231f7d5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006SchemaContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006SchemaContext.cs @@ -2,22 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.IO; using System.Reflection; -using System.Diagnostics; using System.Xaml; using System.Xaml.Schema; -using System.ComponentModel; -using System.Reflection.Emit; -using System.Windows.Markup; -using System.Windows.Media.Media3D; -using System.Windows.Media; -using System.Runtime.Serialization; -using KnownTypesV3 = System.Windows.Markup.KnownTypes; -using System.Threading; -using MS.Internal.WindowsBase; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml6Assembly.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml6Assembly.cs index 8926714692c..0e63e403222 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml6Assembly.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml6Assembly.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Reflection; using MS.Internal.WindowsBase; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml6ConstructorInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml6ConstructorInfo.cs index 6b501d64159..5dcd4f3583f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml6ConstructorInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml6ConstructorInfo.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - namespace System.Windows.Baml2006 { struct Baml6ConstructorInfo diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/DeferredBinaryDeserializerExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/DeferredBinaryDeserializerExtension.cs index 123924ca84f..9badaf6a085 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/DeferredBinaryDeserializerExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/DeferredBinaryDeserializerExtension.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; using System.Windows.Markup; using System.IO; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/SharedStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/SharedStream.cs index ba78a7feaa5..ffef40193b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/SharedStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/SharedStream.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.IO; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/ThemeKnownTypeHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/ThemeKnownTypeHelper.cs index 67e53f42d81..527be31840c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/ThemeKnownTypeHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/ThemeKnownTypeHelper.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; using System.Xaml; namespace System.Windows.Baml2006 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/TypeConverterMarkupExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/TypeConverterMarkupExtension.cs index ff02cab7ae2..68c096a4067 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/TypeConverterMarkupExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/TypeConverterMarkupExtension.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; namespace System.Windows.Baml2006 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownProperties.cs index 2fd51dff509..ab6e970a51b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownProperties.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Xaml; -using System.Reflection; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownTypes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownTypes.cs index 0b2c324ad85..35989c58ae1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownTypes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownTypes.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Xaml; using System.Xaml.Schema; -using System.Collections.Generic; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownMember.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownMember.cs index 5bbf44bce4a..e4e5bb17340 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownMember.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownMember.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Reflection; using System.Xaml; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownMemberInvoker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownMemberInvoker.cs index 7cec13f35a0..9c8b0839ded 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownMemberInvoker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownMemberInvoker.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; using System.Xaml.Schema; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownType.cs index edc7d305442..91421760e01 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownType.cs @@ -2,14 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; using System.Reflection; using System.Windows.Markup; using System.Xaml; using System.Xaml.Schema; -using System.Diagnostics; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownTypeInvoker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownTypeInvoker.cs index 5ba67018060..99476982232 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownTypeInvoker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfKnownTypeInvoker.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Xaml; using System.Xaml.Schema; namespace System.Windows.Baml2006 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfMemberInvoker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfMemberInvoker.cs index 110ca27b412..b29fc926e17 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfMemberInvoker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfMemberInvoker.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; using System.Xaml.Schema; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfSharedBamlSchemaContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfSharedBamlSchemaContext.cs index 8851c19b847..1fd94eea054 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfSharedBamlSchemaContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfSharedBamlSchemaContext.cs @@ -2,15 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Xaml; using System.Xaml.Schema; -using System.Diagnostics; -using System.Reflection; -using MS.Internal; namespace System.Windows.Baml2006 { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfSharedXamlSchemaContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfSharedXamlSchemaContext.cs index 74c6a52a165..bd550e79161 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfSharedXamlSchemaContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfSharedXamlSchemaContext.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; using System.Xaml; namespace System.Windows.Baml2006 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfXamlMember.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfXamlMember.cs index 33bd6592724..ce89364e85f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfXamlMember.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfXamlMember.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; using System.Xaml; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfXamlType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfXamlType.cs index 4c314600994..65b5d93b34e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfXamlType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfXamlType.cs @@ -2,12 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Xaml; using System.Xaml.Schema; using System.Collections; -using System.Diagnostics; using System.Reflection; using System.Collections.Concurrent; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlBinaryReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlBinaryReader.cs index d25f5694755..6dd9e06896d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlBinaryReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlBinaryReader.cs @@ -9,7 +9,6 @@ * * \***************************************************************************/ -using System; using System.IO; using System.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlBinaryWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlBinaryWriter.cs index 457570ca387..43a4425a71a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlBinaryWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlBinaryWriter.cs @@ -8,7 +8,6 @@ * \***************************************************************************/ -using System; using System.IO; using System.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlCollectionHolder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlCollectionHolder.cs index f7fc44ab4fb..a18402e095b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlCollectionHolder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlCollectionHolder.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlMapTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlMapTable.cs index f96d6597d40..18316c87680 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlMapTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlMapTable.cs @@ -9,20 +9,12 @@ \***************************************************************************/ using System; -using System.Xml; using System.IO; -using System.Globalization; -using System.Text; using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Runtime.InteropServices; using System.Diagnostics; using System.Reflection; -using MS.Utility; -using MS.Internal; - #if PBTCOMPILER using MS.Internal.Markup; #else diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs index 675f6294527..14a6829033d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs @@ -9,24 +9,14 @@ * \***************************************************************************/ -using System; using System.Xml; using System.IO; -using System.Windows; -using System.Windows.Navigation; using System.Text; using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; using System.ComponentModel; - -using System.Diagnostics; using System.Reflection; -using System.Windows.Threading; using System.Globalization; -using MS.Utility; -using MS.Internal; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordHelper.cs index 46946c6ffa4..925d1a6060a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordHelper.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Diagnostics; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordReader.cs index dc690cadd0c..1a67f73f0b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordReader.cs @@ -9,26 +9,17 @@ * \***************************************************************************/ -using System; using System.Xml; using System.Xml.Serialization; using System.IO; -using System.Text; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Threading; using System.Globalization; using MS.Utility; using MS.Internal; -using System.Runtime.InteropServices; using MS.Internal.Utility; -using System.Windows; using System.Windows.Navigation; -using System.Windows.Documents; -using System.Windows.Controls; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordWriter.cs index 3320dfc83e3..ecfa9fa3884 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordWriter.cs @@ -9,15 +9,12 @@ \***************************************************************************/ using System; -using System.Xml; using System.IO; -using System.Text; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; -using System.Reflection; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecords.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecords.cs index 48e4e0899c7..3fc6a6a7a40 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecords.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecords.cs @@ -9,17 +9,13 @@ \***************************************************************************/ using System; -using System.Xml; using System.IO; -using System.Text; -using System.Collections.Generic; using System.Collections; using System.Globalization; using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Collections.Specialized; -using MS.Internal.IO.Packaging.CompoundFile; #if !PBTCOMPILER using System.Windows; @@ -29,9 +25,7 @@ using MS.Internal.PresentationFramework; // SafeSecurityHelper #endif -using System.Runtime.InteropServices; using MS.Utility; -using MS.Internal; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlVersionHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlVersionHeader.cs index 9bd191991dd..53a6a1f7b77 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlVersionHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlVersionHeader.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.IO; using System.Globalization; using System.Diagnostics; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlWriter.cs index e793b638607..1cd8f15c3ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlWriter.cs @@ -7,23 +7,9 @@ * Purpose: Public api for writing baml records to a stream * \***************************************************************************/ -using System; -using System.Xml; using System.IO; -using System.Windows; -using System.Text; using System.Collections; -using System.ComponentModel; -using MS.Internal.Utility; -using MS.Internal; - -using System.Diagnostics; using System.Reflection; -using System.Windows.Controls; -using System.Windows.Documents; -using System.Windows.Threading; - -using MS.Utility; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/DependencyPropertyConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/DependencyPropertyConverter.cs index 1d76ee3b234..4c9bf5273fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/DependencyPropertyConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/DependencyPropertyConverter.cs @@ -7,20 +7,11 @@ * Class for converting a given DependencyProperty to and from a string * \***************************************************************************/ -using System; using System.ComponentModel; // for TypeConverter using System.Globalization; // for CultureInfo -using System.Reflection; -using MS.Utility; -using MS.Internal; -using System.Windows; -using System.ComponentModel.Design.Serialization; -using System.Windows.Documents; -using System.Diagnostics; using System.Xaml; using System.IO; using System.Windows.Controls; -using System.Collections.Generic; using System.Windows.Baml2006; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/FilteredXmlReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/FilteredXmlReader.cs index b3ebd9a0d15..ad371250bd8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/FilteredXmlReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/FilteredXmlReader.cs @@ -37,15 +37,11 @@ // prefix within this chunk of XML is not allowed. // -using System; // InvalidOperationException -using System.IO; // TextReader using System.Xml; // XmlTextReader -using MS.Utility; // ExceptionStringTable - namespace System.Windows.Markup { -internal class FilteredXmlReader : XmlTextReader + internal class FilteredXmlReader : XmlTextReader { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IHaveResources.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IHaveResources.cs index 5ad23677945..2b688a31f69 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IHaveResources.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IHaveResources.cs @@ -10,11 +10,6 @@ // lookup in the parser stack. // -using System; -using System.Windows; -using System.Reflection; -using System.Globalization; - namespace System.Windows.Markup { internal interface IHaveResources diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IStreamInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IStreamInfo.cs index b7632a23e70..fe02b22e924 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IStreamInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IStreamInfo.cs @@ -9,7 +9,6 @@ // and consumed by the parser\Baml Loader. // -using System; using System.Reflection; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IStyleConnector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IStyleConnector.cs index fef9f89fc5a..89876df9d42 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IStyleConnector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/IStyleConnector.cs @@ -6,9 +6,6 @@ // Description: // Provides methods used internally by the StyleBamlReader // -using System; -using System.Windows; - namespace System.Windows.Markup { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/KnownTypesHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/KnownTypesHelper.cs index 767f8225ef3..77909750578 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/KnownTypesHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/KnownTypesHelper.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. using System; -using System.IO; -using System.Collections.Generic; using System.Reflection; -using System.Diagnostics; // These are the non-generated parts of the KnownTypes and TypeIndexer classes diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizableResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizableResource.cs index dfa69a82ae5..fdd6702bcad 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizableResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizableResource.cs @@ -6,11 +6,6 @@ // Contents: BamlLocalizableResource class, part of Baml Localization API // -using System; -using System.Windows; -using MS.Internal; -using System.Diagnostics; - namespace System.Windows.Markup.Localizer { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizableResourceKey.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizableResourceKey.cs index 3cebf46cdbb..9414aba2e24 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizableResourceKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizableResourceKey.cs @@ -6,8 +6,6 @@ // Description: BamlLocalizableResourceKey class // -using System; - namespace System.Windows.Markup.Localizer { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizationDictionary.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizationDictionary.cs index b8ee63e4e69..ed15bf29f65 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizationDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizationDictionary.cs @@ -6,17 +6,7 @@ // Contents: BamlLocalizationDictionary and BamlLocalizationDictionaryEnumerator // -using System; -using System.IO; -using System.Globalization; -using System.Runtime.InteropServices; using System.Collections; -using System.Collections.Generic; -using System.Windows.Markup; -using System.Diagnostics; -using System.Text; -using System.Windows; -using System.Windows.Input; namespace System.Windows.Markup.Localizer { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizer.cs index 2cb99ea4713..0d5500f2875 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizer.cs @@ -6,16 +6,7 @@ // Contents: BamlLocalizer class, part of Baml Localization API // -using System; using System.IO; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Collections; -using System.Windows.Markup; -using System.Diagnostics; -using System.Text; -using System.Reflection; -using System.Windows; using MS.Internal.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizerErrorNotifyEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizerErrorNotifyEventArgs.cs index d8a19bccb09..ad37023beb9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizerErrorNotifyEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Localizer/BamlLocalizerErrorNotifyEventArgs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Markup.Localizer { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/MarkupExtensionParser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/MarkupExtensionParser.cs index 83affcc2425..b955603bea4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/MarkupExtensionParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/MarkupExtensionParser.cs @@ -3,20 +3,13 @@ // See the LICENSE file in the project root for more information. using System; -using System.Xml; -using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Diagnostics; using System.Reflection; -using System.Threading; using System.Globalization; -using System.Security; using MS.Utility; -using System.Collections.Specialized; -using System.Runtime.InteropServices; using MS.Internal.Xaml.Parser; #if PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserContext.cs index 79e3d3358ef..c798fcf1a2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserContext.cs @@ -11,11 +11,8 @@ using System.Reflection; using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.ComponentModel; using System.Xml; -using MS.Utility; -using System.Diagnostics; using MS.Internal.Xaml.Parser; #if PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserHooks.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserHooks.cs index 8c9e87ebbec..acd501d9672 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserHooks.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserHooks.cs @@ -8,13 +8,6 @@ * \***************************************************************************/ -using System.ComponentModel; - -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System; -using System.Xml; - #if PBTCOMPILER namespace MS.Internal.Markup #else diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserStack.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserStack.cs index ef112050f53..694d59e5669 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserStack.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserStack.cs @@ -8,22 +8,7 @@ * \***************************************************************************/ -using System; -using System.Xml; -using System.Xml.Serialization; -using System.IO; -using System.Text; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Globalization; -using MS.Utility; -using System.Collections.Specialized; -using Microsoft.Win32; -using System.Runtime.InteropServices; -using MS.Internal; #if !PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/ElementMarkupObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/ElementMarkupObject.cs index b085f19df65..91caa0b9c94 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/ElementMarkupObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/ElementMarkupObject.cs @@ -24,23 +24,12 @@ // ElementStringValueProperty // -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; using System.Reflection; -using System.Security; -using System.Text; -using System.Windows; -using System.Windows.Data; -using System.Windows.Markup; -using System.Windows.Documents; - -namespace System.Windows.Markup.Primitives +namespace System.Windows.Markup.Primitives { /// /// An implementation of MarkupObject for DependencyObjects that works also for CLR only objects diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/ExtensionSimplifierMarkupObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/ExtensionSimplifierMarkupObject.cs index 657b8e473cc..31c6654d037 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/ExtensionSimplifierMarkupObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/ExtensionSimplifierMarkupObject.cs @@ -3,14 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Text; -using System.Windows.Markup; -using System.Globalization; namespace System.Windows.Markup.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/FrameworkElementFactoryMarkupObject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/FrameworkElementFactoryMarkupObject.cs index 7b17328963f..d0c384516cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/FrameworkElementFactoryMarkupObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/FrameworkElementFactoryMarkupObject.cs @@ -7,16 +7,10 @@ // FrameworkElementFactory // -using System; using System.ComponentModel; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows; -using System.Windows.Markup; - -using MS.Utility; +using MS.Utility; namespace System.Windows.Markup.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/MarkupWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/MarkupWriter.cs index 9a4b66d7ced..62a20c7e320 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/MarkupWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/MarkupWriter.cs @@ -6,19 +6,12 @@ // Contents: XAML writer // -using System; using System.ComponentModel; using System.Reflection; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; -using System.Windows.Markup; -using MS.Internal; namespace System.Windows.Markup.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ProvideValueServiceProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ProvideValueServiceProvider.cs index 44c85bc8064..fc6bdc92be1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ProvideValueServiceProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ProvideValueServiceProvider.cs @@ -10,10 +10,7 @@ * * \***************************************************************************/ -using System; -using System.Windows; using System.Windows.Media; -using System.Diagnostics; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ReaderContextStackData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ReaderContextStackData.cs index 0ed76331b7b..b258f7ac4e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ReaderContextStackData.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ReaderContextStackData.cs @@ -7,11 +7,6 @@ * * \***************************************************************************/ -using System; -using System.Collections; -using System.Reflection; -using System.Diagnostics; - namespace System.Windows.Markup { // Data maintained on the reader's context stack. The root of the tree is at the bottom diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RestrictiveXamlXmlReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RestrictiveXamlXmlReader.cs index 2ad86375d6e..5a4f7d06160 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RestrictiveXamlXmlReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RestrictiveXamlXmlReader.cs @@ -8,7 +8,6 @@ // using Microsoft.Win32; -using System.Collections.Generic; using System.Xaml; using System.Xml; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RoutedEventConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RoutedEventConverter.cs index 880854623f2..c6b3e02fe1c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RoutedEventConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RoutedEventConverter.cs @@ -5,7 +5,6 @@ using System.Xaml; using System.ComponentModel; using System.Globalization; -using System.Collections.Generic; using System.Runtime.CompilerServices; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RoutedEventValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RoutedEventValueSerializer.cs index 3b973ef10ff..0a0becb7e14 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RoutedEventValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/RoutedEventValueSerializer.cs @@ -6,7 +6,6 @@ // Contents: Value serializer for the RoutedEvent class // -using System.Collections.Generic; using System.Runtime.CompilerServices; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/SetterTriggerConditionValueConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/SetterTriggerConditionValueConverter.cs index 8210fb4c2f5..90f0de3a639 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/SetterTriggerConditionValueConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/SetterTriggerConditionValueConverter.cs @@ -7,19 +7,9 @@ * Class for converting a given value (for Setter/Trigger/Condition) to and from a string * \***************************************************************************/ -using System; using System.ComponentModel; // for TypeConverter using System.Globalization; // for CultureInfo -using System.Reflection; -using MS.Utility; -using MS.Internal; -using System.Windows; -using System.ComponentModel.Design.Serialization; -using System.Windows.Documents; using System.Xaml; -using System.Xaml.Schema; -using System.Collections.Generic; -using System.Diagnostics; using System.IO; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/StyleModeStack.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/StyleModeStack.cs index 9fd209be7cd..a5623fbc2d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/StyleModeStack.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/StyleModeStack.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Xml; -using System.IO; using System.Collections.Generic; using System.Diagnostics; -using System.Reflection; #if PBTCOMPILER namespace MS.Internal.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/StyleXamlParser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/StyleXamlParser.cs index 17a7c5f1671..1180fbf627d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/StyleXamlParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/StyleXamlParser.cs @@ -10,11 +10,6 @@ \***************************************************************************/ using System; -using System.Xml; -using System.IO; -using System.Text; -using System.Collections; -using System.ComponentModel; using System.Diagnostics; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateComponentConnector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateComponentConnector.cs index 87d6bc9eedd..3c1dc59f724 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateComponentConnector.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateComponentConnector.cs @@ -12,27 +12,6 @@ * * \***************************************************************************/ -using System; -using System.Xml; -using System.IO; -using System.Windows; -using System.Windows.Media; -using System.Windows.Navigation; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Windows.Controls; -using System.Windows.Documents; -using System.Windows.Media.Animation; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Threading; -using System.Windows.Data; - -using System.Globalization; -using MS.Utility; - namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateKeyConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateKeyConverter.cs index 989f6518693..efd085174b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateKeyConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateKeyConverter.cs @@ -7,15 +7,8 @@ * Class for converting a given TemplateKey to a string * \***************************************************************************/ -using System; using System.ComponentModel; // for TypeConverter using System.Globalization; // for CultureInfo -using System.Reflection; -using MS.Utility; -using MS.Internal; -using System.Windows; -using System.ComponentModel.Design.Serialization; -using System.Windows.Documents; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateXamlParser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateXamlParser.cs index e82a4c6f635..eebc5cd516c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateXamlParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TemplateXamlParser.cs @@ -10,11 +10,7 @@ \***************************************************************************/ using System; -using System.Xml; -using System.IO; -using System.Text; using System.Collections; -using System.ComponentModel; using System.Diagnostics; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TreeBuilder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TreeBuilder.cs index c291a0c1bdc..0e2711ffd9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TreeBuilder.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TreeBuilder.cs @@ -8,18 +8,7 @@ * \***************************************************************************/ -using System; -using System.Xml; -using System.IO; -using System.Text; -using System.Collections; -using System.ComponentModel; - using System.Diagnostics; -using System.Reflection; - -using System.Runtime.InteropServices; -using MS.Utility; #if PBTCOMPILER namespace MS.Internal.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TypeContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TypeContext.cs index 4137a2082af..3c4d14010a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TypeContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/TypeContext.cs @@ -9,7 +9,6 @@ using System; using System.ComponentModel; -using System.Xml; #if PBTCOMPILER namespace MS.Internal.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/WpfXamlLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/WpfXamlLoader.cs index fbba48f7182..c9f39eda86c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/WpfXamlLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/WpfXamlLoader.cs @@ -7,7 +7,6 @@ using System.Collections; using System.Windows.Baml2006; using System.Windows.Diagnostics; -using System.Windows.Media; using System.Xaml; using System.Xaml.Permissions; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlBrushSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlBrushSerializer.cs index 24c406b56fe..151cefb90d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlBrushSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlBrushSerializer.cs @@ -8,16 +8,7 @@ // using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; using System.IO; -using System.Xml; -using MS.Utility; -using MS.Internal; #if PBTCOMPILER using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlDesignerSerializationManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlDesignerSerializationManager.cs index ada3d01050e..804a5e35fe8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlDesignerSerializationManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlDesignerSerializationManager.cs @@ -7,11 +7,7 @@ // Manages the ContextStack for a particular run of Serialization. // -using System; -using System.Collections; using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using System.Xml; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlFigureLengthSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlFigureLengthSerializer.cs index 6f864371bfb..9bd952db366 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlFigureLengthSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlFigureLengthSerializer.cs @@ -7,17 +7,8 @@ // XamlSerializer used to persist FigureLength structures in Baml // -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.IO; -using System.Xml; -using System.Windows; -using MS.Utility; using MS.Internal; #if PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlGridLengthSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlGridLengthSerializer.cs index b9b1816c1fa..05aaf88a850 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlGridLengthSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlGridLengthSerializer.cs @@ -7,18 +7,8 @@ // XamlSerializer used to persist GridLength structures in Baml // -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.IO; -using System.Xml; -using System.Windows; -using System.Windows.Markup; -using MS.Utility; using MS.Internal; #if PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlInstanceCreator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlInstanceCreator.cs index d9ee861b81f..5620a495b67 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlInstanceCreator.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlInstanceCreator.cs @@ -7,9 +7,7 @@ // A base class that allows storing parser records for later instantiation. // -using System; - -namespace System.Windows.Markup +namespace System.Windows.Markup { /// /// A base class that allows storing parser records for later instantiation. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlInt32CollectionSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlInt32CollectionSerializer.cs index f1b148ea2b0..b70fa3d584d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlInt32CollectionSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlInt32CollectionSerializer.cs @@ -8,20 +8,11 @@ // using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; using System.IO; -using System.Xml; -using MS.Utility; -using MS.Internal; #if PBTCOMPILER using System.Reflection; -using System.Collections.Generic; +using System.Collections.Generic; using TypeConverterHelper = MS.Internal.Markup.TypeConverterHelper; namespace MS.Internal.Markup @@ -29,8 +20,8 @@ namespace MS.Internal.Markup using System.Windows; using System.Windows.Media; -using System.Windows.Media.Media3D; -using MS.Internal.Media; +using System.Windows.Media.Media3D; +using MS.Internal.Media; using TypeConverterHelper = System.Windows.Markup.TypeConverterHelper; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlNodes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlNodes.cs index 76ece2c69a9..effce8a3d73 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlNodes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlNodes.cs @@ -12,9 +12,6 @@ using System; using System.Xml; -using System.IO; -using System.Collections; -using System.ComponentModel; using System.Diagnostics; using System.Reflection; @@ -26,20 +23,19 @@ #endif -using MS.Utility; #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif -{ - #region XamlNodeTypeDefitions +{ + #region XamlNodeTypeDefitions - /// - /// Identifier for XamlNodes - /// - internal enum XamlNodeType + /// + /// Identifier for XamlNodes + /// + internal enum XamlNodeType { /// /// Unknown Node diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlParseException.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlParseException.cs index 58385215dc7..858a4e0443b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlParseException.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlParseException.cs @@ -8,17 +8,9 @@ // using System; -using System.Xml; -using System.IO; -using System.Collections; -using System.Diagnostics; using System.Reflection; using System.Text; -using System.Globalization; -using System.ComponentModel; -using System.Security; using System.Runtime.Serialization; -using MS.Utility; using MS.Internal; #if PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlParser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlParser.cs index 28f9a947804..936b0487adb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlParser.cs @@ -12,15 +12,11 @@ using System; using System.Xml; using System.IO; -using System.Text; using System.Collections; -using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Globalization; using MS.Utility; -using System.Runtime.InteropServices; -using MS.Internal; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPathDataSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPathDataSerializer.cs index bce4c6a2884..3f41ce907c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPathDataSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPathDataSerializer.cs @@ -7,29 +7,20 @@ // -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; using System.IO; -using System.Xml; -using MS.Utility; using MS.Internal; #if PBTCOMPILER using System.Reflection; -using System.Collections.Generic; +using System.Collections.Generic; namespace MS.Internal.Markup #else using System.Windows; using System.Windows.Media; -using System.Windows.Media.Media3D; -using MS.Internal.Media; +using System.Windows.Media.Media3D; +using MS.Internal.Media; namespace System.Windows.Markup #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPoint3DCollectionSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPoint3DCollectionSerializer.cs index 664114bee3f..8bfaa6c51f5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPoint3DCollectionSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPoint3DCollectionSerializer.cs @@ -7,17 +7,7 @@ // XamlSerializer used to persist collections of 3D points in Baml // -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; using System.IO; -using System.Xml; -using MS.Utility; -using MS.Internal; #if PBTCOMPILER using System.Reflection; @@ -27,7 +17,7 @@ namespace MS.Internal.Markup using System.Windows; using System.Windows.Media; -using System.Windows.Media.Media3D; +using System.Windows.Media.Media3D; using MS.Internal.Media; namespace System.Windows.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPointCollectionSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPointCollectionSerializer.cs index 5d3d4376aba..02ac5c373be 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPointCollectionSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlPointCollectionSerializer.cs @@ -7,17 +7,7 @@ // XamlSerializer used to persist collections of 3D points in Baml // -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; using System.IO; -using System.Xml; -using MS.Utility; -using MS.Internal; #if PBTCOMPILER using System.Reflection; @@ -27,8 +17,8 @@ namespace MS.Internal.Markup using System.Windows; using System.Windows.Media; -using System.Windows.Media.Media3D; -using MS.Internal.Media; +using System.Windows.Media.Media3D; +using MS.Internal.Media; namespace System.Windows.Markup #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs index f5abd77bdd8..89757eea51b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs @@ -7,27 +7,14 @@ // base Parser class that parses XML markup into an Avalon Element Tree // -using System; using System.Xml; using System.IO; -using System.IO.Packaging; -using System.Windows; using System.ComponentModel; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Reflection; using MS.Utility; using System.Text; -using System.ComponentModel.Design.Serialization; -using System.Globalization; -using System.Windows.Markup.Primitives; using MS.Internal; - -using MS.Internal.IO.Packaging; using System.Windows.Baml2006; -using System.Threading; using System.Windows.Threading; using System.Xaml; using System.Xaml.Permissions; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderConstants.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderConstants.cs index db12ce0a897..bab5d1ec03a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderConstants.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderConstants.cs @@ -11,6 +11,9 @@ // set this flag to turn on whitespace collapse rules. // #define UseValidatingReader + +/* Unmerged change from project 'PresentationFramework' +Removed: using System; using System.Xml; using System.Xml.Serialization; @@ -27,7 +30,7 @@ using Microsoft.Win32; using System.Runtime.InteropServices; using MS.Internal; - +*/ // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and // unknown pragmas when compiling C# source code with the C# compiler, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderHelper.cs index 02290ef67c3..9348fae75f1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderHelper.cs @@ -14,20 +14,14 @@ using System; using System.Xml; -using System.Xml.Serialization; -using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; -using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Globalization; using MS.Utility; using System.Collections.Specialized; -using Microsoft.Win32; -using System.Runtime.InteropServices; -using MS.Internal; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlSerializer.cs index e744cfc5df7..8cdc5f52742 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlSerializer.cs @@ -8,14 +8,7 @@ // using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.IO; -using System.Reflection; -using System.Xml; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlSerializerUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlSerializerUtil.cs index 33e029d917f..5e02bcf2596 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlSerializerUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlSerializerUtil.cs @@ -8,20 +8,6 @@ // and during actual Serialization. // -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Reflection; -using System.Security; -using System.Windows; -using System.Globalization; -using System.Windows.Data; -using MS.Utility; -using MS.Internal; - #if PBTCOMPILER namespace MS.Internal.Markup #else diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStream.cs index d97d78b73e8..11e22f46a09 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStream.cs @@ -8,19 +8,10 @@ * Doing async parsing on a separate thread. * \***************************************************************************/ -using System; -using System.Xml; using System.IO; -using System.Windows; using System.Collections; -using System.ComponentModel; - -using System.Diagnostics; -using System.Reflection; using System.Threading; -using MS.Utility; - #if PBTCOMPILER namespace MS.Internal.Markup diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStyleSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStyleSerializer.cs index 89d8173434d..6d57d6f6d8e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStyleSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStyleSerializer.cs @@ -8,18 +8,7 @@ // Class that serializes and deserializes Styles. // -using System; -using System.ComponentModel; - -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Collections; using System.Globalization; -using System.IO; -using System.Reflection; -using System.Text; -using System.Xml; -using MS.Utility; #if !PBTCOMPILER using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTemplateSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTemplateSerializer.cs index a14cba6d2ff..cd8c55ee097 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTemplateSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTemplateSerializer.cs @@ -7,18 +7,7 @@ // Class that serializes and deserializes Templates. // -using System; -using System.ComponentModel; - -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Collections; using System.Globalization; -using System.IO; -using System.Reflection; -using System.Text; -using System.Xml; -using MS.Utility; #if !PBTCOMPILER using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapper.cs index 96179b4b13e..3b46b06a617 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapper.cs @@ -8,10 +8,8 @@ // using System; -using System.Xml; using System.IO; using MS.Utility; -using System.Text; using System.Collections; using System.Collections.Generic; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapperSchemaContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapperSchemaContext.cs index bd63b3c0f76..b5f4ba486b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapperSchemaContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapperSchemaContext.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Reflection; -using System.Threading; using System.Windows.Baml2006; using System.Xaml; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlVector3DCollectionSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlVector3DCollectionSerializer.cs index f5ea798bcbe..4bb25bb1088 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlVector3DCollectionSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlVector3DCollectionSerializer.cs @@ -7,17 +7,7 @@ // XamlSerializer used to persist collections of 3D points in Baml // -using System; -using System.Collections; -using System.ComponentModel; -using System.ComponentModel.Design; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; using System.IO; -using System.Xml; -using MS.Utility; -using MS.Internal; #if PBTCOMPILER using System.Reflection; @@ -27,8 +17,8 @@ namespace MS.Internal.Markup using System.Windows; using System.Windows.Media; -using System.Windows.Media.Media3D; -using MS.Internal.Media; +using System.Windows.Media.Media3D; +using MS.Internal.Media; namespace System.Windows.Markup #endif diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriter.cs index 6fafa331c9b..426d8911944 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriter.cs @@ -7,26 +7,11 @@ // base Parser class that parses XML markup into an Avalon Element Tree // -using System; using System.Xml; using System.IO; -using System.IO.Packaging; -using System.Windows; -using System.Collections; -using System.Diagnostics; -using System.Reflection; -using System.Windows.Threading; - -using MS.Utility; -using System.Security; using System.Text; -using System.ComponentModel.Design.Serialization; -using System.Globalization; using System.Windows.Markup.Primitives; -using MS.Internal.IO.Packaging; -using MS.Internal.PresentationFramework; - namespace System.Windows.Markup { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriterMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriterMode.cs index bf58b1d20ba..4556f42ab40 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriterMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriterMode.cs @@ -7,8 +7,6 @@ // Xaml Writer Modes for values that are of type Expression. // -using System; - namespace System.Windows.Markup { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriterState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriterState.cs index 3b21a184bcd..5025d249e0a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriterState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlWriterState.cs @@ -7,8 +7,6 @@ // Xaml Writer States for values that are of type Expression. // -using System; - namespace System.Windows.Markup { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlAttributeProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlAttributeProperties.cs index 1bdf1ad81af..932db60961c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlAttributeProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlAttributeProperties.cs @@ -7,18 +7,10 @@ // Attributes used by parser for Avalon // -using System; -using System.Xml; -using System.IO; using System.Collections; using System.ComponentModel; -using System.Globalization; - -using System.Diagnostics; using System.Reflection; -using MS.Utility; - #if !PBTCOMPILER using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsCache.cs index ba6d0688c2c..c5a5d06532a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsCache.cs @@ -14,13 +14,7 @@ using System.Collections.Specialized; using System.Linq; using System.Reflection; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; -using MS.Internal; using MS.Utility; -using Microsoft.Win32; -using System.Globalization; #if PBTCOMPILER using MS.Internal.PresentationBuildTasks; #else diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsDictionary.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsDictionary.cs index 63024eac54b..cb686bb766b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsDictionary.cs @@ -8,12 +8,9 @@ // using System; -using System.Xml; -using System.IO; using System.Collections; using System.Collections.Specialized; using System.Diagnostics; -using System.Reflection; using MS.Utility; #if PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/BeginStoryboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/BeginStoryboard.cs index 1f6d0c5a0bf..fb950b38208 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/BeginStoryboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/BeginStoryboard.cs @@ -11,18 +11,15 @@ * \***************************************************************************/ using System.ComponentModel; // DefaultValueAttribute -using System.Diagnostics; // Debug.Assert -using System.Windows; // SR.Get -using System.Windows.Documents; // TableTemplate using System.Windows.Markup; // IAddChild namespace System.Windows.Media.Animation { -/// -/// BeginStoryboard will call begin on its Storyboard reference when -/// it is triggered. -/// -[RuntimeNameProperty("Name")] // Enables INameScope.FindName to find BeginStoryboard objects. + /// + /// BeginStoryboard will call begin on its Storyboard reference when + /// it is triggered. + /// + [RuntimeNameProperty("Name")] // Enables INameScope.FindName to find BeginStoryboard objects. [ContentProperty("Storyboard")] // Enables child without explicit tag. public sealed class BeginStoryboard : TriggerAction { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/ControllableStoryboardAction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/ControllableStoryboardAction.cs index b63aa0aecf4..6cbc515a72a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/ControllableStoryboardAction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/ControllableStoryboardAction.cs @@ -12,19 +12,16 @@ * \***************************************************************************/ using System.ComponentModel; // DefaultValueAttribute -using System.Diagnostics; // Debug.Assert - -using System.Windows.Documents; // TableTemplate using System.Windows.Markup; // INameScope namespace System.Windows.Media.Animation { -/// -/// A controllable storyboard action associates a trigger action with a -/// Storyboard. The association from this object is a string that is the name -/// of the Storyboard in a resource dictionary. -/// -public abstract class ControllableStoryboardAction : TriggerAction + /// + /// A controllable storyboard action associates a trigger action with a + /// Storyboard. The association from this object is a string that is the name + /// of the Storyboard in a resource dictionary. + /// + public abstract class ControllableStoryboardAction : TriggerAction { /// /// Internal constructor - nobody is supposed to ever create an instance diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs index 44be8a067d3..103d840151b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs @@ -8,17 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationFramework; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs index 0ca7052a93f..52f36ad25d5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs @@ -8,15 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Media3D; - using MS.Internal.PresentationFramework; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/KeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/KeyFrames.cs index e85b181841d..3ce3c036bc4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/KeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/KeyFrames.cs @@ -8,17 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationFramework; - namespace System.Windows.Media.Animation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs index 9fec96ecd2c..2274980c87d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs @@ -8,15 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Media3D; - using MS.Internal.PresentationFramework; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/SplineKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/SplineKeyFrames.cs index 8498263b4a2..372f79d71d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/SplineKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/SplineKeyFrames.cs @@ -8,15 +8,6 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Media.Media3D; - using MS.Internal.PresentationFramework; namespace System.Windows.Media.Animation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimation.cs index ac733c2abfd..d5b8e560273 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimation.cs @@ -8,24 +8,13 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; -using MS.Utility; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; -using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using MS.Internal.PresentationFramework; namespace System.Windows.Media.Animation -{ +{ /// /// Animates the value of a Thickness property using linear interpolation /// between two values. The values are determined by the combination of diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationBase.cs index 364143c9e3f..47fbe053e8e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationBase.cs @@ -11,21 +11,8 @@ // Allow use of presharp: #pragma warning suppress #pragma warning disable 1634, 1691 -using MS.Internal; - -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using MS.Internal.PresentationFramework; - -using SR=System.Windows.SR; - namespace System.Windows.Media.Animation -{ +{ /// /// /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationUsingKeyFrames.cs index 5696931a8a9..fd992bae808 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationUsingKeyFrames.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessAnimationUsingKeyFrames.cs @@ -8,20 +8,10 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; using MS.Internal.KnownBoxes; - -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Windows; using System.Windows.Markup; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; - -using SR=System.Windows.SR; using MS.Internal.PresentationFramework; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessKeyFrameCollection.cs index 53a25391275..a633a25b8c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessKeyFrameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Generated/ThicknessKeyFrameCollection.cs @@ -8,16 +8,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; - -using System; using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Windows.Media.Animation; -using System.Windows.Media.Media3D; namespace System.Windows.Media.Animation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/PauseStoryboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/PauseStoryboard.cs index a6a5b8525ce..31ab97e3589 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/PauseStoryboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/PauseStoryboard.cs @@ -10,15 +10,13 @@ * * \***************************************************************************/ -using System.Diagnostics; // Debug.Assert - namespace System.Windows.Media.Animation { -/// -/// PauseStoryboard will call pause on its Storyboard reference when -/// it is triggered. -/// -public sealed class PauseStoryboard : ControllableStoryboardAction + /// + /// PauseStoryboard will call pause on its Storyboard reference when + /// it is triggered. + /// + public sealed class PauseStoryboard : ControllableStoryboardAction { /// /// Called when it's time to execute this storyboard action diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/RemoveStoryboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/RemoveStoryboard.cs index 9e1f360c583..747491dcdb9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/RemoveStoryboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/RemoveStoryboard.cs @@ -10,15 +10,13 @@ * * \***************************************************************************/ -using System.Diagnostics; // Debug.Assert - namespace System.Windows.Media.Animation { -/// -/// RemoveStoryboard will call remove on its Storyboard reference when -/// it is triggered. -/// -public sealed class RemoveStoryboard : ControllableStoryboardAction + /// + /// RemoveStoryboard will call remove on its Storyboard reference when + /// it is triggered. + /// + public sealed class RemoveStoryboard : ControllableStoryboardAction { /// /// Called when it's time to execute this storyboard action diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/ResumeStoryboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/ResumeStoryboard.cs index 4df772aaff0..c234b15a610 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/ResumeStoryboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/ResumeStoryboard.cs @@ -10,15 +10,13 @@ * * \***************************************************************************/ -using System.Diagnostics; // Debug.Assert - namespace System.Windows.Media.Animation { -/// -/// ResumeStoryboard will call resume on its Storyboard reference when -/// it is triggered. -/// -public sealed class ResumeStoryboard : ControllableStoryboardAction + /// + /// ResumeStoryboard will call resume on its Storyboard reference when + /// it is triggered. + /// + public sealed class ResumeStoryboard : ControllableStoryboardAction { /// /// Called when it's time to execute this storyboard action diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SeekStoryboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SeekStoryboard.cs index e7cd09e3cb0..50f3ad70f07 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SeekStoryboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SeekStoryboard.cs @@ -11,15 +11,14 @@ * \***************************************************************************/ using System.ComponentModel; // DefaultValueAttribute -using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { -/// -/// SeekStoryboard will call seek on its Storyboard reference when -/// it is triggered. -/// -public sealed class SeekStoryboard : ControllableStoryboardAction + /// + /// SeekStoryboard will call seek on its Storyboard reference when + /// it is triggered. + /// + public sealed class SeekStoryboard : ControllableStoryboardAction { /// /// A time offset to use for this action. If it is never explicitly diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SetStoryboardSpeedRatio.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SetStoryboardSpeedRatio.cs index b98c4c531a2..12b4cf04590 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SetStoryboardSpeedRatio.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SetStoryboardSpeedRatio.cs @@ -11,15 +11,14 @@ * \***************************************************************************/ using System.ComponentModel; // DefaultValueAttribute -using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { -/// -/// SetStoryboardSpeedRatio will set the speed for its Storyboard reference when -/// it is triggered. -/// -public sealed class SetStoryboardSpeedRatio : ControllableStoryboardAction + /// + /// SetStoryboardSpeedRatio will set the speed for its Storyboard reference when + /// it is triggered. + /// + public sealed class SetStoryboardSpeedRatio : ControllableStoryboardAction { /// /// A speed ratio to use for this action. If it is never explicitly diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SkipStoryboardToFill.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SkipStoryboardToFill.cs index e96e7569a1d..4a18754ce7a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SkipStoryboardToFill.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/SkipStoryboardToFill.cs @@ -10,15 +10,13 @@ * * \***************************************************************************/ -using System.Diagnostics; // Debug.Assert - namespace System.Windows.Media.Animation { -/// -/// SkipStoryboardToFill will call SkipToFill on its Storyboard reference when -/// it is triggered. -/// -public sealed class SkipStoryboardToFill : ControllableStoryboardAction + /// + /// SkipStoryboardToFill will call SkipToFill on its Storyboard reference when + /// it is triggered. + /// + public sealed class SkipStoryboardToFill : ControllableStoryboardAction { /// /// Called when it's time to execute this storyboard action diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/StopStoryboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/StopStoryboard.cs index 6a720e455f5..b56fb398236 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/StopStoryboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/StopStoryboard.cs @@ -10,15 +10,13 @@ * * \***************************************************************************/ -using System.Diagnostics; // Debug.Assert - namespace System.Windows.Media.Animation { -/// -/// StopStoryboard will call stop on its Storyboard reference when -/// it is triggered. -/// -public sealed class StopStoryboard : ControllableStoryboardAction + /// + /// StopStoryboard will call stop on its Storyboard reference when + /// it is triggered. + /// + public sealed class StopStoryboard : ControllableStoryboardAction { /// /// Called when it's time to execute this storyboard action diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Storyboard.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Storyboard.cs index 9b16b94cd96..ab70e42c175 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Storyboard.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/Animation/Storyboard.cs @@ -11,24 +11,21 @@ * \***************************************************************************/ using System.Collections; // DictionaryEntry -using System.Collections.Generic; // List using System.Collections.Specialized; // HybridDictionary using System.ComponentModel; // PropertyDescriptor -using System.Diagnostics; // Debug.Assert using System.Reflection; // PropertyInfo using System.Windows.Controls; // MediaElement -using System.Windows.Documents; // TableTemplate using System.Windows.Markup; // INameScope using MS.Internal; // Helper using MS.Utility; // FrugalMap namespace System.Windows.Media.Animation { -/// -/// A Storyboard coordinates a set of actions in a time-dependent manner. -/// -public class Storyboard : ParallelTimeline + /// + /// A Storyboard coordinates a set of actions in a time-dependent manner. + /// + public class Storyboard : ParallelTimeline { static Storyboard() { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/TextOptions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/TextOptions.cs index b9999d0129a..7cd42b1bac2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/TextOptions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Media/TextOptions.cs @@ -8,7 +8,6 @@ // and TextRenderingMode. // -using System.Windows; using MS.Internal.Media; namespace System.Windows.Media diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MessageBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MessageBox.cs index 4bad89ce1c9..d631d3454e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MessageBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MessageBox.cs @@ -3,17 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; using System.ComponentModel; - - -using System.Windows; using System.Windows.Interop; -using MS.Utility; using MS.Win32; -using MS.Internal.PresentationFramework; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MultiDataTrigger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MultiDataTrigger.cs index 749a1b03fbf..929511cc152 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MultiDataTrigger.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MultiDataTrigger.cs @@ -8,13 +8,8 @@ // gets values from data. // -using MS.Utility; - -using System; -using System.Diagnostics; using System.Collections.Specialized; using System.ComponentModel; -using System.Windows.Data; using System.Windows.Markup; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MultiTrigger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MultiTrigger.cs index 8d6368e52bf..7fc34b8aa29 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MultiTrigger.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/MultiTrigger.cs @@ -4,14 +4,8 @@ using System.Collections.Specialized; using System.ComponentModel; -using System.IO; using System.Windows.Markup; -using MS.Utility; - -using System; -using System.Diagnostics; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/FragmentNavigationEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/FragmentNavigationEventArgs.cs index d7f66098cef..1a8e60fbaa5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/FragmentNavigationEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/FragmentNavigationEventArgs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Navigation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/Journal.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/Journal.cs index 420efbc7f1a..41803f2a1a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/Journal.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/Journal.cs @@ -21,18 +21,10 @@ // // -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Runtime.Serialization; -using System.Windows.Threading; -using System.Security; using MS.Internal; using MS.Internal.AppModel; -using MS.Utility; -using System.ComponentModel; // Since we disable PreSharp warnings in this file, we first need to disable warnings about unknown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntry.cs index 83f1bdd7ee5..fab008f08ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntry.cs @@ -11,23 +11,13 @@ // // -using System; -using System.Collections; -using System.Diagnostics; -using System.IO; using System.IO.Packaging; -using System.Globalization; using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using System.Security ; -using System.Windows.Markup; using MS.Internal.AppModel; using MS.Internal; using MS.Internal.Utility; -using System.Windows.Controls.Primitives; - //In order to avoid generating warnings about unknown message numbers and //unknown pragmas when compiling your C# source code with the actual C# compiler, //you need to disable warnings 1634 and 1691. (Presharp Documentation) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntryListConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntryListConverter.cs index b810bb84f92..ae370e3b49b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntryListConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/JournalEntryListConverter.cs @@ -12,15 +12,11 @@ // Disable unknown #pragma warning for pragmas we use to exclude certain PreSharp violations #pragma warning disable 1634, 1691 -using System; using System.Collections; using System.Collections.Specialized; using System.Globalization; -using System.ComponentModel; using System.Windows.Data; -using MS.Internal; - namespace System.Windows.Navigation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationFailedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationFailedEventArgs.cs index f6b98dc147b..3edba644a7b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationFailedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationFailedEventArgs.cs @@ -15,7 +15,6 @@ // This event is fired on navigation container and refired on the NavigationApplication // -using System.ComponentModel; using System.Net; namespace System.Windows.Navigation diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationMode.cs index 2f5cf306721..c51f4bd608c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationMode.cs @@ -10,8 +10,6 @@ // Refresh method (or corresponding UI button). // -using System; - namespace System.Windows.Navigation { #region NavigationMode Enum diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationService.cs index ae5879e15e1..4196face476 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationService.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationService.cs @@ -7,28 +7,19 @@ // Description: Implements the Avalon basic Navigation unit class // -using System; -using System.Timers; using System.IO; using System.IO.Packaging; -using System.Globalization; using System.Windows.Threading; using System.Collections; using System.ComponentModel; -using System.Reflection; -using System.Diagnostics; using System.Security; -using System.Runtime.Serialization.Formatters.Binary; using System.Net; using System.Net.Cache; using MS.Internal; using MS.Internal.Navigation; using MS.Internal.Utility; using MS.Internal.AppModel; -using MS.Internal.Controls; using MS.Utility; - -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Controls; using System.Windows.Controls.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationWindow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationWindow.cs index c4f824d6b41..68f2e691d0d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationWindow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/NavigationWindow.cs @@ -14,33 +14,17 @@ // of the window. // -using System; using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.IO; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Security; using MS.Internal.AppModel; using MS.Internal.KnownBoxes; using MS.Internal.Utility; -using MS.Utility; -using MS.Win32; -using MS.Internal.PresentationFramework; - -using System.Windows; using System.Windows.Automation.Peers; using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Navigation; using System.Windows.Markup; -using System.Windows.Threading; -using System.Windows.Documents; namespace System.Windows.Navigation { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/PageFunction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/PageFunction.cs index eeccb900bfb..f1b2c375369 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/PageFunction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/PageFunction.cs @@ -9,8 +9,6 @@ // this is the base element class from which the developer derives // from to enable returning results to a caller. // -using System; -using System.Diagnostics; using System.Windows.Controls; using MS.Internal.AppModel; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/RequestNavigateEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/RequestNavigateEventArgs.cs index baa83cc0925..494b0579581 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/RequestNavigateEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/RequestNavigateEventArgs.cs @@ -5,13 +5,7 @@ // // -using System; -using System.Net; -using System.Windows; - -using MS.Internal.Utility; - -namespace System.Windows.Navigation +namespace System.Windows.Navigation { /// /// EventArgs for RequestNavigate diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/ReturnEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/ReturnEventArgs.cs index 9b6a656d85d..d77f5c22c93 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/ReturnEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Navigation/ReturnEventArgs.cs @@ -9,8 +9,6 @@ // that enable setting, getting a typed value that's // passed between Pagefunctions. // -using System; - namespace System.Windows.Navigation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/NullableBoolConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/NullableBoolConverter.cs index a56a34277a0..1041588be6d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/NullableBoolConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/NullableBoolConverter.cs @@ -3,9 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Collections; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/PropertyPath.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/PropertyPath.cs index ae20d0f97d2..2a464e263de 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/PropertyPath.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/PropertyPath.cs @@ -14,15 +14,12 @@ // using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Text; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Windows.Data; -using System.Windows.Threading; using System.Windows.Markup; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/PropertyPathConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/PropertyPathConverter.cs index d73cf24c5ee..a7facd2de44 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/PropertyPathConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/PropertyPathConverter.cs @@ -7,18 +7,12 @@ // and saving PropertyPath to string // -using System; using System.ComponentModel; using System.Collections.ObjectModel; using System.Text; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Windows; using System.Windows.Markup; -using MS.Internal; -using MS.Utility; using MS.Internal.Data; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RequestBringIntoViewEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RequestBringIntoViewEventArgs.cs index bfd5e32ee4b..4867510af1f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RequestBringIntoViewEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RequestBringIntoViewEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RequestBringIntoViewEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RequestBringIntoViewEventHandler.cs index b1db42c6273..3b3d9452380 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RequestBringIntoViewEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RequestBringIntoViewEventHandler.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionary.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionary.cs index 540bb073281..b22e28f6662 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionary.cs @@ -9,30 +9,20 @@ * * \***************************************************************************/ -using System; using System.IO; using System.Net; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Diagnostics; using System.ComponentModel; -using System.Security; using System.Windows.Threading; using System.Windows.Media; using System.Windows.Diagnostics; -using System.IO.Packaging; -using MS.Internal.IO.Packaging; // for PackageCacheEntry -using System.Globalization; -using System.Windows.Navigation; using MS.Internal; using MS.Internal.Utility; using MS.Internal.AppModel; -using MS.Utility; using System.Xaml; -using System.Xaml.Permissions; using System.Windows.Baml2006; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionaryCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionaryCollection.cs index f11d49bd414..421f5dcb5c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionaryCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionaryCollection.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Collections.ObjectModel; -using System.Diagnostics; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionaryLocation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionaryLocation.cs index 09e00408901..93db7aa0264 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionaryLocation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceDictionaryLocation.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceKey.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceKey.cs index 4685c83a04f..97a73c75c95 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceKey.cs @@ -9,7 +9,6 @@ * * \***************************************************************************/ -using System; using System.Reflection; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceExpression.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceExpression.cs index 10dfc6c86e1..7f410ca4403 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceExpression.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceExpression.cs @@ -9,9 +9,7 @@ // // -using System; using System.ComponentModel; -using System.Diagnostics; using System.Windows.Markup; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceExpressionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceExpressionConverter.cs index 6a92eaac81a..4af0f1bcc47 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceExpressionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceExpressionConverter.cs @@ -9,13 +9,8 @@ // // -using System; using System.ComponentModel; using System.Globalization; -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; - -using System.Windows; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceKeyNotFoundException.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceKeyNotFoundException.cs index 43a899cf797..525dd178fa5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceKeyNotFoundException.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourceReferenceKeyNotFoundException.cs @@ -9,9 +9,7 @@ // // -using System; using System.Runtime.Serialization; -using System.Security; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Resources/StreamResourceInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Resources/StreamResourceInfo.cs index 2286634fa4f..2c47e6f867d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Resources/StreamResourceInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Resources/StreamResourceInfo.cs @@ -15,8 +15,6 @@ using System.IO; -using System; - namespace System.Windows.Resources { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourcesChangeInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourcesChangeInfo.cs index 199369d8358..a503ce0d323 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourcesChangeInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ResourcesChangeInfo.cs @@ -11,10 +11,6 @@ // // -using System; -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RoutedPropertyChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RoutedPropertyChangedEventArgs.cs index e92eee3e1a4..15db1282be9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RoutedPropertyChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/RoutedPropertyChangedEventArgs.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; -using System.Windows.Input; - // Disable CS3001, CS3003, CS3024: Warning as Error: not CLS-compliant #pragma warning disable 3001, 3003, 3024 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Setter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Setter.cs index 9eb6e476f5c..0259d755b00 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Setter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Setter.cs @@ -9,7 +9,6 @@ * * \***************************************************************************/ -using System; using System.ComponentModel; using System.Windows.Markup; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SetterBaseCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SetterBaseCollection.cs index 441be77702a..4ef8aab3942 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SetterBaseCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SetterBaseCollection.cs @@ -11,10 +11,6 @@ * \***************************************************************************/ using System.Collections.ObjectModel; // Collection -using System.Diagnostics; // Debug.Assert -using System.Windows.Data; // Binding knowledge -using System.Windows.Media; // Visual knowledge -using System.Windows.Markup; // MarkupExtension namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Ellipse.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Ellipse.cs index a93585c4861..30a180ad3f0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Ellipse.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Ellipse.cs @@ -8,16 +8,7 @@ // -using System.Windows.Shapes; -using System.Diagnostics; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Media; -using MS.Internal; -using System.ComponentModel; - -using System; namespace System.Windows.Shapes { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Line.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Line.cs index e692c91baec..fa3ad272d4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Line.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Line.cs @@ -7,16 +7,8 @@ // Implementation of Line shape element. // -using System.Windows.Shapes; -using System.Diagnostics; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Media; using System.ComponentModel; -using MS.Internal; - -using System; namespace System.Windows.Shapes { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Path.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Path.cs index 2781b2ac50f..9c0e0ae60d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Path.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Path.cs @@ -7,14 +7,7 @@ // Implementation of Path shape element. // -using System.Windows.Shapes; -using System.Diagnostics; -using System.Windows.Threading; -using System.Security; -using System.Windows; using System.Windows.Media; - -using System; using MS.Internal.PresentationFramework; namespace System.Windows.Shapes diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Polygon.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Polygon.cs index 4a412980476..3e3c79b1523 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Polygon.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Polygon.cs @@ -8,16 +8,9 @@ // -using System.Windows.Shapes; -using System.Diagnostics; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Media; using MS.Internal; -using System; - namespace System.Windows.Shapes { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Polyline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Polyline.cs index 0584ba3da93..1980e0e6021 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Polyline.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Polyline.cs @@ -8,16 +8,9 @@ // -using System.Windows.Shapes; -using System.Diagnostics; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Media; using MS.Internal; -using System; - namespace System.Windows.Shapes { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Rectangle.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Rectangle.cs index 4c51eb7482b..95ea689c885 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Rectangle.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Rectangle.cs @@ -8,17 +8,9 @@ // -using System.Windows.Shapes; -using System.Diagnostics; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Media; -using MS.Internal; using System.ComponentModel; -using System; - namespace System.Windows.Shapes { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Shape.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Shape.cs index fa7f247b604..1fe6897f4e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Shape.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shapes/Shape.cs @@ -10,15 +10,10 @@ // -using System.Diagnostics; -using System.Windows.Threading; - -using System.Windows; using System.Windows.Media; using System.ComponentModel; using MS.Internal; using MS.Internal.PresentationFramework; -using System; namespace System.Windows.Shapes { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SharedDp.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SharedDp.cs index 04684bb8d59..2279fe1e5a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SharedDp.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SharedDp.cs @@ -14,10 +14,6 @@ * \***************************************************************************/ - -using System; -using System.Windows; - namespace System.Windows { internal class SharedDp diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/JumpList.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/JumpList.cs index a23f6b9925f..3822e12022a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/JumpList.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/JumpList.cs @@ -2,30 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - +using System.ComponentModel; +using System.IO; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading; +using System.Windows.Markup; +using MS.Internal; +using MS.Internal.AppModel; +using MS.Internal.Interop; +using MS.Win32; + +using HRESULT = MS.Internal.Interop.HRESULT; namespace System.Windows.Shell { - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.IO; - using System.Reflection; - using System.Runtime.InteropServices; - using System.Security; - using System.Text; - using System.Threading; - using System.Windows; - using System.Windows.Markup; - using MS.Internal; - using MS.Internal.AppModel; - using MS.Internal.PresentationFramework; - using MS.Internal.Interop; - using MS.Win32; - - using HRESULT = MS.Internal.Interop.HRESULT; - /// /// The list of possible reasons why a JumpItem would be rejected from a JumpList when applied. /// @@ -73,7 +64,7 @@ public JumpItemsRejectedEventArgs(IList rejectedItems, IList(rejectedItems).AsReadOnly(); @@ -212,7 +203,7 @@ public static void ReleaseShellObjects(List<_ShellObjectPair> list) } } } - + } #region Attached Property Methods @@ -279,7 +270,7 @@ public static JumpList GetJumpList(Application application) public JumpList() : this(null, false, false) - { + { // Restore the ability to use ISupportInitialize. _initializing = null; } @@ -290,7 +281,7 @@ public JumpList(IEnumerable items, bool showFrequent, bool showRecent) { _jumpItems = new List(items); } - else + else { _jumpItems = new List(); } @@ -326,7 +317,7 @@ public bool ShowFrequentCategory { public bool ShowRecentCategory { get; - set; + set; } /// @@ -400,11 +391,11 @@ public void EndInit() /// for what taskbar item an HWND should be associated with, e.g. you can put /// windows from multiple processes into the same group, or you can prevent glomming /// of HWNDs that would otherwise be shown together. - /// + /// /// Even though this property isn't exposed on the public WPF OM /// we still want to make sure that the jump list gets associated with /// the current running app even if the client has explicitly changed the id. - /// + /// /// It's straightforward to p/invoke to set these for the running application or /// the HWND. Not so much for this object. /// @@ -617,8 +608,8 @@ private void ApplyList() // For common use patterns there isn't really any user code on the stack, so there isn't // an opportunity to catch this in the app. // We can instead handle this. - - // Try to notify the developer if they're hitting this. + + // Try to notify the developer if they're hitting this. if (TraceShell.IsEnabled) { TraceShell.Trace(TraceEventType.Error, TraceShell.RejectingJumpItemsBecauseCatastrophicFailure); @@ -722,7 +713,7 @@ private static bool ListContainsShellObject(List<_ShellObjectPair> removedList, { var removedLink = shellMap.ShellObject as IShellLinkW; if (removedLink != null) - { + { // There's no intrinsic comparison function for ShellLinks. // Talking to the Shell guys, the way they compare these is to catenate a string with // a normalized version of the app path and the unmodified args. @@ -759,7 +750,7 @@ private static object GetShellObjectForJumpItem(JumpItem jumpItem) return CreateItemFromJumpPath(jumpPath); } else if (jumpTask != null) - { + { return CreateLinkFromJumpTask(jumpTask, true); } @@ -880,7 +871,7 @@ private static void AddCategory(ICustomDestinationList cdl, string category, Lis } private static readonly string _FullName; - + #region Converter methods private static IShellLinkW CreateLinkFromJumpTask(JumpTask jumpTask, bool allowSeparators) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/TaskbarItemInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/TaskbarItemInfo.cs index ebbe683ac61..dc2e1bb0bbd 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/TaskbarItemInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/TaskbarItemInfo.cs @@ -3,13 +3,11 @@ // See the LICENSE file in the project root for more information. +using System.Windows.Media; +using MS.Internal; + namespace System.Windows.Shell { - using System; - using System.Windows; - using System.Windows.Media; - using MS.Internal; - /// /// The values of TaskbarItemInfo's ProgressState dependency property. /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfo.cs index 0fff2d729c2..ef07cf1a56b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfo.cs @@ -4,14 +4,11 @@ +using System.Windows.Input; +using System.Windows.Media; + namespace System.Windows.Shell { - using System; - using System.Diagnostics; - using System.Windows; - using System.Windows.Input; - using System.Windows.Media; - public sealed class ThumbButtonInfo : Freezable, ICommandSource { protected override Freezable CreateInstanceCore() diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfoCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfoCollection.cs index 3648b7aa56e..57cd7583b9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfoCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/ThumbButtonInfoCollection.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - namespace System.Windows.Shell { - using System.Windows; - public class ThumbButtonInfoCollection : FreezableCollection { protected override Freezable CreateInstanceCore() diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChrome.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChrome.cs index 6d6ab8f24f5..eaae5f94939 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChrome.cs @@ -4,19 +4,16 @@ +using System.Diagnostics.CodeAnalysis; +using System.Windows.Data; +using Standard; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Shell #else namespace Microsoft.Windows.Shell #endif { - using System; - using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - using System.Windows; - using System.Windows.Data; - using Standard; - public enum ResizeGripDirection { None, diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChromeWorker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChromeWorker.cs index 205d10aa13d..963f9be94e4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChromeWorker.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Shell/WindowChromeWorker.cs @@ -4,26 +4,21 @@ +using System.Diagnostics.CodeAnalysis; +using System.Runtime.InteropServices; +using System.Windows.Interop; +using System.Windows.Media; +using System.Windows.Threading; +using Standard; + +using HANDLE_MESSAGE = System.Collections.Generic.KeyValuePair; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Shell #else namespace Microsoft.Windows.Shell #endif { - using System; - using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - using System.Runtime.InteropServices; - using System.Security; - using System.Threading; - using System.Windows; - using System.Windows.Interop; - using System.Windows.Media; - using System.Windows.Threading; - using Standard; - - using HANDLE_MESSAGE = System.Collections.Generic.KeyValuePair; - internal class WindowChromeWorker : DependencyObject { // Delegate signature used for Dispatcher.BeginInvoke. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SizeChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SizeChangedEventArgs.cs index 2b5f418b47a..4c30ce2d12a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SizeChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SizeChangedEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SizeChangedEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SizeChangedEventHandler.cs index 6efc6828ca9..1245f4a44a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SizeChangedEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SizeChangedEventHandler.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SourceUriTypeConverterMarkupExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SourceUriTypeConverterMarkupExtension.cs index a7ff3c36cda..36327d477fb 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SourceUriTypeConverterMarkupExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SourceUriTypeConverterMarkupExtension.cs @@ -3,11 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using System.Globalization; using System.Reflection; -using System.Windows; using System.Windows.Navigation; namespace System.Windows.Baml2006 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Debug.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Debug.cs index 364902aa474..ed5ad2f5a40 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Debug.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Debug.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - // Conditional to use more aggressive fail-fast behaviors when debugging. #define DEV_DEBUG +using System.Threading; + // This file contains general utilities to aid in development. // It is distinct from unit test Assert classes. // Classes here generally shouldn't be exposed publicly since @@ -16,10 +16,6 @@ namespace Standard { - using System; - using System.Diagnostics; - using System.Threading; - /// A static class for verifying assumptions. internal static class Assert { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/DoubleUtil.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/DoubleUtil.cs index 6651c54a374..a1b0ab2380a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/DoubleUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/DoubleUtil.cs @@ -5,9 +5,6 @@ namespace Standard { - using System; - using System.Diagnostics.CodeAnalysis; - /// /// DoubleUtil uses fixed eps to provide fuzzy comparison functionality for doubles. /// Note that FP noise is a big problem and using any of these compare diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/DpiHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/DpiHelper.cs index 3a405af30b2..43ae804fc29 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/DpiHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/DpiHelper.cs @@ -4,13 +4,11 @@ +using System.Windows; +using System.Windows.Media; + namespace Standard { - using System; - using System.Diagnostics.CodeAnalysis; - using System.Windows; - using System.Windows.Media; - internal static class DpiHelper { [ThreadStatic] diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/ErrorCodes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/ErrorCodes.cs index 51f40ab19d8..b72e0e80252 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/ErrorCodes.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/ErrorCodes.cs @@ -2,18 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Reflection; +using System.Runtime.InteropServices; namespace Standard { - using System; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.Reflection; - using System.Runtime.InteropServices; - using System.Security; - /// /// Wrapper for common Win32 status codes. /// @@ -66,6 +62,10 @@ internal struct Win32Error public static readonly Win32Error ERROR_CLASS_ALREADY_EXISTS = new Win32Error(1410); /// The specified datatype is invalid. public static readonly Win32Error ERROR_INVALID_DATATYPE = new Win32Error(1804); + /// Invalid window handle. + public static readonly Win32Error ERROR_INVALID_WINDOW_HANDLE = new Win32Error(1400); + /// This operation returned because the timeout period expired. + public static readonly Win32Error ERROR_TIMEOUT = new Win32Error(1460); /// /// Create a new Win32 error. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/MessageWindow.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/MessageWindow.cs index 21229c2fb64..78e2a3cfb0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/MessageWindow.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/MessageWindow.cs @@ -4,17 +4,14 @@ +using System.Runtime.ConstrainedExecution; +using System.Runtime.InteropServices; +using System.Windows; +using System.Windows.Threading; +using System.Diagnostics.CodeAnalysis; + namespace Standard { - using System; - using System.Runtime.ConstrainedExecution; - using System.Runtime.InteropServices; - using System.Security; - using System.Windows; - using System.Windows.Threading; - using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - internal sealed class MessageWindow : CriticalFinalizerObject { static MessageWindow() diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/NativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/NativeMethods.cs index 05391593a14..39e54e1e89f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/NativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/NativeMethods.cs @@ -4,26 +4,21 @@ +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; +using System.Text; +using Microsoft.Win32.SafeHandles; + +// Some COM interfaces and Win32 structures are already declared in the framework. +// Interesting ones to remember in System.Runtime.InteropServices.ComTypes are: +using IStream = System.Runtime.InteropServices.ComTypes.IStream; +using NativeMethodsSetLastError = MS.Internal.WindowsBase.NativeMethodsSetLastError; + namespace Standard { - using System; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.IO; - using System.Runtime.ConstrainedExecution; - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System.Security; - using System.Text; - using Microsoft.Win32.SafeHandles; - - // Some COM interfaces and Win32 structures are already declared in the framework. - // Interesting ones to remember in System.Runtime.InteropServices.ComTypes are: - using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; - using IPersistFile = System.Runtime.InteropServices.ComTypes.IPersistFile; - using IStream = System.Runtime.InteropServices.ComTypes.IStream; - using NativeMethodsSetLastError = MS.Internal.WindowsBase.NativeMethodsSetLastError; - #region Native Values internal static class Win32Value diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/ShellProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/ShellProvider.cs index 7e334379fc8..2cd2c598680 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/ShellProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/ShellProvider.cs @@ -4,17 +4,15 @@ -namespace Standard -{ - using System; - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System.Security; - using System.Text; - using MS.Internal.Interop; +using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; +using System.Text; +using MS.Internal.Interop; - using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; +using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; +namespace Standard +{ #region Enums and Static Property Classes /// ShellItem attribute flags. SIATTRIBFLAGS_* diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Utilities.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Utilities.cs index f80df469060..d752318687c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Utilities.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Utilities.cs @@ -4,6 +4,12 @@ +using System.ComponentModel; +using System.Runtime.InteropServices; +using System.Windows; +using System.Windows.Media; +using System.Windows.Media.Imaging; + // This file contains general utilities to aid in development. // Classes here generally shouldn't be exposed publicly since // they're not particular to any library functionality. @@ -12,21 +18,6 @@ namespace Standard { - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.IO; - using System.Reflection; - using System.Runtime.InteropServices; - using System.Security; - using System.Security.Cryptography; - using System.Text; - using System.Windows; - using System.Windows.Media; - using System.Windows.Media.Imaging; - internal static partial class Utility { private static readonly Version _osVersion = Environment.OSVersion.Version; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Verify.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Verify.cs index 6f8a03bd2b6..3810bff579f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Verify.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Standard/Verify.cs @@ -4,6 +4,11 @@ +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Threading; + // This file contains general utilities to aid in development. // Classes here generally shouldn't be exposed publicly since // they're not particular to any library functionality. @@ -12,13 +17,6 @@ namespace Standard { - using System; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.IO; - using System.Threading; - /// /// A static class for retail validated assertions. /// Instead of breaking into the debugger an exception is thrown. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StartupEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StartupEventArgs.cs index c708171ee45..825bae58c5c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StartupEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StartupEventArgs.cs @@ -11,13 +11,7 @@ // The developer will typically hook this event if they want to take action at startup time // -using System.ComponentModel; - -using System.Windows.Interop; -using MS.Internal.PresentationFramework; -using System.Runtime.CompilerServices; using MS.Internal; -using MS.Internal.AppModel; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StaticResourceExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StaticResourceExtension.cs index 42bd197df78..0bd351d6ebf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StaticResourceExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StaticResourceExtension.cs @@ -9,17 +9,9 @@ * * \***************************************************************************/ -using System; -using System.Collections; -using System.Diagnostics; -using System.Windows; using System.Windows.Diagnostics; -using System.Windows.Documents; using System.Windows.Markup; -using System.Reflection; -using MS.Internal; using System.Xaml; -using System.Collections.Generic; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Style.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Style.cs index 851d3421f86..33eb9da1b09 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Style.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Style.cs @@ -11,20 +11,10 @@ \***************************************************************************/ using System.Collections; using System.Collections.Specialized; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; // For Debug.Assert using System.Windows.Threading; -using System.Threading; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Media; -using System.Windows.Media.Animation; // For Storyboard support using System.Windows.Markup; -using System.IO; using MS.Utility; -using MS.Internal; -using System; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StyleHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StyleHelper.cs index 22b59038cb1..fb2d6049ba6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StyleHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StyleHelper.cs @@ -12,22 +12,16 @@ using MS.Internal; // Helper using MS.Utility; // ItemStructList using System.Collections; // Hashtable -using System.Collections.Generic; // List using System.Collections.Specialized; // HybridDictionary using System.ComponentModel; // TypeConverter, TypeDescriptor -using System.Diagnostics; // Debug.Assert using System.Runtime.CompilerServices; // ConditionalWeakTable using System.Windows.Controls; // Control, ContentPresenter using System.Windows.Data; // BindingExpression -using System.Windows.Documents; // TableRowGroup,TableRow using System.Windows.Media; // VisualCollection using System.Windows.Media.Animation; // Storyboard using System.Windows.Markup; // MarkupExtension -using System.Windows.Threading; // DispatcherObject using System.Threading; // Interlocked using MS.Internal.Data; // BindingValueChangedEventArgs -using System.Globalization; -using System.Reflection; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StyleTypedPropertyAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StyleTypedPropertyAttribute.cs index 72d51a8b0a6..ad8ee3634c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StyleTypedPropertyAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/StyleTypedPropertyAttribute.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemColors.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemColors.cs index 4f58e6adb16..bf270633b3d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemColors.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemColors.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.Windows.Media; -using Microsoft.Win32; using MS.Win32; using UISettingsRCW = MS.Internal.WindowsRuntime.Windows.UI.ViewManagement.UISettingsRCW; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemCommands.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemCommands.cs index 365abcf1b73..052d84f902a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemCommands.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemCommands.cs @@ -3,14 +3,12 @@ // See the LICENSE file in the project root for more information. +using System.Windows.Input; +using System.Windows.Interop; +using Standard; + namespace System.Windows { - using System; - using System.Security; - using System.Windows.Input; - using System.Windows.Interop; - using Standard; - public static class SystemCommands { public static RoutedCommand CloseWindowCommand { get; private set; } diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemFonts.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemFonts.cs index 2034e9141a3..f76d65ca79a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemFonts.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemFonts.cs @@ -2,16 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.ComponentModel; -using System.Runtime.InteropServices; using System.Windows.Media; -using System.Security; -using System.Windows.Controls.Primitives; -using Microsoft.Win32; -using MS.Win32; -using MS.Internal; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemKeyConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemKeyConverter.cs index fc369fe7cfd..332b7a6329b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemKeyConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemKeyConverter.cs @@ -9,10 +9,8 @@ // // -using System; using System.ComponentModel; using System.Globalization; -using System.ComponentModel.Design.Serialization; using System.Windows.Controls; using System.Windows.Controls.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemParameters.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemParameters.cs index e179d9e637f..707ce891695 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemParameters.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemParameters.cs @@ -2,19 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; -using System.Security; using System.Windows.Controls.Primitives; using System.Windows.Media; -using Microsoft.Win32; using MS.Win32; using MS.Internal; using MS.Internal.Interop; -using MS.Internal.KnownBoxes; // Disable pragma warnings to enable PREsharp pragmas #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemResourceHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemResourceHost.cs index aaa1f574449..519eede3fa6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemResourceHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemResourceHost.cs @@ -6,8 +6,6 @@ // // Description: Object supplied as the source when the resource is fetched from the SystemResources // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemResources.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemResources.cs index 0252f614fba..1746f86fc5c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemResources.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemResources.cs @@ -5,18 +5,14 @@ // // -using System; -using System.Diagnostics; using System.IO; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.Linq; -using System.Security; using System.Windows.Threading; using System.Text; using MS.Utility; @@ -24,11 +20,8 @@ using System.Windows.Markup; using System.Windows.Diagnostics; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Input; using System.Windows.Interop; -using System.Windows.Resources; -using System.Windows.Appearance; using MS.Win32; using MS.Internal; using MS.Internal.Ink; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemThemeKey.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemThemeKey.cs index c4273e026f8..402abd630d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemThemeKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/SystemThemeKey.cs @@ -5,13 +5,8 @@ // // -using System; using System.Reflection; -using System.Text; -using System.Windows; -using System.Windows.Markup; using System.ComponentModel; -using System.Diagnostics; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExpression.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExpression.cs index 96a2cb95493..ee3deafdf5f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExpression.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExpression.cs @@ -10,11 +10,7 @@ * * \***************************************************************************/ -using System; using System.ComponentModel; -using System.Windows; -using System.Windows.Data; -using System.Windows.Markup; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExpressionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExpressionConverter.cs index 2ab8c56b01c..0ba2c36a76c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExpressionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExpressionConverter.cs @@ -9,10 +9,7 @@ * * \***************************************************************************/ -using System; using System.ComponentModel; -using System.Windows; -using System.Windows.Data; using System.Windows.Markup; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExtension.cs index e864b0f2b9f..e0a773f0924 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExtension.cs @@ -10,9 +10,7 @@ * * \***************************************************************************/ -using System; using System.ComponentModel; -using System.Windows; using System.Windows.Data; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExtensionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExtensionConverter.cs index ac1e7976e0a..14741b6d537 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExtensionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateBindingExtensionConverter.cs @@ -10,12 +10,9 @@ // // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Globalization; -using System.Windows; -using System.Security; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContent.cs index ac08d96250f..a161353245c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContent.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContent.cs @@ -5,9 +5,7 @@ using System.Xaml; using System.Xaml.Schema; using System.Xaml.Permissions; -using System.Collections.Generic; using System.Windows.Controls; -using System.Diagnostics; using System.Windows.Data; using System.Windows.Diagnostics; using System.Windows.Markup; @@ -16,7 +14,6 @@ using System.ComponentModel; using System.Collections; using System.Collections.Specialized; -using System.Security; using MS.Internal.Xaml.Context; using System.Windows.Baml2006; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContentLoader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContentLoader.cs index 10b8b54bcb5..84ef9362679 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContentLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateContentLoader.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; using System.Xaml; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateKey.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateKey.cs index 6d448cfb744..ad9c7479ea7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateKey.cs @@ -7,11 +7,9 @@ // Description: Base class for DataTemplateKey, TableTemplateKey. // -using System; using System.Reflection; using System.ComponentModel; using System.Windows.Markup; -using MS.Internal.Data; // DataBindEngine.EnglishUSCulture namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateNameScope.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateNameScope.cs index 679d9774729..b042497646c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateNameScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateNameScope.cs @@ -10,11 +10,7 @@ * * \***************************************************************************/ -using System; -using System.Diagnostics; using MS.Internal; -using MS.Utility; -using System.Collections.Generic; using System.Collections.Specialized; using System.Collections; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplatePartAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplatePartAttribute.cs index 481e43dd9a2..a63dd83b5ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplatePartAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplatePartAttribute.cs @@ -5,8 +5,6 @@ // // -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateVisualStateAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateVisualStateAttribute.cs index c101550c3bd..36170e80f59 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateVisualStateAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TemplateVisualStateAttribute.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TextPanelProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TextPanelProperties.cs index 983a9579787..dd430ec14f2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TextPanelProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TextPanelProperties.cs @@ -9,10 +9,6 @@ // // -using System; -using System.Windows; -using System.Windows.Media; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeDictionaryExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeDictionaryExtension.cs index 768066c22bb..3c63d98d8aa 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeDictionaryExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeDictionaryExtension.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; using System.Text; -using System.Windows; -using System.Windows.Data; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeInfoAttribute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeInfoAttribute.cs index a98212d6102..8b696f32163 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeInfoAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeInfoAttribute.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Reflection; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeManager.cs index 658194ab787..98840099d56 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeManager.cs @@ -1,12 +1,5 @@ -using Standard; using Microsoft.Win32; -using System.Collections; -using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Windows.Interop; -using System.Windows.Media; using System.Windows.Appearance; -using System.Diagnostics; namespace System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeMode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeMode.cs index eafa4be7811..7c4f64f1c38 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeMode.cs @@ -2,18 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; - -using System.ComponentModel.Design.Serialization; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Windows; -using System.Windows.Markup; -using System.Security; -using MS.Internal; -using MS.Utility; using System.Diagnostics.CodeAnalysis; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeModeConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeModeConverter.cs index bc6c90f113f..d6242e05486 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeModeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThemeModeConverter.cs @@ -2,18 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Globalization; using System.Reflection; -using System.Windows; -using System.Windows.Markup; -using System.Security; -using MS.Internal; -using MS.Utility; using System.Diagnostics.CodeAnalysis; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThicknessConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThicknessConverter.cs index 8ff96de5cb4..b01564f01b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThicknessConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/ThicknessConverter.cs @@ -9,17 +9,12 @@ // // -using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Runtime.CompilerServices; using System.Globalization; using System.Reflection; -using System.Text; -using System.Windows; -using System.Security; using MS.Internal; -using MS.Utility; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TreeChangeInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TreeChangeInfo.cs index 7e12f8e63d1..7827d2e5549 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TreeChangeInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TreeChangeInfo.cs @@ -11,12 +11,6 @@ // // -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Media; -using System.Windows.Controls; -using System.Windows.Documents; using MS.Internal; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TreeWalkHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TreeWalkHelper.cs index 7eeee1fa005..14ac293fdc0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TreeWalkHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TreeWalkHelper.cs @@ -11,12 +11,8 @@ \***************************************************************************/ using MS.Internal; using MS.Utility; -using System; -using System.Diagnostics; -using System.Security; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Documents; using System.Windows.Media; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Trigger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Trigger.cs index fd8b733e404..06d06a49883 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Trigger.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Trigger.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System.IO; using System.Collections.Specialized; using System.ComponentModel; using System.Windows.Markup; - -using System; -using System.Diagnostics; using System.Globalization; -using MS.Internal; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerAction.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerAction.cs index 97ab927d9d8..c4286c403b8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerAction.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerAction.cs @@ -13,7 +13,6 @@ * * \***************************************************************************/ -using System; using MS.Internal; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerActionCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerActionCollection.cs index 2428b0f6fb8..230e7927fa2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerActionCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerActionCollection.cs @@ -11,9 +11,7 @@ * \***************************************************************************/ using System.Collections; // IList -using System.Collections.Generic; // IList using MS.Internal; -using System.Diagnostics; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerBase.cs index 226bcab846b..b0d497d134b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerBase.cs @@ -3,15 +3,10 @@ // See the LICENSE file in the project root for more information. using System.Collections.Specialized; -using System.IO; -using System.Windows.Markup; using MS.Utility; using MS.Internal; - -using System; using System.ComponentModel; // DesignerSerializationVisibilityAttribute & DefaultValue -using System.Diagnostics; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerCollection.cs index 43a074318b4..c4803eb847e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/TriggerCollection.cs @@ -10,8 +10,6 @@ * * \***************************************************************************/ -using System.Diagnostics; -using System.Collections.Generic; using System.Collections.ObjectModel; // Collection using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualState.cs index d19531b0dd9..227f70aee9b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualState.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualState.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. -using System.Windows; using System.Windows.Markup; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateChangedEventArgs.cs index 52c81b1904c..2413b2317d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateChangedEventArgs.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Controls; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateGroup.cs index c17a2185855..3d6ddb939e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateGroup.cs @@ -3,12 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Windows; -using System.Windows.Controls; using System.Windows.Markup; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateManager.cs index 54e3ce0fd5d..0c3017b7d2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualStateManager.cs @@ -3,16 +3,11 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Windows; -using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Animation; using MS.Internal; // ObservableCollectionDefaultValueFactory -using System.Security; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualTransition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualTransition.cs index 5d846aa1c48..66ae6fb270f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualTransition.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/VisualTransition.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.ComponentModel; -using System.Windows; using System.Windows.Markup; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Window.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Window.cs index dc4729fca43..ad3c6198892 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Window.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Window.cs @@ -2,20 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Implements the base Avalon Window class -// - -using System; - using System.Collections; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; -using System.Security; using System.Windows.Appearance; using System.Windows.Automation.Peers; using System.Windows.Controls; @@ -29,12 +19,12 @@ using MS.Internal.Interop; using MS.Internal.KnownBoxes; using MS.Win32; -using Microsoft.Win32; using System.Diagnostics.CodeAnalysis; -using HRESULT = MS.Internal.Interop.HRESULT; using BuildInfo = MS.Internal.PresentationFramework.BuildInfo; using SNM = Standard.NativeMethods; +using HRESULT = MS.Internal.Interop.HRESULT; +using Win32Error = MS.Internal.Interop.Win32Error; //In order to avoid generating warnings about unknown message numbers and //unknown pragmas when compiling your C# source code with the actual C# compiler, @@ -43,9 +33,6 @@ namespace System.Windows { - /// - /// - /// [Localizability(LocalizationCategory.Ignore)] public class Window : ContentControl, IWindowService { @@ -566,28 +553,28 @@ public static Window GetWindow(DependencyObject dependencyObject) /// Gets or sets the Fluent theme mode of the window. /// /// - /// Setting this property controls if Fluent theme is loaded in Light, Dark or System mode. + /// Setting this property controls if Fluent theme is loaded in Light, Dark or System mode. /// It also controls the application of backdrop and darkmode on window. /// The four values for the ThemeMode enum are : - /// - No Fluent theme is loaded. However, if is not None, + /// - No Fluent theme is loaded. However, if is not None, /// then the window will appear as defined in . /// - Fluent theme is loaded based on the system theme. /// - Fluent theme is loaded in Light mode. /// - Fluent theme is loaded in Dark mode. - /// + /// /// These values are predefined in struct. - /// + /// /// The default value is . - /// + /// /// and are designed to be in sync with each other. - /// Syncing is done in order to avoid UI inconsistencies, for example, if the application is in dark mode - /// but the windows are in light mode or vice versa. - /// + /// Syncing is done in order to avoid UI inconsistencies, for example, if the application is in dark mode + /// but the windows are in light mode or vice versa. + /// /// Setting this property loads the Fluent theme dictionaries in the window resources. /// So, if you set this property, it is preferrable to not include Fluent theme dictionaries /// in the window resources manually. If you do, the Fluent theme dictionaries added in the window /// resources will take precedence over the ones added by setting this property. - /// + /// /// This property is experimental and may be removed in future versions. /// [Experimental("WPF0001")] @@ -607,10 +594,10 @@ public ThemeMode ThemeMode { throw new ArgumentException(string.Format("ThemeMode value {0} is invalid. Use None, System, Light or Dark", value)); } - + ThemeMode oldTheme = _themeMode; _themeMode = value; - + if(!AreResourcesInitialized) { ThemeManager.OnWindowThemeChanged(this, oldTheme, value); @@ -1980,7 +1967,7 @@ protected virtual void OnSourceInitialized(EventArgs e) { VerifyContextAndObjectState(); - // Setting WindowBackdrop + // Setting WindowBackdrop WindowBackdropManager.SetBackdrop(this, WindowBackdropType); EventHandler handler = (EventHandler)Events[EVENT_SOURCEINITIALIZED]; @@ -2162,7 +2149,7 @@ internal void AddFluentDictionary(ResourceDictionary value, out bool invalidateR if(_reloadFluentDictionary && !AreResourcesInitialized) { - if(value != null && ThemeMode != ThemeMode.None) + if(value != null && ThemeMode != ThemeMode.None) { value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(ThemeMode)); invalidateResources = true; @@ -3159,7 +3146,7 @@ internal WindowBackdropType WindowBackdropType typeof(WindowBackdropType), typeof(Window), new PropertyMetadata( - WindowBackdropType.MainWindow, + WindowBackdropType.MainWindow, new PropertyChangedCallback(OnBackdropTypeChanged))); private static void OnBackdropTypeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) @@ -7272,7 +7259,7 @@ private EventHandlerList Events private Window _ownerWindow; // owner window private bool _reloadFluentDictionary = false; private bool _resourcesInitialized = false; - + // keeps track of the owner hwnd // we need this one b/c a owner/parent // can be set through the WindowInteropHandler diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/WindowCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/WindowCollection.cs index 77d63fd5205..c094eaa5081 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/WindowCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/WindowCollection.cs @@ -9,12 +9,11 @@ // that have been opened in the current application. // using System.Collections; -using System.Diagnostics; namespace System.Windows { #region WindowCollection class - + /// /// WindowCollection can be used to interate over all the windows that have been /// opened in the current application. diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/InstallationError.xaml.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/InstallationError.xaml.cs index 16ea9d18176..e73abc94bd8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/InstallationError.xaml.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/InstallationError.xaml.cs @@ -3,16 +3,12 @@ // See the LICENSE file in the project root for more information. using System; -using System.Reflection; using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; using System.Windows.Threading; using System.Windows.Input; using System.Diagnostics; using System.IO; using System.Windows.Interop; -using System.Security; namespace Microsoft.Internal.DeploymentUI { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/AccountType.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/AccountType.cs index 9d6046c6047..f8e4f412001 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/AccountType.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/AccountType.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/CommandEnforcer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/CommandEnforcer.cs index e866a3cc0de..8cdbacdcf99 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/CommandEnforcer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/CommandEnforcer.cs @@ -4,13 +4,10 @@ // Description: Manager for Enforcing RM Permissions on DocumentApplication-specific RoutedUICommands. -using MS.Internal.Documents; using System; using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Security; using System.Windows.Input; -using System.Windows.TrustUI; namespace MS.Internal.Documents.Application { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/CriticalFileToken.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/CriticalFileToken.cs index f58bdecc06a..7b0d2fada6a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/CriticalFileToken.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/CriticalFileToken.cs @@ -7,29 +7,28 @@ // user has authorized us to manipulate. using System; -using System.Security; namespace MS.Internal.Documents.Application { -/// -/// The CriticalFileToken class ensures file represented is the one the -/// user has authorized us to manipulate. -/// -/// -/// Responsibility: -/// Allow XpsViewer to safely pass around information on which file the user -/// has authorized us to manipulate on thier behalf. Ensure that the creator -/// of the object has the privledge to manipulate the file represented. -/// -/// Design Comments: -/// Many classes need to perform privledged operations files on behalf of the -/// user. However only DocObjHost and FilePresentation can assert it is user -/// sourced data. -/// -/// As such we need them to create this 'token' which will will use as the only -/// source of authoritative information for which files we are manipulating. -/// -internal sealed class CriticalFileToken + /// + /// The CriticalFileToken class ensures file represented is the one the + /// user has authorized us to manipulate. + /// + /// + /// Responsibility: + /// Allow XpsViewer to safely pass around information on which file the user + /// has authorized us to manipulate on thier behalf. Ensure that the creator + /// of the object has the privledge to manipulate the file represented. + /// + /// Design Comments: + /// Many classes need to perform privledged operations files on behalf of the + /// user. However only DocObjHost and FilePresentation can assert it is user + /// sourced data. + /// + /// As such we need them to create this 'token' which will will use as the only + /// source of authoritative information for which files we are manipulating. + /// + internal sealed class CriticalFileToken { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/Document.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/Document.cs index f43554e4839..57ba6277df8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/Document.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/Document.cs @@ -7,49 +7,48 @@ using System; using System.IO; -using System.Security; namespace MS.Internal.Documents.Application { -/// -/// Defines the common contract for all underlying documents in XpsViewer. -/// -/// -/// Responsibility: -/// This class imposes a contract which provides for: -/// -/// - chaining dependencies -/// - expose stream which providers may manipulate at each level -/// - disposing of resources in order of dependency -/// -/// Design Comments: -/// Packages are dependent on EncryptedPackages who are dependent on FileStreams -/// however all these classes are very different in function. However they -/// share a need for understanding dependencies and all use streams (some -/// consuming, some publshing and others both). -/// -/// Providing a chain ensures dependent operations are executed in order. -/// -/// The design of exsiting components also requires us to define three common -/// types of streams (Source - the original data, Workspace - a type of change -/// log, Destination - the place to save changes). -/// -/// Examples: -/// - FileController need to substitue streams as as we can not edit in -/// place and may not be able to re-open files on some OSes (hence -/// IsRebindNeed). -/// -/// - Protected documents need to decrypt the underlying FileStream before -/// passing them up to the PackageDocument. (hence Source). -/// -/// - As Package does not allow us to discard changes we need a seperate stream -/// for working on packages (hence Workspace). -/// -/// - When Protected documents have a key change (PublishLicense) they need -/// to read from the source, and write to the destination at the same time -/// (hence Destination & IsFileCopySafe). -/// -internal abstract class Document : IChainOfDependenciesNode, IDisposable + /// + /// Defines the common contract for all underlying documents in XpsViewer. + /// + /// + /// Responsibility: + /// This class imposes a contract which provides for: + /// + /// - chaining dependencies + /// - expose stream which providers may manipulate at each level + /// - disposing of resources in order of dependency + /// + /// Design Comments: + /// Packages are dependent on EncryptedPackages who are dependent on FileStreams + /// however all these classes are very different in function. However they + /// share a need for understanding dependencies and all use streams (some + /// consuming, some publshing and others both). + /// + /// Providing a chain ensures dependent operations are executed in order. + /// + /// The design of exsiting components also requires us to define three common + /// types of streams (Source - the original data, Workspace - a type of change + /// log, Destination - the place to save changes). + /// + /// Examples: + /// - FileController need to substitue streams as as we can not edit in + /// place and may not be able to re-open files on some OSes (hence + /// IsRebindNeed). + /// + /// - Protected documents need to decrypt the underlying FileStream before + /// passing them up to the PackageDocument. (hence Source). + /// + /// - As Package does not allow us to discard changes we need a seperate stream + /// for working on packages (hence Workspace). + /// + /// - When Protected documents have a key change (PublishLicense) they need + /// to read from the source, and write to the destination at the same time + /// (hence Destination & IsFileCopySafe). + /// + internal abstract class Document : IChainOfDependenciesNode, IDisposable { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentApplicationJournalEntryEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentApplicationJournalEntryEventArgs.cs index beac7046cde..7ba6518e738 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentApplicationJournalEntryEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentApplicationJournalEntryEventArgs.cs @@ -5,10 +5,6 @@ // Description: Used as a custom journal entry for changes in the DocumentApplication's UI state. using System; -using System.Runtime.Serialization; -using System.Windows; -using System.Windows.Documents; -using System.Windows.Navigation; namespace MS.Internal.Documents.Application { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentManager.cs index 4cee39f7662..aa052231ecc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentManager.cs @@ -9,30 +9,29 @@ using System; using System.Collections.Generic; using System.IO; -using System.Security; namespace MS.Internal.Documents.Application { -/// -/// Exposes the basic operations that can be performed on documents. (Open, -/// EnableEdit, Save) -/// -/// -/// Responsibility: -/// The class is responsible for delegating the work to the appropriate -/// controller(s) in the order needed based on document dependencies. -/// -/// Design Comments: -/// Packages are dependent on EncryptedPackages who are dependent on FileStreams -/// however all these classes are very different in function. -/// -/// By design once a controller has reported handling a document it will not be -/// given to other controllers. A controller should not see documents they are -/// not in the dependency chain for. -/// -/// Example: FileController should never see RightsDocument. -/// -internal sealed class DocumentManager + /// + /// Exposes the basic operations that can be performed on documents. (Open, + /// EnableEdit, Save) + /// + /// + /// Responsibility: + /// The class is responsible for delegating the work to the appropriate + /// controller(s) in the order needed based on document dependencies. + /// + /// Design Comments: + /// Packages are dependent on EncryptedPackages who are dependent on FileStreams + /// however all these classes are very different in function. + /// + /// By design once a controller has reported handling a document it will not be + /// given to other controllers. A controller should not see documents they are + /// not in the dependency chain for. + /// + /// Example: FileController should never see RightsDocument. + /// + internal sealed class DocumentManager : ChainOfResponsiblity { #region Constructors diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentProperties.cs index 9939274c6e4..641a55b8a58 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentProperties.cs @@ -7,12 +7,8 @@ using System; using System.Drawing; -using System.Globalization; using System.IO; using System.IO.Packaging; // For Package -using System.Security; // For CriticalData -using System.Windows.TrustUI; // For string resources -using System.Windows.Xps.Packaging; // For XpsDocument namespace MS.Internal.Documents.Application { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentPropertiesDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentPropertiesDialog.cs index 36a3561cd52..a7d94eb8aac 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentPropertiesDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentPropertiesDialog.cs @@ -4,15 +4,8 @@ // Description: // DocumentPropertiesDialog - Dialog to view the current document properties. -using MS.Internal.Documents; using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; using System.Globalization; -using System.IO.Packaging; // For Package -using System.Security; -using System.Text; using System.Windows.Forms; using System.Windows.TrustUI; // For string resources diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentStream.cs index 7de9174e4a4..5b2c7b79fcc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/DocumentStream.cs @@ -12,31 +12,30 @@ using System; using System.Globalization; using System.IO; -using System.Security; using System.Security.AccessControl; using System.Windows.TrustUI; namespace MS.Internal.Documents.Application { -/// -/// An XpsDocument stream represents the stream data for the document -/// regardless of implementation of the backing streams. It has logical -/// operations that allow elevating from Read to SafeWrite and editing in place. -/// -/// -/// Responsibility: -/// The class must hide the location and implemenation complexity of -/// performing simple logical operations needed by the system. -/// -/// Design Comments: -/// The need for this is primarly driven from two factors: -/// -/// - Package which does not allow use to discard changes -/// -/// - RightsManagement where key changes make it impossible to edit a -/// document in place -/// -internal sealed class DocumentStream : StreamProxy, IDisposable + /// + /// An XpsDocument stream represents the stream data for the document + /// regardless of implementation of the backing streams. It has logical + /// operations that allow elevating from Read to SafeWrite and editing in place. + /// + /// + /// Responsibility: + /// The class must hide the location and implemenation complexity of + /// performing simple logical operations needed by the system. + /// + /// Design Comments: + /// The need for this is primarly driven from two factors: + /// + /// - Package which does not allow use to discard changes + /// + /// - RightsManagement where key changes make it impossible to edit a + /// document in place + /// + internal sealed class DocumentStream : StreamProxy, IDisposable { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FileController.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FileController.cs index be156a5abd9..e1a42043268 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FileController.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FileController.cs @@ -8,17 +8,16 @@ using System; using System.IO; -using System.Security; using MS.Internal.Security; // AttachmentService namespace MS.Internal.Documents.Application { -/// -/// Responsible for the lifecycle of the FileDocument and the actions that can -/// be performed on it. -/// -/// -internal class FileController : IDocumentController + /// + /// Responsible for the lifecycle of the FileDocument and the actions that can + /// be performed on it. + /// + /// + internal class FileController : IDocumentController { #region IDocumentController Members //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FileDocument.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FileDocument.cs index e634db58e73..56a028e02b8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FileDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FileDocument.cs @@ -6,17 +6,15 @@ // Extends StreamDocument with CriticalFileTokens for use by FileController // FilePresentation and DocumentStream. -using System; using System.IO; -using System.Security; namespace MS.Internal.Documents.Application { -/// -/// Extends StreamDocument with CriticalFileTokens for use by FileController -/// FilePresentation and DocumentStream. -/// -internal class FileDocument : StreamDocument + /// + /// Extends StreamDocument with CriticalFileTokens for use by FileController + /// FilePresentation and DocumentStream. + /// + internal class FileDocument : StreamDocument { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FilePresentation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FilePresentation.cs index 26411c56128..4a6911f72d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FilePresentation.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/FilePresentation.cs @@ -7,21 +7,20 @@ using System; using System.IO; -using System.Security; using System.Windows.Forms; using System.Windows.TrustUI; namespace MS.Internal.Documents.Application { -/// -/// Interacts with user on file based information for XpsViewer. -/// -/// -/// Responsibility: -/// Should be the only class that interacts with the user with or for file -/// location information. -/// -internal static class FilePresentation + /// + /// Interacts with user on file based information for XpsViewer. + /// + /// + /// Responsibility: + /// Should be the only class that interacts with the user with or for file + /// location information. + /// + internal static class FilePresentation { #region Internal Methods //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/HostedController.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/HostedController.cs index 796e2c7d800..1d8cd695f05 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/HostedController.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/HostedController.cs @@ -5,20 +5,14 @@ // Description: // Responsible for the lifecycle of the Document when hosted in a browser. -using System; -using System.Security; -using System.Windows.TrustUI; -using System.Windows.Interop; -using MS.Internal; - namespace MS.Internal.Documents.Application { -/// -/// Responsible for the lifecycle of the Document when hosted in a browser. -/// -/// + /// + /// Responsible for the lifecycle of the Document when hosted in a browser. + /// + /// -internal class HostedController : IDocumentController + internal class HostedController : IDocumentController { #region IDocumentController Members //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/IDocumentController.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/IDocumentController.cs index c20f053fc67..5da91e5f4b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/IDocumentController.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/IDocumentController.cs @@ -4,16 +4,13 @@ // Description: Defines the interface for participating in the document lifecycle. -using System; -using System.Collections.Generic; - namespace MS.Internal.Documents.Application { -/// -/// Defines the interface for participating in the document lifecycle. -/// -/// -internal interface IDocumentController : IChainOfResponsibiltyNode + /// + /// Defines the interface for participating in the document lifecycle. + /// + /// + internal interface IDocumentController : IChainOfResponsibiltyNode { /// /// Implementors should prepare Document.Workspace for editing purposes diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/NavigationHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/NavigationHelper.cs index a009d82a75e..f984588d67a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/NavigationHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/NavigationHelper.cs @@ -7,10 +7,6 @@ // with Uri navigations. using System; -using System.Security; -using System.Windows.Interop; -using System.Windows.TrustUI; -using MS.Internal; namespace MS.Internal.Documents.Application { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PackageController.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PackageController.cs index 45c8c2bde24..cad56e2ce45 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PackageController.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PackageController.cs @@ -7,19 +7,16 @@ // be performed on it. using System; -using System.IO.Packaging; -using System.Security; using System.Windows.TrustUI; -using System.Windows.Xps.Packaging; namespace MS.Internal.Documents.Application { -/// -/// Responsible for the lifecycle of the PackageDocument and the actions that can -/// be performed on it. -/// -/// -internal class PackageController : IDocumentController + /// + /// Responsible for the lifecycle of the PackageDocument and the actions that can + /// be performed on it. + /// + /// + internal class PackageController : IDocumentController { #region IDocumentController Members //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PackageDocument.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PackageDocument.cs index 74e1521fc42..3fa2f52526d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PackageDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PackageDocument.cs @@ -4,17 +4,14 @@ // Description: Extends Document with a single member TrancationalPackage. -using System; using System.IO; -using System.IO.Packaging; -using System.Security; namespace MS.Internal.Documents.Application { -/// -/// Extends Document with a single member TrancationalPackage. -/// -internal class PackageDocument : Document + /// + /// Extends Document with a single member TrancationalPackage. + /// + internal class PackageDocument : Document { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PageTextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PageTextBox.cs index 8e733ef4777..68a537357ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PageTextBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/PageTextBox.cs @@ -7,14 +7,12 @@ // DocumentApplicationUI. using System; -using System.ComponentModel; using System.Globalization; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Data; using System.Windows.Input; // For event args using System.Windows.TrustUI; // For string resources diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RestrictedTransactionalPackage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RestrictedTransactionalPackage.cs index 00ab3a60dfe..f09b6512af0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RestrictedTransactionalPackage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RestrictedTransactionalPackage.cs @@ -8,18 +8,15 @@ using System; using System.IO; using System.IO.Packaging; -using System.Security; using System.Windows.TrustUI; -using MS.Internal; - namespace MS.Internal.Documents.Application { -/// -/// This class wraps TransactionalPackage, ensuring that only approved -/// part content types can be written. -/// -internal sealed class RestrictedTransactionalPackage : TransactionalPackage + /// + /// This class wraps TransactionalPackage, ensuring that only approved + /// part content types can be written. + /// + internal sealed class RestrictedTransactionalPackage : TransactionalPackage { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsController.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsController.cs index 66020d164bd..a1070430696 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsController.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsController.cs @@ -6,29 +6,24 @@ // be performed on it. using System; -using System.Collections.Generic; using System.IO; using System.IO.Packaging; -using System.Security; using System.Security.RightsManagement; -using System.Windows; -using System.Windows.TrustUI; // for SR -using MS.Internal.IO.Packaging.CompoundFile; namespace MS.Internal.Documents.Application { -/// -/// Responsible for the lifecycle of the RightsDocument and the actions that can -/// be performed on it. -/// -/// -/// -/// All IDocumentController methods are expected to throw if provided -/// a document that is not a RightsDocument. Users of the IDocumentController -/// interface are expected to use the IChainOfResponsibiltyNode method before -/// calling into the IDocumentController methods to avoid runtime errors. -/// -class RightsController : IDocumentController, IDisposable + /// + /// Responsible for the lifecycle of the RightsDocument and the actions that can + /// be performed on it. + /// + /// + /// + /// All IDocumentController methods are expected to throw if provided + /// a document that is not a RightsDocument. Users of the IDocumentController + /// interface are expected to use the IChainOfResponsibiltyNode method before + /// calling into the IDocumentController methods to avoid runtime errors. + /// + class RightsController : IDocumentController, IDisposable { #region IDocumentController Members //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsDocument.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsDocument.cs index cdcc7adba7f..7ca1b2256c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsDocument.cs @@ -3,15 +3,13 @@ // See the LICENSE file in the project root for more information. using System.IO; using System.IO.Packaging; -using System.Security; -using System.Security.RightsManagement; namespace MS.Internal.Documents.Application { -/// -/// Extends StreamDocument with EncryptedPackageEnvelope for use by RightsController. -/// -internal class RightsDocument : StreamDocument + /// + /// Extends StreamDocument with EncryptedPackageEnvelope for use by RightsController. + /// + internal class RightsDocument : StreamDocument { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsManagementSuppressedStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsManagementSuppressedStream.cs index 37aa8d548bb..c47392eccc4 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsManagementSuppressedStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/RightsManagementSuppressedStream.cs @@ -6,15 +6,13 @@ using System; using System.IO; -using System.Security; -using System.Windows.TrustUI; -using SR=System.Windows.TrustUI.SR; +using SR = System.Windows.TrustUI.SR; namespace MS.Internal.Documents.Application { -internal sealed class RightsManagementSuppressedStream : StreamProxy + internal sealed class RightsManagementSuppressedStream : StreamProxy { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StatusInfoItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StatusInfoItem.cs index 61b8665f39f..62f428dad00 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StatusInfoItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StatusInfoItem.cs @@ -5,13 +5,10 @@ // Description: Used to control an (RM or DigSig) InfoBar and ToolBar item in MongooseUI -using MS.Internal.Documents; using System; -using System.Globalization; using System.Windows; using System.Windows.Controls; using System.Windows.Shapes; -using System.Windows.TrustUI; namespace MS.Internal.Documents.Application { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamDocument.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamDocument.cs index d62034da8e1..9ae966bf0ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamDocument.cs @@ -6,16 +6,15 @@ using System.IO; -using System.Security; namespace MS.Internal.Documents.Application { -/// -/// Extends Document with a support for StreamProxy versus simply stream. -/// -/// The type of stream to back the document with. -/// -internal class StreamDocument : Document where T : StreamProxy + /// + /// Extends Document with a support for StreamProxy versus simply stream. + /// + /// The type of stream to back the document with. + /// + internal class StreamDocument : Document where T : StreamProxy { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamHelper.cs index c64350b8009..cf36d901d5b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamHelper.cs @@ -4,15 +4,14 @@ // Description: A static utilitly class for stream related functions. -using System; using System.IO; namespace MS.Internal.Documents.Application { -/// -/// A static utilitly class for stream related functions. -/// -internal static class StreamHelper + /// + /// A static utilitly class for stream related functions. + /// + internal static class StreamHelper { #region Internal Methods //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamProxy.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamProxy.cs index 3629144f021..1a4fa7159cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamProxy.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/StreamProxy.cs @@ -10,18 +10,17 @@ using System; using System.IO; -using System.Security; using System.Windows.TrustUI; namespace MS.Internal.Documents.Application { -/// -/// Implements the Proxy pattern from Design Patterns for Stream. The intended -/// usage is to control access to the Stream; specifically to allow one to -/// replace the underlying stream. The StreamProxy can also ensure, if -/// desired, that the underlying stream is readonly. -/// -internal class StreamProxy : Stream + /// + /// Implements the Proxy pattern from Design Patterns for Stream. The intended + /// usage is to control access to the Stream; specifically to allow one to + /// replace the underlying stream. The StreamProxy can also ensure, if + /// desired, that the underlying stream is readonly. + /// + internal class StreamProxy : Stream { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/SuppressedPackageProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/SuppressedPackageProperties.cs index c1039d43e77..4c2768807b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/SuppressedPackageProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/SuppressedPackageProperties.cs @@ -8,23 +8,22 @@ using System; using System.IO.Packaging; -using System.Security; namespace MS.Internal.Documents.Application { -/// -/// Responsible for suppressing the Assert for unmanaged code permission and -/// replacing it with SecurityCritical attribute. -/// -/// -/// This is implemented as a decorating proxy where all calls are passed to -/// a target PackageProperties object. The primary mitigation for the -/// asserts is that the class sets the target from EncryptedPackageEnvelope -/// the known good source for the target; as well the entire class is -/// SecurityCritical. -/// -internal class SuppressedProperties : PackageProperties + /// + /// Responsible for suppressing the Assert for unmanaged code permission and + /// replacing it with SecurityCritical attribute. + /// + /// + /// This is implemented as a decorating proxy where all calls are passed to + /// a target PackageProperties object. The primary mitigation for the + /// asserts is that the class sets the target from EncryptedPackageEnvelope + /// the known good source for the target; as well the entire class is + /// SecurityCritical. + /// + internal class SuppressedProperties : PackageProperties { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/Trace.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/Trace.cs index c8e5e334740..42d76eaa8b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/Trace.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/Trace.cs @@ -4,17 +4,15 @@ // Description: Utility class for Trace switches and methods for XpsViewer. -using System; using System.Diagnostics; using System.Globalization; -using System.Security; namespace MS.Internal.Documents.Application { -/// -/// Utility class for Trace switches and methods for XpsViewer. -/// -internal static class Trace + /// + /// Utility class for Trace switches and methods for XpsViewer. + /// + internal static class Trace { #region Internal Methods //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/TransactionalPackage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/TransactionalPackage.cs index 47e40abf3f5..8e0e9311b29 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/TransactionalPackage.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/TransactionalPackage.cs @@ -18,32 +18,27 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.IO.Packaging; -using System.Text; -using System.Security; using System.Windows.TrustUI; -using MS.Internal; - namespace MS.Internal.Documents.Application { -/// -/// This class represents a Package which does not alter the original -/// and writes the changes to a temporary package (when provided) as a -/// type of change log; leaving the original untouched. -/// -/// -/// In the descriptions below the following terms are used: -/// -/// Proxy: This is the reference being given to callers that -/// contains underlying objects. -/// Active: The underlying object that the proxy should pass calls to. -/// Temp: This is the writeable object that contains changes. -/// Original: This is the read only object that has the source data. -/// -internal class TransactionalPackage : Package, IDisposable + /// + /// This class represents a Package which does not alter the original + /// and writes the changes to a temporary package (when provided) as a + /// type of change log; leaving the original untouched. + /// + /// + /// In the descriptions below the following terms are used: + /// + /// Proxy: This is the reference being given to callers that + /// contains underlying objects. + /// Active: The underlying object that the proxy should pass calls to. + /// Temp: This is the writeable object that contains changes. + /// Original: This is the read only object that has the source data. + /// + internal class TransactionalPackage : Package, IDisposable { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/WriteableOnDemandPackagePart.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/WriteableOnDemandPackagePart.cs index 649cb8a23f9..90c0fd44a13 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/WriteableOnDemandPackagePart.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/WriteableOnDemandPackagePart.cs @@ -10,40 +10,36 @@ // replaced with one provided by a delegate. using System; -using System.Collections.Generic; using System.IO; using System.IO.Packaging; -using System.Text; using System.Windows.TrustUI; -using MS.Internal.IO; - namespace MS.Internal.Documents.Application { -/// -/// This class acts as a type of proxy; it is responsible for forwarding all -/// PackagePart requests to the active PackagePart. Unlike a proxy it is -/// controls which part is active. Initially the active part is the stream -/// provided on construction, at the time of the first write operation the -/// active part is replaced with one provided by a delegate.The class will -/// get a writing PackagePart only when needed. -/// -/// -/// When GetStreamCore is called instead of returning the stream directly we -/// return a WriteableOnDemandStream a proxy. We provide this stream proxy -/// a read only stream from the active part and a factory method for -/// creating a writeable stream. -/// -/// When the WriteableStreamFactory method is called, if our active part is -/// writable we simply forward a GetStream request to our active part. -/// -/// Our active part becomes writeable on the first call to our -/// WriteableStreamFactory method, we use the delegate provide at our -/// construction to get a writeable part and set it as the active part. -/// -/// Currently this is the only way our active part becomes writeable. -/// -internal sealed class WriteableOnDemandPackagePart : PackagePart + /// + /// This class acts as a type of proxy; it is responsible for forwarding all + /// PackagePart requests to the active PackagePart. Unlike a proxy it is + /// controls which part is active. Initially the active part is the stream + /// provided on construction, at the time of the first write operation the + /// active part is replaced with one provided by a delegate.The class will + /// get a writing PackagePart only when needed. + /// + /// + /// When GetStreamCore is called instead of returning the stream directly we + /// return a WriteableOnDemandStream a proxy. We provide this stream proxy + /// a read only stream from the active part and a factory method for + /// creating a writeable stream. + /// + /// When the WriteableStreamFactory method is called, if our active part is + /// writable we simply forward a GetStream request to our active part. + /// + /// Our active part becomes writeable on the first call to our + /// WriteableStreamFactory method, we use the delegate provide at our + /// construction to get a writeable part and set it as the active part. + /// + /// Currently this is the only way our active part becomes writeable. + /// + internal sealed class WriteableOnDemandPackagePart : PackagePart { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/ZoomComboBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/ZoomComboBox.cs index 524a8a6c5ad..229872c2b15 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/ZoomComboBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/Application/ZoomComboBox.cs @@ -7,14 +7,12 @@ #pragma warning disable 1634, 1691 using System; -using System.ComponentModel; using System.Globalization; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Automation.Provider; using System.Windows.Controls; -using System.Windows.Data; using System.Windows.Input; // For event args using System.Windows.TrustUI; // For string resources diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/CertificatePriorityStatus.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/CertificatePriorityStatus.cs index 31ab69a72d2..0300c6c6ad7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/CertificatePriorityStatus.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/CertificatePriorityStatus.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/CredentialManagerDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/CredentialManagerDialog.cs index 2120fed3957..3e2b159f593 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/CredentialManagerDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/CredentialManagerDialog.cs @@ -6,15 +6,8 @@ // CredentialManagerDialog is the Forms dialog that allows users to select RM Creds. using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Windows.Forms; using System.Windows.TrustUI; -using System.Security; - -using System.Security.RightsManagement; namespace MS.Internal.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DialogBaseForm.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DialogBaseForm.cs index a866f325ffa..09f9a085ac1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DialogBaseForm.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DialogBaseForm.cs @@ -4,9 +4,7 @@ // Description: // DialogBaseForm: Base class for all DRP dialogs -using System; using System.Windows.Forms; -using System.Drawing; using System.Globalization; using System.Windows.TrustUI; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DialogDivider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DialogDivider.cs index 1900e454dba..dd4418e7b59 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DialogDivider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DialogDivider.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Drawing; -using System.Security; using System.Windows.Forms; -using System.IO.Packaging; -using System.Windows.TrustUI; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DigitalSignature.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DigitalSignature.cs index 1aa2d0bda2e..81bbc21e8f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DigitalSignature.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DigitalSignature.cs @@ -7,10 +7,7 @@ // request. using System; -using System.Collections.Generic; using System.Security.Cryptography.X509Certificates; -using System.IO.Packaging; -using System.Security; // for SecurityCritical attributes using System.Windows.Xps.Packaging; // for XpsDigitalSignature namespace MS.Internal.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DigitalSignatureProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DigitalSignatureProvider.cs index d215f5bd654..f0fb16c314d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DigitalSignatureProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DigitalSignatureProvider.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.IO; using System.IO.Packaging; -using System.Net; -using System.Security; // For elevations using System.Security.Cryptography.X509Certificates; using System.Windows.TrustUI; using System.Windows.Xps.Packaging; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentApplicationDocumentViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentApplicationDocumentViewer.cs index d0a2e44f370..f1d0e47e1f8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentApplicationDocumentViewer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentApplicationDocumentViewer.cs @@ -9,24 +9,17 @@ #pragma warning disable 1634, 1691 using MS.Internal.Documents.Application; -using MS.Internal.IO.Packaging; // For PreloadedPackages using System; -using System.Collections.Generic; -using System.ComponentModel; // For IValueConverter using System.Globalization; // For localization of string conversion using System.IO; -using System.IO.Packaging; // For Packages using System.Printing; // For PrintQueue -using System.Security; using System.Windows; using System.Windows.Controls; // For Page Ranges -using System.Windows.Controls.Primitives; // For ToggleButton using System.Windows.Data; // For data binding using System.Windows.Documents; // For PresentationUIStyleResources using System.Windows.Documents.Serialization; // For WritingCompletedEventArgs using System.Windows.Input; // For focus / input based events using System.Windows.Interop; // For WindowInteropHelper -using System.Windows.Navigation; // For NavigationWindow using System.Windows.Markup; // For MarkupExtension using System.Windows.Threading; // For DispatcherPriority using System.Windows.TrustUI; // For string resources diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentSignatureManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentSignatureManager.cs index e64cf0cdb82..ffeb863c1ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentSignatureManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentSignatureManager.cs @@ -5,18 +5,14 @@ // DocumentSignatureManager is an internal API for Mongoose to deal with Digital Signatures. using System; -using System.Collections; using System.Collections.Generic; using System.Globalization; -using System.IO.Packaging; using System.Reflection; -using System.Security; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Threading; using System.Windows.TrustUI; using System.Windows.Forms; -using System.Windows.Interop; using System.Windows.Threading; using MS.Internal.Documents.Application; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentStatusResources.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentStatusResources.cs index ddc344cb85b..2bbc7cca2e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentStatusResources.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/DocumentStatusResources.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/FindToolBar.xaml.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/FindToolBar.xaml.cs index ca63a8f34df..e88a8e38246 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/FindToolBar.xaml.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/FindToolBar.xaml.cs @@ -4,25 +4,13 @@ // Description: Code behind file for the DocumentViewer FindToolBar. -using System.Security; - using System.Windows.Threading; using System.Windows; using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.TrustUI; using System; -using System.Reflection; -using System.Text; -using System.Globalization; - -using MS.Internal.Documents.Application; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/IDigitalSignatureProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/IDigitalSignatureProvider.cs index ef12895b63a..cfc2f508aa5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/IDigitalSignatureProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/IDigitalSignatureProvider.cs @@ -5,21 +5,20 @@ // Description: IDigSigProvider is a facade to the XPS Document signature implementation. using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Security.Cryptography.X509Certificates; namespace MS.Internal.Documents { -/// -/// IDigSigProvider is a facade to the XPS Document signature implementation. -/// -/// -/// The responsiblity of the facade in this case is to simplify implementation -/// and encapsulate changes. -/// -internal interface IDigitalSignatureProvider + /// + /// IDigSigProvider is a facade to the XPS Document signature implementation. + /// + /// + /// The responsiblity of the facade in this case is to simplify implementation + /// and encapsulate changes. + /// + internal interface IDigitalSignatureProvider { #region Methods //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/IRightsManagementProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/IRightsManagementProvider.cs index cad607e48ab..5a11401e9af 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/IRightsManagementProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/IRightsManagementProvider.cs @@ -5,15 +5,11 @@ // Description: // IRightsManagementProvider is interface that defines the DRP's RM API adapter. -using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Security.RightsManagement; using System.IO; using System.IO.Packaging; -using MS.Internal.Security.RightsManagement; -using System.Security; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage1.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage1.cs index ad4985b20a3..32d8bb05922 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage1.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage1.cs @@ -4,11 +4,6 @@ // Description: // RMEnrollmentPage1 is page 1 of the RM enrollment wizard. -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Windows.Forms; using System.Windows.TrustUI; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage2.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage2.cs index 8a904a6e81b..d80982c591c 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage2.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage2.cs @@ -5,11 +5,6 @@ // Description: // RMEnrollmentPage2 is page 2 of the RM enrollment wizard. -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Windows.Forms; using System.Windows.TrustUI; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage3.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage3.cs index 62204c76ca1..5ab84481c64 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage3.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMEnrollmentPage3.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Windows.Forms; using System.Windows.TrustUI; namespace MS.Internal.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPermissions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPermissions.cs index f739e328363..f82f0b360b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPermissions.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPermissions.cs @@ -4,14 +4,8 @@ using System; using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Text; using System.Windows.Forms; -using System.Collections; using System.Windows.TrustUI; -using System.Security; -using System.Security.RightsManagement; using MS.Internal.Documents.Application; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPublishingDialog.RightsTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPublishingDialog.RightsTable.cs index 72e683e0f81..905abe98bc1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPublishingDialog.RightsTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPublishingDialog.RightsTable.cs @@ -9,8 +9,6 @@ using System; using System.Collections.Generic; using System.Drawing; -using System.Globalization; -using System.Security; using System.Windows.Forms; using System.Windows.TrustUI; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPublishingDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPublishingDialog.cs index 829a3fec8f3..9da3eac5ba5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPublishingDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RMPublishingDialog.cs @@ -6,17 +6,12 @@ using Microsoft.Win32; using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.ComponentModel; using System.Drawing; using System.Globalization; using System.IO; -using System.Security; using System.Security.RightsManagement; -using System.Text; -using System.Text.RegularExpressions; using System.Windows; using System.Windows.Forms; using System.Windows.TrustUI; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RequestedSignatureDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RequestedSignatureDialog.cs index 9e6a4b4ab2f..9ca8c58a902 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RequestedSignatureDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RequestedSignatureDialog.cs @@ -3,10 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Windows.Forms; using System.Windows.TrustUI; namespace MS.Internal.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementLicense.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementLicense.cs index 5f37777acc3..7946607b12a 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementLicense.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementLicense.cs @@ -3,10 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections; -using System.IO.Packaging; -using System.Security.RightsManagement; -using System.Security; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementManager.cs index 728b96d01ac..6ebc8c7aae1 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementManager.cs @@ -11,7 +11,6 @@ using System.Collections.Generic; using System.IO; using System.IO.Packaging; -using System.Security; using System.Security.RightsManagement; using System.Text; using System.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementProvider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementProvider.cs index da7fe05244d..e3f176d20d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementProvider.cs @@ -7,26 +7,24 @@ using System.Collections.ObjectModel; using System.IO; using System.IO.Packaging; -using System.Security; using System.Security.RightsManagement; -using System.Windows.TrustUI; using MS.Internal.Documents.Application; using Microsoft.Win32; -using SR=System.Windows.TrustUI.SR; +using SR = System.Windows.TrustUI.SR; namespace MS.Internal.Documents { -/// -/// RightsManagementProvider is used to connect DRP to RM APIs -/// -/// -/// This class is a facade for the RM APIs. It is the model between the Manager -/// and the EncryptedPackageEnvelope and System.Security.RightsManagement classes. -/// -internal class RightsManagementProvider : IRightsManagementProvider, IDisposable + /// + /// RightsManagementProvider is used to connect DRP to RM APIs + /// + /// + /// This class is a facade for the RM APIs. It is the model between the Manager + /// and the EncryptedPackageEnvelope and System.Security.RightsManagement classes. + /// + internal class RightsManagementProvider : IRightsManagementProvider, IDisposable { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementResourceHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementResourceHelper.cs index 83333b6b12e..d4e3c835f35 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementResourceHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementResourceHelper.cs @@ -2,19 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; -using System.Collections; -using System.Drawing; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Windows.TrustUI; using System.Globalization; // For localization of string conversion -using System.Security.Cryptography.X509Certificates; using System.Security.RightsManagement; -using System.Security; namespace MS.Internal.Documents { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementStatus.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementStatus.cs index a41f4ba6325..880192a8f3f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementStatus.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementStatus.cs @@ -4,8 +4,6 @@ // Description: // RMStatus enum for overall status of document RM. -using System; - namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementUser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementUser.cs index 642d522ea39..a5dbf2068ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementUser.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/RightsManagementUser.cs @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; using System.Security.RightsManagement; using System.Windows.TrustUI; -namespace MS.Internal.Documents +namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureResourceHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureResourceHelper.cs index c108647ee4b..cd4e430f3c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureResourceHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureResourceHelper.cs @@ -5,18 +5,13 @@ // Description: // SignatureResourceHelper is a helper class used to get resources. using System; -using System.Collections; using Drawing = System.Drawing; using System.Globalization; -using System.IO; -using System.Security.Cryptography.X509Certificates; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Windows.TrustUI; -using System.Security; using MS.Internal.Documents.Application; diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureStatus.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureStatus.cs index 5e2f593c301..4b75b71a4a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureStatus.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureStatus.cs @@ -4,8 +4,6 @@ // Description: // SignatureStatus enum for status of applied signatures. -using System; - namespace MS.Internal.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureSummaryDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureSummaryDialog.cs index 279f5e00a82..97403453bda 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureSummaryDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SignatureSummaryDialog.cs @@ -9,12 +9,9 @@ // dialog types and others are only used in one or the other. using System; using System.Collections.Generic; -using System.ComponentModel; using System.Diagnostics; using System.Drawing; -using System.Security; using System.Windows.Forms; -using System.IO.Packaging; using System.Windows.TrustUI; namespace MS.Internal.Documents diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SigningDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SigningDialog.cs index 376ebdbec3d..1c87bf5af85 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SigningDialog.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SigningDialog.cs @@ -5,9 +5,7 @@ // Description: // SigningDialog is the Forms dialog that allows users to select signing parameters. using System; -using System.ComponentModel; using System.Drawing; -using System.Windows.Forms; using System.Windows.TrustUI; using System.Security.Cryptography.X509Certificates; using System.Globalization; // For localization of string conversion diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SigningProgress.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SigningProgress.cs index 89f4dbf878a..1d65ea97a91 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SigningProgress.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/MS/Internal/Documents/SigningProgress.cs @@ -8,17 +8,11 @@ // users when a long, blocking operation on XPSViewer's main thread is // running (and blocking). using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Security; using System.Threading; using System.Windows.Forms; -using System.Windows.TrustUI; -using MS.Internal.Documents.Application; namespace MS.Internal.Documents -{ +{ internal sealed partial class ProgressDialog : DialogBaseForm { #region Constructors diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/OtherAssemblyAttrs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/OtherAssemblyAttrs.cs index c045475c30c..afd889d5f81 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/OtherAssemblyAttrs.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/OtherAssemblyAttrs.cs @@ -1,14 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - -using System.Security; - using Microsoft.Internal; using System.Runtime.CompilerServices; -[assembly:InternalsVisibleTo(BuildInfo.PresentationFramework)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFramework)] // Add references for the themes. This will only add support for generic.xaml // This will have to be edited to add support for regular theme files (if required). diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/PresentationUIStyleResources.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/PresentationUIStyleResources.cs index a930bae7fae..320f2229003 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/PresentationUIStyleResources.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/PresentationUIStyleResources.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using System.Windows; -using System.Windows.Controls; - - - namespace System.Windows.Documents { /// diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/TenFeetInstallationError.xaml.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/TenFeetInstallationError.xaml.cs index 2452a654878..ca9086a48fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/TenFeetInstallationError.xaml.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/TenFeetInstallationError.xaml.cs @@ -3,16 +3,12 @@ // See the LICENSE file in the project root for more information. using System; -using System.Reflection; using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; using System.Windows.Threading; using System.Windows.Input; using System.Diagnostics; using System.IO; using System.Windows.Interop; -using System.Security; namespace Microsoft.Internal.DeploymentUI { diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationUI/TenFeetInstallationProgress.xaml.cs b/src/Microsoft.DotNet.Wpf/src/PresentationUI/TenFeetInstallationProgress.xaml.cs index 238040cb845..f6694d3d828 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationUI/TenFeetInstallationProgress.xaml.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationUI/TenFeetInstallationProgress.xaml.cs @@ -3,15 +3,11 @@ // See the LICENSE file in the project root for more information. using System; -using System.Reflection; using System.Windows; -using System.Windows.Controls; using System.Windows.Threading; using System.Windows.TrustUI; using System.Windows.Input; using System.Globalization; -using System.Resources; -using MS.Internal.AppModel; using System.Windows.Interop; namespace Microsoft.Internal.DeploymentUI diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/BrushProxy.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/BrushProxy.cs index e35325a3760..8c68ec9750c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/BrushProxy.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/BrushProxy.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; // for ArrayList -using System.Collections.Generic; -using System.Diagnostics; #if DEBUG_RASTERIZATION using System.IO; @@ -15,7 +12,6 @@ using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageData. PresentationCore.dll using System.Windows.Media.Imaging; -using System.Security; using System.Windows.Xps.Serialization; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/DrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/DrawingContext.cs index c5d6d6a883e..533c052dfa9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/DrawingContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/DrawingContext.cs @@ -3,17 +3,13 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; // for ArrayList -using System.Diagnostics; using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageData. PresentationCore.dll using System.Windows.Media.Imaging; using System.Printing; -using System.Security; - namespace Microsoft.Internal.AlphaFlattener { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Flattener.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Flattener.cs index ffe259d19a2..5c427fb74e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Flattener.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Flattener.cs @@ -3,21 +3,16 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Collections; // for ArrayList using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageData. PresentationCore.dll using System.Windows.Media.Imaging; -using System.Collections.Generic; using System.IO; using System.Xml; using System.Globalization; using System.Windows.Xps.Serialization; using System.Printing; - -using System.Security; using MS.Utility; namespace Microsoft.Internal.AlphaFlattener diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/ImageProxy.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/ImageProxy.cs index 9817344d9a1..502870a161a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/ImageProxy.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/ImageProxy.cs @@ -3,16 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; // for ArrayList -using System.Collections.Generic; -using System.Diagnostics; - using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageSource. PresentationCore.dll using System.Windows.Media.Imaging; - -using System.Security; //using System.Drawing.Printing; namespace Microsoft.Internal.AlphaFlattener diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Interfaces.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Interfaces.cs index ce668091688..6b1f07ef315 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Interfaces.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Interfaces.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Brush, ImageData, Geometry. PresentationCore.dll -using System.Windows.Media.Imaging; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/MetroDevice.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/MetroDevice.cs index 3e6acc4431c..3b5f035378c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/MetroDevice.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/MetroDevice.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Collections; // for ArrayList -using System.Collections.Generic; // for Dictionary -using System.IO; using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageData. PresentationCore.dll using System.Windows.Media.Imaging; @@ -15,8 +11,6 @@ using System.Windows.Xps.Serialization; using System.Printing; using System.Printing.Interop; -using System.Security; -using System.Text; using MS.Utility; namespace Microsoft.Internal.AlphaFlattener diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Optimizer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Optimizer.cs index 579a6f90d08..8d570c39b17 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Optimizer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Optimizer.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; -using System.Collections; // for ArrayList using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageData. PresentationCore.dll using System.Windows.Media.Imaging; -using System.Collections.Generic; using System.Windows.Xps.Serialization; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Primitive.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Primitive.cs index 4eaff72b863..dec4ba925a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Primitive.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Primitive.cs @@ -3,19 +3,14 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; // for ArrayList -using System.Diagnostics; using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, BitmapSource. PresentationCore.dll using System.Windows.Media.Effects; using System.Windows.Media.Imaging; -using System.Windows.Shapes; // for Glyphs using System.Globalization; -using System.Text; -using System.Collections.Generic; using System.Windows.Xps.Serialization; namespace Microsoft.Internal.AlphaFlattener diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/PrimitiveList.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/PrimitiveList.cs index 1181ca8bd4b..315037b9518 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/PrimitiveList.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/PrimitiveList.cs @@ -4,14 +4,9 @@ -using System; -using System.Diagnostics; -using System.Collections; // for ArrayList using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageData. PresentationCore.dll using System.Globalization; -using System.Text; -using System.Collections.Generic; namespace Microsoft.Internal.AlphaFlattener { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/PrimitiveRenderer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/PrimitiveRenderer.cs index dbe2dae0d0d..da8e2a8e6c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/PrimitiveRenderer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/PrimitiveRenderer.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; -using System.Collections; // for ArrayList using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageData. PresentationCore.dll using System.Windows.Media.Imaging; // for BitmapSource -using System.Collections.Generic; namespace Microsoft.Internal.AlphaFlattener { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/SegmentTree.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/SegmentTree.cs index 2de3bd5cc85..4dfb9c78ad9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/SegmentTree.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/SegmentTree.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; // for ArrayList -using System.Diagnostics; -using System.Collections.Generic; using System.Windows; // for Rect WindowsBase.dll diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Utility.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Utility.cs index 3e9708383b9..424afeb60fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Utility.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/AlphaFlattener/Utility.cs @@ -3,27 +3,16 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; // for ArrayList -using System.Collections.Generic; -using System.Diagnostics; - using System.Windows; // for Rect WindowsBase.dll using System.Windows.Media; // for Geometry, Brush, ImageData. PresentationCore.dll -using System.Windows.Media.Effects; using System.Windows.Media.Imaging; - -using Microsoft.Internal; using System.Runtime.CompilerServices; -using MS.Internal.ReachFramework; - -using System.Security; using System.Windows.Xps.Serialization; using MS.Utility; using BuildInfo = MS.Internal.ReachFramework.BuildInfo; -[assembly: InternalsVisibleTo( "System.Printing, PublicKey=" + BuildInfo.WCP_PUBLIC_KEY_STRING)] +[assembly: InternalsVisibleTo("System.Printing, PublicKey=" + BuildInfo.WCP_PUBLIC_KEY_STRING)] // This code is debug only until we decide to go all the way with enforcements. #if ENFORCEMENT @@ -32,7 +21,7 @@ namespace Microsoft.Internal.AlphaFlattener { #if DEBUG - internal static class StopWatch + internal static class StopWatch { static double s_total; // = 0; static DateTime s_startTime; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsException.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsException.cs index 0e72297a866..679524c222a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsException.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsException.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.Serialization; namespace System.Windows.Xps diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsPackagingException.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsPackagingException.cs index ef14cd390c0..54b87b4128f 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsPackagingException.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsPackagingException.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.Serialization; namespace System.Windows.Xps diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsSerializationException.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsSerializationException.cs index 5dce7eefd1e..53addd55593 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsSerializationException.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Exceptions/XpsSerializationException.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.Serialization; namespace System.Windows.Xps diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/GlobalUsings.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/GlobalUsings.cs new file mode 100644 index 00000000000..f73ee7d808f --- /dev/null +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/GlobalUsings.cs @@ -0,0 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +global using System; +global using System.Collections.Generic; +global using System.Diagnostics; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/COMPSTUISRID.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/COMPSTUISRID.cs index a7edc1a2c64..b0b49255d66 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/COMPSTUISRID.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/COMPSTUISRID.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Text; + /*++ * Abstract: @@ -12,10 +14,6 @@ Retrieves safe string resources from COMPSTUI.dll namespace MS.Internal.Printing.Configuration { - using System; - using System.Security; - using System.Text; - /// /// Resource manager for string resources in compstui.dll /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevMode.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevMode.cs index 075ab070d05..7f3c7a7e58a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevMode.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Runtime.InteropServices; +using System.Text; + /*++ All rights reserved. @@ -9,12 +12,6 @@ All rights reserved. namespace MS.Internal.Printing.Configuration { - using System; - using System.IO; - using System.Runtime.InteropServices; - using System.Text; - using System.Security; - /// /// Helper class to interpret public DEVMODEA and DEVMODEW fields packed in a byte array /// This class only deals with DEVMODE fields relevant to printing diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevModeFields.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevModeFields.cs index 2a6f6ebe8d7..10821f48962 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevModeFields.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevModeFields.cs @@ -9,8 +9,6 @@ All rights reserved. namespace MS.Internal.Printing.Configuration { - using System; - /// /// From http://msdn.microsoft.com/en-us/library/cc244659(PROT.13).aspx /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DeviceCapability.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DeviceCapability.cs index d2fffc24909..3e249e2c9d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DeviceCapability.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DeviceCapability.cs @@ -9,8 +9,6 @@ All rights reserved. namespace MS.Internal.Printing.Configuration { - using System; - internal enum DeviceCapability : short { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DocumentPropertiesFlags.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DocumentPropertiesFlags.cs index 2246c2f9f22..02eb8d9dd31 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DocumentPropertiesFlags.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DocumentPropertiesFlags.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - namespace MS.Internal.Printing.Configuration { - using System; - /// /// From http://msdn.microsoft.com/en-us/library/dd183576(VS.85).aspx /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/HGlobalBuffer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/HGlobalBuffer.cs index 006fbe97e8d..59b2808bad9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/HGlobalBuffer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/HGlobalBuffer.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Runtime.InteropServices; +using MS.Internal.PrintWin32Thunk; + /*++ All rights reserved. @@ -9,12 +12,6 @@ All rights reserved. namespace MS.Internal.Printing.Configuration { - using System; - using System.Runtime.InteropServices; - using System.Security; - using System.Diagnostics; - using MS.Internal.PrintWin32Thunk; - /// /// An HGlobal allocated buffer that knows its byte length /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/LoadLibraryExFlags.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/LoadLibraryExFlags.cs index 6f6d2dec1bc..9e655ffbb42 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/LoadLibraryExFlags.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/LoadLibraryExFlags.cs @@ -13,8 +13,6 @@ namespace MS.Internal.Printing.Configuration { - using System; - [Flags] internal enum LoadLibraryExFlags : uint { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/PRINTER_INFO_2.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/PRINTER_INFO_2.cs index c129fa67daf..c2b3f0621af 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/PRINTER_INFO_2.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/PRINTER_INFO_2.cs @@ -9,9 +9,6 @@ All rights reserved. namespace MS.Internal.Printing.Configuration { - using System; - using System.Runtime.InteropServices; - internal struct PRINTER_INFO_2 { public string pPrinterName; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/PRINTER_INFO_8_AND_9.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/PRINTER_INFO_8_AND_9.cs index 15e3c3ff7fc..d2cfe429c62 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/PRINTER_INFO_8_AND_9.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/PRINTER_INFO_8_AND_9.cs @@ -9,9 +9,6 @@ All rights reserved. namespace MS.Internal.Printing.Configuration { - using System; - using System.Runtime.InteropServices; - internal struct PRINTER_INFO_8_AND_9 { public DevMode pDevMode; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/SafeModuleHandle.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/SafeModuleHandle.cs index 829c48c3812..709ad6ddd35 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/SafeModuleHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/SafeModuleHandle.cs @@ -13,10 +13,6 @@ namespace MS.Internal.Printing.Configuration { - using System; - using System.Runtime.InteropServices; - using System.Security; - /// /// Represents a module handle (HMODULE) used in API's like LoadLibrary /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/SafeWinSpoolPrinterHandle.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/SafeWinSpoolPrinterHandle.cs index 595a5e50961..14e472b8a24 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/SafeWinSpoolPrinterHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/SafeWinSpoolPrinterHandle.cs @@ -4,12 +4,10 @@ +using System.Runtime.InteropServices; + namespace MS.Internal.Printing.Configuration { - using System; - using System.Runtime.InteropServices; - using System.Security; - /// /// Represents a printer handle used in spooler API's like OpenPrinter /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/UnsafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/UnsafeNativeMethods.cs index 9f41573ecb0..db494c5194f 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/UnsafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/UnsafeNativeMethods.cs @@ -2,6 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Printing; +using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; +using System.Text; +using MS.Win32; +using MS.Internal.PrintWin32Thunk; + +using DllImport = MS.Internal.ReachFramework.DllImport; + /*++ All rights reserved. @@ -9,20 +18,6 @@ All rights reserved. namespace MS.Internal.Printing.Configuration { - using System; - using System.Printing; - using System.Runtime.ConstrainedExecution; - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System.Security; - using System.Text; - using Microsoft.Internal; - using MS.Internal.ReachFramework; - using MS.Win32; - using MS.Internal.PrintWin32Thunk; - - using DllImport = MS.Internal.ReachFramework.DllImport; - /// /// Internal proxy class that makes P/Invoke calls into the unmanaged stub provider prntvpt.dll. /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/WinSpoolPrinterCapabilities.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/WinSpoolPrinterCapabilities.cs index e31bd3be18d..347710e3ac1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/WinSpoolPrinterCapabilities.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/WinSpoolPrinterCapabilities.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Runtime.InteropServices; +using MS.Internal.PrintWin32Thunk; + /*++ All rights reserved. @@ -9,12 +12,6 @@ All rights reserved. namespace MS.Internal.Printing.Configuration { - using System; - using System.Collections.Generic; - using System.Runtime.InteropServices; - using System.Security; - using MS.Internal.PrintWin32Thunk; - /// /// Helper class to obtain printer capabilities from the WINSPOOL API /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/MostFrequentlyUsedCache.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/MostFrequentlyUsedCache.cs index 4ef362fdf80..675d8147c85 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/MostFrequentlyUsedCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/MostFrequentlyUsedCache.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - - namespace MS.Internal.Printing { - using System; - using System.Collections.Generic; - using System.Diagnostics; - internal class MostFrequentlyUsedCache { public MostFrequentlyUsedCache(int maxEntries) diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/TestHook.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/TestHook.cs index 14e76cab6b7..ba81d501a22 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/TestHook.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/TestHook.cs @@ -11,8 +11,6 @@ All rights reserved. namespace MS.Internal.Printing { - using System; - /// /// Internal API for testing /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/DocumentStructureProvider.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/DocumentStructureProvider.cs index ac3b2381e50..668a8f02584 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/DocumentStructureProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/DocumentStructureProvider.cs @@ -11,12 +11,6 @@ --*/ -using System; -using System.Windows.Documents; -using System.IO.Packaging; -using System.Security.Cryptography.X509Certificates; -using System.Collections.Generic; - namespace System.Windows.Xps.Packaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/PartEditor.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/PartEditor.cs index c34ac5a20ab..547555715d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/PartEditor.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/PartEditor.cs @@ -16,18 +16,10 @@ are used as wrappers around the Metro package API part --*/ -using System; -using System.Diagnostics; using System.IO; -using System.Collections; -using System.Collections.Generic; using System.IO.Packaging; -using System.Windows; -using System.Windows.Markup; using System.Xml; -using MS.Internal.IO.Packaging.Extensions; - namespace System.Windows.Xps.Packaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XPSSignatureDefinition.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XPSSignatureDefinition.cs index ee4fc5b879d..1a98ae8f262 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XPSSignatureDefinition.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XPSSignatureDefinition.cs @@ -16,12 +16,6 @@ that will ultimately sign this document --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.IO.Packaging; using System.Xml; using System.Globalization; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsColorContext.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsColorContext.cs index 5473848bdbd..d872067e337 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsColorContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsColorContext.cs @@ -13,9 +13,7 @@ XpsResource and controls colorContext specific aspects of --*/ -using System; using System.IO.Packaging; -using System.Windows.Media; namespace System.Windows.Xps.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDigitalSignature.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDigitalSignature.cs index 9a5268e9e83..816b1d7ab1a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDigitalSignature.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDigitalSignature.cs @@ -11,20 +11,11 @@ such as what is the root objects signed and what are the signing restrictions --*/ -using MS.Internal; -using System; -using System.Windows.Documents; using System.IO.Packaging; -using System.Security; // for SecurityCritical tag -using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.Xml; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Xml; - -using PackUriHelper = System.IO.Packaging.PackUriHelper; namespace System.Windows.Xps.Packaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDocument.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDocument.cs index d335add4fe8..1df644c1197 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsDocument.cs @@ -14,25 +14,16 @@ reading and/or writing Xps packages. --*/ -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.IO.Packaging; using System.Security.Cryptography.X509Certificates; using System.Windows.Documents; -using System.Windows.Media; -using System.Printing; -using System.Windows.Xps; using System.Windows.Xps.Serialization; using System.Windows.Markup; -using System.Threading; using System.Xml; -using System.Security; using MS.Internal; using MS.Internal.Security; -using MS.Internal.IO.Packaging; using MS.Internal.IO.Packaging.Extensions; using Package = System.IO.Packaging.Package; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedDocumentReaderWriter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedDocumentReaderWriter.cs index 28995bc2fa2..304ca0c25db 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedDocumentReaderWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedDocumentReaderWriter.cs @@ -16,14 +16,10 @@ parts to a Xps package. --*/ -using System; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; using System.IO; using System.IO.Packaging; using System.Xml; -using System.Security.Cryptography.X509Certificates; using System.Printing; using MS.Internal.IO.Packaging.Extensions; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedDocumentSequenceReaderWriter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedDocumentSequenceReaderWriter.cs index cb1b2eba40a..a40b7cecda4 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedDocumentSequenceReaderWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedDocumentSequenceReaderWriter.cs @@ -15,14 +15,10 @@ parts to a Xps package. --*/ -using System; using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; using System.IO.Packaging; using System.Xml; -using System.Security.Cryptography.X509Certificates; using System.Printing; using MS.Internal.IO.Packaging.Extensions; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedPageReaderWriter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedPageReaderWriter.cs index eb7bf69bf28..dffa09711c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedPageReaderWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFixedPageReaderWriter.cs @@ -14,15 +14,9 @@ parts to a Xps package. --*/ -using System; -using System.Collections; -using System.Collections.ObjectModel; -using System.Collections.Generic; using System.IO; using System.IO.Packaging; using System.Xml; -using System.Globalization; -using System.Security.Cryptography.X509Certificates; using System.Printing; using System.Windows.Xps.Serialization; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFont.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFont.cs index 06e7046c5a5..0c47037b53d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFont.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsFont.cs @@ -13,7 +13,6 @@ XpsResource and controls font specific aspects of a resource added to a fixed page. --*/ -using System; using System.IO.Packaging; namespace System.Windows.Xps.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsImage.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsImage.cs index 8f968f00b7e..6b114331570 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsImage.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsImage.cs @@ -16,9 +16,7 @@ ReachResource and controls image specific aspects of Brian Adleberg (brianad ) 12-July-2005 Reach -> Xps ---*/ -using System; using System.IO.Packaging; -using System.Windows.Media; namespace System.Windows.Xps.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsInterleavingPolicy.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsInterleavingPolicy.cs index a39b16df36f..e1f16510439 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsInterleavingPolicy.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsInterleavingPolicy.cs @@ -11,11 +11,8 @@ This file contains the definition and implementation implementation. --*/ -using System; using System.Collections; -using System.Collections.Generic; using System.IO.Packaging; -using System.Windows.Xps.Serialization; namespace System.Windows.Xps.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsManager.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsManager.cs index eb1515977de..a4285a3bf6c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsManager.cs @@ -15,25 +15,12 @@ through this layer to talk to the Metro packaging APIs. --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; using System.IO; using System.IO.Packaging; using System.Security.Cryptography.X509Certificates; -using System.Windows.Media; -using System.Windows.Xps.Serialization; -using System.Text; // for StringBuilder -using System.Windows; -using System.Windows.Xps; -using System.Globalization; using System.Printing; using MS.Internal; - -using MS.Internal.IO.Packaging.Extensions; using Package = System.IO.Packaging.Package; using PackUriHelper = System.IO.Packaging.PackUriHelper; using PackageRelationship = System.IO.Packaging.PackageRelationship; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsPartBase.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsPartBase.cs index dcb5d75b1ea..265247178fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsPartBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsPartBase.cs @@ -14,9 +14,6 @@ This file contains the definition and implementation --*/ -using System; -using System.IO.Packaging; - namespace System.Windows.Xps.Packaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResource.cs index d54a5f389ed..62a194ee2c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResource.cs @@ -14,8 +14,6 @@ Xps package. --*/ -using System; -using System.Collections.Generic; using System.IO; using System.IO.Packaging; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResourceDictionary.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResourceDictionary.cs index 37531aec32d..3a270c6ced9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResourceDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResourceDictionary.cs @@ -14,9 +14,7 @@ XpsResource and controls ResourceDictionary specific aspects of --*/ -using System; using System.IO.Packaging; -using System.Windows.Media; namespace System.Windows.Xps.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResourcePolicy.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResourcePolicy.cs index 3247606faa6..e198f61d80a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResourcePolicy.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsResourcePolicy.cs @@ -14,8 +14,6 @@ how resources are shared and serialized within the Xps --*/ -using System; -using System.Collections.Generic; using System.Windows.Xps.Serialization; namespace System.Windows.Xps.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsStructure.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsStructure.cs index 902a0eb14aa..963d229bd7f 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsStructure.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsStructure.cs @@ -13,7 +13,6 @@ XpsResource and controls font specific aspects of --*/ -using System; using System.IO.Packaging; namespace System.Windows.Xps.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsThumbnail.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsThumbnail.cs index 168808084af..0b0fa41ad37 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsThumbnail.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Packaging/XpsThumbnail.cs @@ -13,9 +13,7 @@ XpsResource and controls thumbnail specific aspects of --*/ -using System; using System.IO.Packaging; -using System.Windows.Media; namespace System.Windows.Xps.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/DocumentNUp.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/DocumentNUp.cs index 6a07c3a9478..2a5f9d7ecce 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/DocumentNUp.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/DocumentNUp.cs @@ -14,17 +14,11 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/FallbackPTProvider.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/FallbackPTProvider.cs index fa89c631ce3..037ebe17ca8 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/FallbackPTProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/FallbackPTProvider.cs @@ -2,6 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.ComponentModel; +using System.Globalization; +using System.IO; +using System.Printing; +using System.Printing.Interop; +using System.Runtime.InteropServices; +using System.Windows.Xps.Serialization; +using System.Xml; +using MS.Utility; +using MS.Internal.PrintWin32Thunk; +using MS.Internal.ReachFramework; + /*++ @@ -17,22 +29,6 @@ of thunking into unmanaged component to get PrintTicket and PrintCapabilities pr namespace MS.Internal.Printing.Configuration { - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.Globalization; - using System.IO; - using System.Printing; - using System.Printing.Interop; - using System.Runtime.InteropServices; - using System.Security; - using System.Windows.Xps.Serialization; - using System.Xml; - using MS.Utility; - using MS.Internal.PrintWin32Thunk; - using MS.Internal.ReachFramework; - - /// /// Managed PrintTicket provider class that inter-ops with unmanaged DDI driver /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobCollate.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobCollate.cs index eb1a933bb86..ed88e60abdf 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobCollate.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobCollate.cs @@ -13,15 +13,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobDuplex.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobDuplex.cs index b5324cad5af..3b878eb2ace 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobDuplex.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobDuplex.cs @@ -13,15 +13,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobInputBins.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobInputBins.cs index e00457abcb5..88c4e276c12 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobInputBins.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobInputBins.cs @@ -13,17 +13,10 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobPageOrder.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobPageOrder.cs index ee5326f1dc4..7b29e70a1bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobPageOrder.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobPageOrder.cs @@ -13,15 +13,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobStaple.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobStaple.cs index b78ec5ca423..e4aaac37968 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobStaple.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/JobStaple.cs @@ -14,17 +14,10 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTConverter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTConverter.cs index 6fb88901561..c9afcebdf30 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTConverter.cs @@ -14,14 +14,9 @@ we don't want printing LAPI to have dependency on the legacy binary DEVMODE. --*/ -using System; using System.IO; using System.Runtime.InteropServices; -using System.Globalization; - -using System.Printing; using MS.Internal.Printing.Configuration; -using System.Security; //[assembly:System.Runtime.InteropServices.ComVisibleAttribute(false)] diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTManager.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTManager.cs index eb6f36312aa..1c7ccec1e83 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTManager.cs @@ -14,19 +14,13 @@ access to PrintTicket and PrintCapabilities functions should be via printing LAP --*/ -using System; using System.IO; -using System.Collections.Specialized; using System.Runtime.InteropServices; -using System.Globalization; - -using System.Printing; using System.Printing.Interop; using MS.Internal.Printing.Configuration; using System.Windows.Xps.Serialization; // for Toolbox using MS.Utility; -using System.Security; namespace System.Printing { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTProvider.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTProvider.cs index 2e7c6f6a732..0ede968561d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTProvider.cs @@ -15,28 +15,19 @@ of thunking into unmanaged component to get PrintTicket and PrintCapabilities pr --*/ -using System; using System.IO; -using System.Security; using System.Globalization; -using System.Collections.Specialized; using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Runtime.ConstrainedExecution; using System.Printing.Interop; using System.Printing; -using Microsoft.Internal; using System.Windows.Xps; using System.Windows.Xps.Serialization; using MS.Utility; using System.Runtime.InteropServices.ComTypes; -using System.Windows.Threading; -using System.Collections.Generic; using System.Threading; -using System.Diagnostics; -using MS.Internal.PrintWin32Thunk; +using MS.Internal.PrintWin32Thunk; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTProviderBase.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTProviderBase.cs index c8b7f3b1b4a..b381caa2157 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTProviderBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTProviderBase.cs @@ -13,11 +13,9 @@ of calling into the unmanaged component to get PrintTicket and PrintCapabilities --*/ -using System; using System.IO; using System.Printing; using System.Printing.Interop; -using System.Security; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTUtility.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTUtility.cs index 2466794aecb..14a295c4aec 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTUtility.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PTUtility.cs @@ -14,8 +14,6 @@ contains static utility functions used internally only. --*/ -using System; -using System.Collections.Specialized; using System.Resources; namespace MS.Internal.Printing.Configuration diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageBorderless.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageBorderless.cs index eb27c49cf19..fadfe960c92 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageBorderless.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageBorderless.cs @@ -14,15 +14,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageCanvasSize.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageCanvasSize.cs index 5809c4ca6a2..7f43cbbcdb1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageCanvasSize.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageCanvasSize.cs @@ -13,14 +13,7 @@ Definition and implementation of this public property type. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; -using System.Diagnostics; - -using System.Printing; -using MS.Internal.Printing.Configuration; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageCopyCount.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageCopyCount.cs index e032af0620e..8c59c190804 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageCopyCount.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageCopyCount.cs @@ -13,15 +13,8 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; -using System.Diagnostics; using System.Globalization; -using System.Printing; -using MS.Internal.Printing.Configuration; - namespace MS.Internal.Printing.Configuration { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageDeviceFont.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageDeviceFont.cs index 0ea4ee03a17..9056374fa44 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageDeviceFont.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageDeviceFont.cs @@ -14,15 +14,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageMediaSize.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageMediaSize.cs index 132c4923e0a..1a0c79ff81b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageMediaSize.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageMediaSize.cs @@ -14,17 +14,11 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageMediaType.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageMediaType.cs index fb90d0ab634..2ede05f80d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageMediaType.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageMediaType.cs @@ -15,17 +15,10 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOrientation.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOrientation.cs index c02c4479192..225d12735ca 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOrientation.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOrientation.cs @@ -14,15 +14,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOutputColor.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOutputColor.cs index 26bdbfdf8ea..b8b8b666f55 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOutputColor.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOutputColor.cs @@ -14,17 +14,10 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOutputQuality.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOutputQuality.cs index ebaf6483adb..2ab9859e645 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOutputQuality.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageOutputQuality.cs @@ -15,15 +15,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageResolution.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageResolution.cs index 6e9dd096c29..bc81c4996ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageResolution.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageResolution.cs @@ -15,17 +15,11 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageScaling.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageScaling.cs index 949ae9e08f7..20dfe355dcf 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageScaling.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageScaling.cs @@ -13,18 +13,11 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; -using System.Text; using System.Printing; -using MS.Internal.Printing.Configuration; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageTrueTypeFont.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageTrueTypeFont.cs index 602cb1b471d..d09360f4629 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageTrueTypeFont.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PageTrueTypeFont.cs @@ -13,15 +13,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/ParameterRefs.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/ParameterRefs.cs index 04f6d090f1d..1beca2c10c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/ParameterRefs.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/ParameterRefs.cs @@ -19,13 +19,6 @@ Feng Yue (fengy) 7/23/2003 --*/ -using System; -using System.IO; -using System.Collections; -using System.Diagnostics; - -using MS.Internal.Printing.Configuration; - namespace MS.Internal.Printing.Configuration { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PhotoPrintingIntent.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PhotoPrintingIntent.cs index 51aee0fc47c..972f451aac6 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PhotoPrintingIntent.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PhotoPrintingIntent.cs @@ -13,15 +13,9 @@ Definition and implementation of this public feature/parameter related types. --*/ -using System; -using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintCapabilitesWriter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintCapabilitesWriter.cs index a542ca4f5b7..3c6740de7ee 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintCapabilitesWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintCapabilitesWriter.cs @@ -4,17 +4,14 @@ +using System.Globalization; +using System.IO; +using System.Printing; +using System.Text; +using System.Xml; + namespace MS.Internal.Printing.Configuration { - using System; - using System.Collections.Generic; - using System.Globalization; - using System.IO; - using System.Printing; - using System.Security; - using System.Text; - using System.Xml; - /// /// Xml Stream base API for writing print capability documents /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintSchema.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintSchema.cs index 555b7ffb4b4..cb340d13e61 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintSchema.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintSchema.cs @@ -12,9 +12,6 @@ Definition of public Print Schema types. --*/ -using System; -using System.Diagnostics; -using System.IO; using System.Xml; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintSchemaShim.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintSchemaShim.cs index 21aaf4172cf..669efa4bf67 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintSchemaShim.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrintSchemaShim.cs @@ -4,16 +4,12 @@ +using System.Printing; +using System.Xml; +using System.Xml.XPath; + namespace MS.Internal.Printing.Configuration { - using System; - using System.Collections.Generic; - using System.Diagnostics; - using System.Printing; - using System.Xml; - using System.Xml.XPath; - using System.Security; - /// /// Encapulates all the logic for marshaling PrintTicket documents to DEVMODE /// Based on the XPS Print Schema Specification v1.0 diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Base.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Base.cs index f95372e6e13..facea4686a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Base.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Base.cs @@ -12,15 +12,7 @@ Definition and implementation of PrintCapabilities base types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; -using System.Diagnostics; -using System.Runtime.InteropServices; - -using System.Printing; -using MS.Internal.Printing.Configuration; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Builder.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Builder.cs index 65322e1fda6..c6ff1c8f5dd 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Builder.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Builder.cs @@ -12,14 +12,10 @@ Definition and implementation of internal PrintCapBuilder class. --*/ -using System; using System.IO; using System.Xml; -using System.Collections; -using System.Diagnostics; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Public.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Public.cs index 8a7233211c5..4e2307e3352 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Public.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Public.cs @@ -13,17 +13,11 @@ Definition and implementation of public PrintCapabilities class. --*/ -using System; using System.IO; using System.Xml; -using System.Collections; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Diagnostics; using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Public_Simple.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Public_Simple.cs index 6424c0410cf..811d13ed828 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Public_Simple.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Public_Simple.cs @@ -13,15 +13,9 @@ Definition and implementation of simple public PT/PC classes. --*/ -using System; -using System.Xml; using System.IO; -using System.Collections; using System.Collections.ObjectModel; -using System.Collections.Generic; using System.Globalization; - -using System.Printing; using MS.Internal.Printing.Configuration; namespace System.Printing diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Reader.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Reader.cs index 38b0350b34f..79ef6bf474f 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Reader.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtCap_Reader.cs @@ -13,15 +13,10 @@ Definition and implementation of the private XmlPrintCapReader class. --*/ -using System; using System.Xml; using System.IO; -using System.Diagnostics; using System.Globalization; -using System.Printing; -using MS.Internal.Printing.Configuration; - #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages namespace MS.Internal.Printing.Configuration diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Base.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Base.cs index f5a601e165e..97616d6f50a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Base.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Base.cs @@ -13,16 +13,8 @@ Definition and implementation of PrintTicket base types. --*/ -using System; -using System.IO; using System.Xml; -using System.Collections; -using System.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; - -using System.Printing; -using MS.Internal.Printing.Configuration; #pragma warning disable 1634, 1691 // Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Editor.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Editor.cs index 2bd36dca593..227c517cd41 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Editor.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Editor.cs @@ -13,15 +13,8 @@ Definition and implementation of the internal PrintTicketEditor and XmlDocQName --*/ -using System; using System.Xml; -using System.IO; -using System.Collections; using System.Globalization; -using System.Runtime.InteropServices; - -using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Public.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Public.cs index cafca712746..3520f55c295 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Public.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Public.cs @@ -13,17 +13,11 @@ Definition and implementation of public PrintTicket class. --*/ -using System; using System.Xml; using System.IO; -using System.Collections; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Diagnostics; using System.Globalization; using System.Printing; -using MS.Internal.Printing.Configuration; namespace MS.Internal.Printing.Configuration { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Public_Simple.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Public_Simple.cs index 72808c2cd5e..99de88f9b78 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Public_Simple.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintConfig/PrtTicket_Public_Simple.cs @@ -12,15 +12,8 @@ Definition and implementation of simple public PT/PC classes. --*/ -using System; -using System.Xml; using System.IO; -using System.Collections; -using System.Collections.ObjectModel; -using System.Collections.Generic; using System.Globalization; - -using System.Printing; using MS.Internal.Printing.Configuration; namespace System.Printing diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintSystemExceptions/InteropWin32ApiThunk.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintSystemExceptions/InteropWin32ApiThunk.cs index c01a57bf447..b6f3e722aae 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintSystemExceptions/InteropWin32ApiThunk.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintSystemExceptions/InteropWin32ApiThunk.cs @@ -10,18 +10,17 @@ PInvoke methods definition. --*/ -using System; using System.Runtime.InteropServices; namespace MS { -namespace Internal -{ -namespace PrintWin32Thunk -{ -namespace Win32ApiThunk -{ - static internal class NativeMethodsForPrintExceptions + namespace Internal + { + namespace PrintWin32Thunk + { + namespace Win32ApiThunk + { + static internal class NativeMethodsForPrintExceptions { [DllImport("Kernel32.dll", EntryPoint="FormatMessageW", CharSet=CharSet.Unicode, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintSystemExceptions/PrintSystemException.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintSystemExceptions/PrintSystemException.cs index 6c1bb52f9a8..ea2c5dbb684 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintSystemExceptions/PrintSystemException.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/PrintSystemExceptions/PrintSystemException.cs @@ -9,13 +9,8 @@ Print System exception objects declaration. --*/ -using System; -using System.Collections; -using System.Runtime.InteropServices; using System.Text; -using System.Security; //SecurityCritical using System.Collections.ObjectModel; -using System.Collections.Generic; using MS.Internal.PrintWin32Thunk.Win32ApiThunk; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/ReachFramework.csproj b/src/Microsoft.DotNet.Wpf/src/ReachFramework/ReachFramework.csproj index cf7bd9e5a3a..1f0244eb90b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/ReachFramework.csproj +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/ReachFramework.csproj @@ -54,6 +54,7 @@ + diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ColorTypeConverter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ColorTypeConverter.cs index 1a7d314aceb..e75cae6695b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ColorTypeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ColorTypeConverter.cs @@ -10,15 +10,10 @@ This file implements the ColorTypeConverter colors to a Xps package. --*/ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Text; using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Windows.Xps.Packaging; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/Crc32.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/Crc32.cs index 127c3097c16..cac7f88e083 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/Crc32.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/Crc32.cs @@ -11,9 +11,6 @@ This file implements a Crc32 algorithm that can of bytes. --*/ -using System; -using System.Security; - namespace System.Windows.Xps.Serialization { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/DrawingContextFlattener.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/DrawingContextFlattener.cs index 4aeb7278d3a..ebc87333bf9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/DrawingContextFlattener.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/DrawingContextFlattener.cs @@ -3,21 +3,11 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; -using System.Text; -using System.ComponentModel; - -using System.Windows; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Media.Effects; using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Media.Animation; using Microsoft.Internal.AlphaFlattener; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/FontTypeConverter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/FontTypeConverter.cs index b6b5ebbf508..dabbd31b38e 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/FontTypeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/FontTypeConverter.cs @@ -10,12 +10,8 @@ This file implements the FontTypeConverter used by to a Xps package. --*/ -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.IO; using System.Windows.Media; -using System.Windows.Xps.Packaging; using MS.Utility; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ImageSourceTypeConverter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ImageSourceTypeConverter.cs index 06935a14d25..36d9e719f0c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ImageSourceTypeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ImageSourceTypeConverter.cs @@ -10,20 +10,12 @@ This file implements the ImageSourceTypeConverter images to a Xps package. --*/ -using System; using System.Net; -using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; using System.ComponentModel; using System.IO; -using System.IO.Packaging; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Xps.Packaging; -using System.Security; -using MS.Internal.ReachFramework; -using System.Windows.Markup; using MS.Internal.IO.Packaging; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IOpcPartUri.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IOpcPartUri.cs index dbcb1c90039..ce90db08898 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IOpcPartUri.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IOpcPartUri.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IOpcUri.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IOpcUri.cs index 29dbe5b0da3..4678a864bd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IOpcUri.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IOpcUri.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IPrintDocumentPackageStatusEvent.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IPrintDocumentPackageStatusEvent.cs index 4d018222a52..d3368fff126 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IPrintDocumentPackageStatusEvent.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IPrintDocumentPackageStatusEvent.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IPrintDocumentPackageTarget.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IPrintDocumentPackageTarget.cs index 3e02a4665a6..46af8718c4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IPrintDocumentPackageTarget.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IPrintDocumentPackageTarget.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM documenttarget.dll /// - + [Guid("1B8EFEC4-3019-4C27-964E-367202156906"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IPrintDocumentPackageTarget diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/ISequentialStream.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/ISequentialStream.cs index d2c843e4cc5..1ccabbeae56 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/ISequentialStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/ISequentialStream.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IUri.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IUri.cs index 62a3504dc55..cfc16d01e35 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IUri.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IUri.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsDocumentPackageTarget.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsDocumentPackageTarget.cs index ef0463663ac..a12d62a396a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsDocumentPackageTarget.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsDocumentPackageTarget.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("3B0B6D38-53AD-41DA-B212-D37637A6714E"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsDocumentPackageTarget diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMBrush.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMBrush.cs index 5f9e9cd6723..f501ea60f2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMBrush.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMCanvas.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMCanvas.cs index e336f9d5d12..3b1f0275421 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMCanvas.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMCanvas.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMColorProfileResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMColorProfileResource.cs index 0b802b11a9e..8df3b0292d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMColorProfileResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMColorProfileResource.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -20,7 +18,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("67BD7D69-1EEF-4BB1-B5E7-6F4F87BE8ABE"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMColorProfileResource : IXpsOMResource diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMColorProfileResourceCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMColorProfileResourceCollection.cs index ace01ac3cbf..fdc39522ff2 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMColorProfileResourceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMColorProfileResourceCollection.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("12759630-5FBA-4283-8F7D-CCA849809EDB"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMColorProfileResourceCollection diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMCoreProperties.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMCoreProperties.cs index 8ba68255a21..ed7158142d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMCoreProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMCoreProperties.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDashCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDashCollection.cs index 37aad5d6f55..601e5eaa3f8 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDashCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDashCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDictionary.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDictionary.cs index 6d2d111dca8..1ea8057ed9b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDictionary.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocument.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocument.cs index b7cae309d8d..c5e0839ec6a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocument.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocument.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentCollection.cs index 95ef712738e..7d5790f8065 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentSequence.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentSequence.cs index 42f0a1e3cc9..4d3e7b64de6 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentSequence.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentSequence.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentStructureResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentStructureResource.cs index 19858d6b740..33ca93f2961 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentStructureResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMDocumentStructureResource.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMFontResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMFontResource.cs index fe33ad4100d..b253b4b5a02 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMFontResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMFontResource.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -20,7 +18,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("A8C45708-47D9-4AF4-8D20-33B48C9B8485"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMFontResource : IXpsOMResource diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMFontResourceCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMFontResourceCollection.cs index aa0d88d0224..9e960fae998 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMFontResourceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMFontResourceCollection.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("70B4A6BB-88D4-4FA8-AAF9-6D9C596FDBAD"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMFontResourceCollection diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometry.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometry.cs index a5113eb1788..98f93a85753 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometry.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometryFigure.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometryFigure.cs index 0884c6ec3cc..64b2b143a26 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometryFigure.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometryFigure.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometryFigureCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometryFigureCollection.cs index d99948a61a1..fbb24098224 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometryFigureCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGeometryFigureCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGlyphs.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGlyphs.cs index 4873d1a9a1f..c1ba8a3ede3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGlyphs.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGlyphs.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGlyphsEditor.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGlyphsEditor.cs index e3940b8e78b..3330c895bd7 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGlyphsEditor.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGlyphsEditor.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientBrush.cs index b719aca747a..14e82715d7e 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientBrush.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientStop.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientStop.cs index a29e49b828a..77b18e94fd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientStop.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientStop.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientStopCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientStopCollection.cs index 469405c9f95..55c2cfad7c7 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientStopCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMGradientStopCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageBrush.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageBrush.cs index 4a46d557dd3..7207f851fa4 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageBrush.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageResource.cs index cbb8254df5b..c37fea9f7e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageResource.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -20,7 +18,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("3DB8417D-AE50-485E-9A44-D7758F78A23F"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMImageResource : IXpsOMResource diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageResourceCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageResourceCollection.cs index 2808e766ddd..3ec4a1dbff6 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageResourceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMImageResourceCollection.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("7A4A1A71-9CDE-4B71-B33F-62DE843EABFE"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMImageResourceCollection diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMLinearGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMLinearGradientBrush.cs index f38204bd73d..54dc8506ed4 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMLinearGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMLinearGradientBrush.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMMatrixTransform.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMMatrixTransform.cs index e9c49e8b251..48c9bd8046e 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMMatrixTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMMatrixTransform.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMNameCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMNameCollection.cs index 33094f39ac9..f7518218fe2 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMNameCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMNameCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMObjectFactory.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMObjectFactory.cs index 7e9f99f8eff..d5fd30d6f22 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMObjectFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMObjectFactory.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -20,7 +18,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("F9B2A685-A50D-4FC2-B764-B56E093EA0CA"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMObjectFactory diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPackage.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPackage.cs index b38dc7783f3..0f87b20722d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPackage.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPackage.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPackageWriter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPackageWriter.cs index c316eefe428..4e16f26e9fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPackageWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPackageWriter.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("4E2AA182-A443-42C6-B41B-4F8E9DE73FF9")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPage.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPage.cs index 316b094112f..c31fa992e71 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPage.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPage.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("D3E18888-F120-4FEE-8C68-35296EAE91D4"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMPage : IXpsOMPart diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPageReference.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPageReference.cs index f1f9bcd1f11..4b73b09f71f 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPageReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPageReference.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPageReferenceCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPageReferenceCollection.cs index 52633da9c57..9e8aa030334 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPageReferenceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPageReferenceCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPart.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPart.cs index 4154ba0db0a..931ae3be7a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPart.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPart.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("74EB2F0B-A91E-4486-AFAC-0FABECA3DFC6"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMPart diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPartResources.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPartResources.cs index ae8b47a617a..b6c27839dc4 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPartResources.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPartResources.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("F4CF7729-4864-4275-99B3-A8717163ECAF"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMPartResources diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPartUriCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPartUriCollection.cs index 0d5e2c38d90..6bbb73d49ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPartUriCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPartUriCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPath.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPath.cs index 33ce3209175..5dbef0e21d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPath.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPath.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPrintTicketResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPrintTicketResource.cs index cc7a0638a53..703840d2a6d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPrintTicketResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMPrintTicketResource.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRadialGradientBrush.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRadialGradientBrush.cs index 6fb136acb05..399e66a2bb0 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRadialGradientBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRadialGradientBrush.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRemoteDictionaryResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRemoteDictionaryResource.cs index 4ad80c198ef..2a276636823 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRemoteDictionaryResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRemoteDictionaryResource.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRemoteDictionaryResourceCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRemoteDictionaryResourceCollection.cs index ddd133f535f..70027dc842f 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRemoteDictionaryResourceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMRemoteDictionaryResourceCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMResource.cs index 72b382e0228..fd9d9c86230 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMResource.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMShareable.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMShareable.cs index 7b94a0a4a13..32d2ec1bf96 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMShareable.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMShareable.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSignatureBlockResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSignatureBlockResource.cs index 0098cb39fe7..65fb8f201e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSignatureBlockResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSignatureBlockResource.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSignatureBlockResourceCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSignatureBlockResourceCollection.cs index 320b02ff3a4..b4f23779d49 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSignatureBlockResourceCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSignatureBlockResourceCollection.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSolidColorBrush.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSolidColorBrush.cs index 1f10124769c..5fb51d67346 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSolidColorBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMSolidColorBrush.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMStoryFragmentsResource.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMStoryFragmentsResource.cs index 99d4bd4d3da..57031f316e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMStoryFragmentsResource.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMStoryFragmentsResource.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMThumbnailGenerator.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMThumbnailGenerator.cs index 2669115775c..da395c98858 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMThumbnailGenerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMThumbnailGenerator.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMTileBrush.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMTileBrush.cs index 3657452904e..5809e895da3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMTileBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMTileBrush.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisual.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisual.cs index ecff91dcd37..4313cb0bbd6 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisual.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisual.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("BC3E7333-FB0B-4AF3-A819-0B4EAAD0D2FD"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMVisual : IXpsOMShareable diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisualBrush.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisualBrush.cs index 30a72c76507..4a177758444 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisualBrush.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisualBrush.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisualCollection.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisualCollection.cs index fd02d916d17..d933c5a03f3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisualCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/IXpsOMVisualCollection.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; namespace System.Windows.Xps.Serialization.RCW { @@ -19,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [Guid("94D8ABDE-AB91-46A8-82B7-F5B05EF01A96"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMVisualCollection diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageCompletion.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageCompletion.cs index 58e40085e0a..530996f6b21 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageCompletion.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageCompletion.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { internal enum PrintDocumentPackageCompletion diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageStatus.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageStatus.cs index adc7d3a9e05..d136459f293 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageStatus.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageStatus.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; namespace System.Windows.Xps.Serialization.RCW diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageStatusProvider.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageStatusProvider.cs index e1a52257316..3a159d14d58 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageStatusProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/PrintDocumentPackageStatusProvider.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices.ComTypes; using System.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/Uri_PROPERTY.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/Uri_PROPERTY.cs index 7e3da26ba95..80bb1a008f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/Uri_PROPERTY.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/Uri_PROPERTY.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum Uri_PROPERTY { Uri_PROPERTY_ABSOLUTE_URI = 0, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR.cs index d06c6f388f8..55314ea6661 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; namespace System.Windows.Xps.Serialization.RCW @@ -17,7 +16,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct XPS_COLOR { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_INTERPOLATION.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_INTERPOLATION.cs index 63e9c904004..9f98e5b8cf5 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_INTERPOLATION.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_INTERPOLATION.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_COLOR_INTERPOLATION { XPS_COLOR_INTERPOLATION_SCRGBLINEAR = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_TYPE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_TYPE.cs index 50458a8c1d3..d846b53af38 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_TYPE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_TYPE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_COLOR_TYPE { XPS_COLOR_TYPE_SRGB = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_TYPE_UNION.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_TYPE_UNION.cs index d9e84b32e7d..ddfa0aa9947 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_TYPE_UNION.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_COLOR_TYPE_UNION.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; namespace System.Windows.Xps.Serialization.RCW @@ -17,7 +16,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [ComConversionLoss] [StructLayout(LayoutKind.Explicit, Pack = 4, Size = 40)] internal struct XPS_COLOR_TYPE_UNION diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DASH.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DASH.cs index a22d4808450..100b70667e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DASH.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DASH.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct XPS_DASH { internal float length; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DASH_CAP.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DASH_CAP.cs index d1b63580e52..c4828d2c1ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DASH_CAP.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DASH_CAP.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_DASH_CAP { XPS_DASH_CAP_FLAT = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DOCUMENT_TYPE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DOCUMENT_TYPE.cs index 1e8b899e01f..a91dd1e0449 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DOCUMENT_TYPE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_DOCUMENT_TYPE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_DOCUMENT_TYPE { XPS_DOCUMENT_TYPE_UNSPECIFIED = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_FILL_RULE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_FILL_RULE.cs index f0dd0636ae9..355fa7e4393 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_FILL_RULE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_FILL_RULE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_FILL_RULE { XPS_FILL_RULE_EVENODD = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_FONT_EMBEDDING.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_FONT_EMBEDDING.cs index 47bb2be1038..3b685c15acf 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_FONT_EMBEDDING.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_FONT_EMBEDDING.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_FONT_EMBEDDING { XPS_FONT_EMBEDDING_NORMAL = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_GLYPH_INDEX.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_GLYPH_INDEX.cs index f3a22a3960a..c78a9c21b0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_GLYPH_INDEX.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_GLYPH_INDEX.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct XPS_GLYPH_INDEX { internal int index; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_GLYPH_MAPPING.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_GLYPH_MAPPING.cs index 47c872887b2..3c50c8a2af3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_GLYPH_MAPPING.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_GLYPH_MAPPING.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct XPS_GLYPH_MAPPING { internal uint unicodeStringStart; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_IMAGE_TYPE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_IMAGE_TYPE.cs index 403a28d19ec..186e5344b92 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_IMAGE_TYPE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_IMAGE_TYPE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_IMAGE_TYPE { XPS_IMAGE_TYPE_JPEG = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_INTERLEAVING.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_INTERLEAVING.cs index f5d57a3a75c..fccafd8bd93 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_INTERLEAVING.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_INTERLEAVING.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_INTERLEAVING { XPS_INTERLEAVING_OFF = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_LINE_CAP.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_LINE_CAP.cs index 31e64a0d107..8dc4e8e84fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_LINE_CAP.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_LINE_CAP.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_LINE_CAP { XPS_LINE_CAP_FLAT = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_LINE_JOIN.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_LINE_JOIN.cs index fb6c98c1db4..b5aa77d8231 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_LINE_JOIN.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_LINE_JOIN.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_LINE_JOIN { XPS_LINE_JOIN_MITER = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_MATRIX.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_MATRIX.cs index c20b59e035e..76976f442f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_MATRIX.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_MATRIX.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct XPS_MATRIX { internal float m11; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_OBJECT_TYPE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_OBJECT_TYPE.cs index c4134ff707e..eb16b05152a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_OBJECT_TYPE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_OBJECT_TYPE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_OBJECT_TYPE { XPS_OBJECT_TYPE_CANVAS = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_POINT.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_POINT.cs index e91991ad0df..4d4680fa741 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_POINT.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_POINT.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct XPS_POINT { internal float x; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_RECT.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_RECT.cs index cbc7c89eb5b..115d37e2879 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_RECT.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_RECT.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct XPS_RECT { internal float x; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SCRGB_COLOR.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SCRGB_COLOR.cs index 450dc367693..f6800a8cb73 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SCRGB_COLOR.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SCRGB_COLOR.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; namespace System.Windows.Xps.Serialization.RCW @@ -17,7 +16,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct XPS_SCRGB_COLOR { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SEGMENT_STROKE_PATTERN.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SEGMENT_STROKE_PATTERN.cs index ab203eeecdd..b760a751ad2 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SEGMENT_STROKE_PATTERN.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SEGMENT_STROKE_PATTERN.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_SEGMENT_STROKE_PATTERN { XPS_SEGMENT_STROKE_PATTERN_ALL = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SEGMENT_TYPE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SEGMENT_TYPE.cs index 8c3b983c06d..daacbdb5627 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SEGMENT_TYPE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SEGMENT_TYPE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_SEGMENT_TYPE { XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SIZE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SIZE.cs index 1ecdecf59be..f7447cb9540 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SIZE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SIZE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct XPS_SIZE { internal float width; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SPREAD_METHOD.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SPREAD_METHOD.cs index 44ad3fc6f42..060f5e5a5f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SPREAD_METHOD.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SPREAD_METHOD.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_SPREAD_METHOD { XPS_SPREAD_METHOD_PAD = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SRGB_COLOR.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SRGB_COLOR.cs index ca23abe3720..1df7b32f3c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SRGB_COLOR.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_SRGB_COLOR.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; namespace System.Windows.Xps.Serialization.RCW @@ -17,7 +16,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [StructLayout(LayoutKind.Sequential, Pack = 1)] internal struct XPS_SRGB_COLOR { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_STYLE_SIMULATION.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_STYLE_SIMULATION.cs index 70f4a249140..d50900233b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_STYLE_SIMULATION.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_STYLE_SIMULATION.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_STYLE_SIMULATION { XPS_STYLE_SIMULATION_NONE = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_THUMBNAIL_SIZE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_THUMBNAIL_SIZE.cs index 6d666c942e2..7a46fe1f970 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_THUMBNAIL_SIZE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_THUMBNAIL_SIZE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_THUMBNAIL_SIZE { XPS_THUMBNAIL_SIZE_VERYSMALL = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_TILE_MODE.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_TILE_MODE.cs index 3c51cd6e216..c5051c96a3a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_TILE_MODE.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XPS_TILE_MODE.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal enum XPS_TILE_MODE { XPS_TILE_MODE_NONE = 1, diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XpsOMThumbnailGeneratorClass.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XpsOMThumbnailGeneratorClass.cs index 4aeec6b8fe4..86a832b65f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XpsOMThumbnailGeneratorClass.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/XpsOMThumbnailGeneratorClass.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -18,7 +17,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + [ClassInterface(ClassInterfaceType.None)] [Guid("7E4A23E2-B969-4761-BE35-1A8CED58E323")] [TypeLibType(TypeLibTypeFlags.FCanCreate)] diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_FILETIME.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_FILETIME.cs index bccb6008eff..7a361d0d480 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_FILETIME.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_FILETIME.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct _FILETIME { public uint dwLowDateTime; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_LARGE_INTEGER.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_LARGE_INTEGER.cs index a17ac4cb547..45471afa9b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_LARGE_INTEGER.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_LARGE_INTEGER.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct _LARGE_INTEGER { public long QuadPart; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_SECURITY_ATTRIBUTES.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_SECURITY_ATTRIBUTES.cs index 1760afc2810..8eaa8f24836 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_SECURITY_ATTRIBUTES.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_SECURITY_ATTRIBUTES.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct _SECURITY_ATTRIBUTES { public uint nLength; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_SYSTEMTIME.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_SYSTEMTIME.cs index c8dc43a5e1b..24f6489cd3d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_SYSTEMTIME.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_SYSTEMTIME.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct _SYSTEMTIME { public ushort wYear; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_ULARGE_INTEGER.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_ULARGE_INTEGER.cs index bdc00cc9e96..0280e95cbfe 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_ULARGE_INTEGER.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/_ULARGE_INTEGER.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct _ULARGE_INTEGER { public ulong QuadPart; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/tagSTATSTG.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/tagSTATSTG.cs index f5866892b07..da741d7325b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/tagSTATSTG.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/RCW/tagSTATSTG.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Xps.Serialization.RCW { /// @@ -16,7 +14,7 @@ namespace System.Windows.Xps.Serialization.RCW /// iii.Decompile the DLL and copy out the RCW by hand. /// ILDASM xpsobjectmodel.dll /// - + internal struct tagSTATSTG { internal string pwcsName; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/TreeWalkProgress.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/TreeWalkProgress.cs index 319402ffd35..ff89b7dd2ad 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/TreeWalkProgress.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/TreeWalkProgress.cs @@ -8,16 +8,7 @@ This file implements the TreeWalkProgress used by the Xps Serialization APIs for tracking cycles in a visual tree. --*/ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; -using System.ComponentModel; -using System.IO; -using System.Text; using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Xps.Packaging; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualSerializer.cs index 6541ca105ca..7d26a89d356 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualSerializer.cs @@ -3,26 +3,18 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; using System.Globalization; using System.Text; using System.IO; using System.Xml; using System.ComponentModel; - -using System.Windows; using System.Windows.Automation; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Xps.Packaging; using Microsoft.Internal.AlphaFlattener; - -using System.Security; using MS.Utility; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualTreeFlattener.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualTreeFlattener.cs index 10583b6d1f8..a1cf47842f9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualTreeFlattener.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualTreeFlattener.cs @@ -3,17 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Collections; -using System.Collections.Generic; -using System.Text; using System.IO; using System.Xml; using System.ComponentModel; -using System.Security; - -using System.Windows; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.Effects; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSerializationService.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSerializationService.cs index 85c3704c47a..d42d50f394d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSerializationService.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSerializationService.cs @@ -11,7 +11,6 @@ fonts to a Xps package. --*/ -using System; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSubsetter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSubsetter.cs index 124b8a10345..acf1f5df59d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSubsetter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSubsetter.cs @@ -9,15 +9,9 @@ This file implements the XpsFontSubsetter used by the Xps Serialization APIs for serializing fonts to a Xps package. --*/ -using System; -using System.Collections; using System.IO; using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Collections.Generic; -using System.IO.Packaging; using System.Windows.Xps.Packaging; -using System.Security; using MS.Internal.Utility; using MS.Internal.IO.Packaging; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsImageSerializationService.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsImageSerializationService.cs index f9dba4c6d93..53a2e628121 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsImageSerializationService.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsImageSerializationService.cs @@ -10,11 +10,8 @@ This file implements the XpsImageSerializationService used by the Xps Serialization APIs for serializing images to a Xps package. --*/ -using System; using System.IO; -using System.Windows.Media; using System.Windows.Media.Imaging; -using System.Security; using System.Windows.Xps.Packaging; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManager.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManager.cs index 3d310aab9be..75798c1782e 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManager.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Printing; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManagerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManagerAsync.cs index a5dc5293cad..3ec848b54df 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManagerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/IXpsSerializationManagerAsync.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Printing; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/MetroSerializationManager.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/MetroSerializationManager.cs index 016a0b15033..5f523e4d201 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/MetroSerializationManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/MetroSerializationManager.cs @@ -12,22 +12,13 @@ tree of objects is being traversed to optimize the permormance of the serialization process --*/ -using System; using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; using System.Xml; -using System.IO; -using System.Security; using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Markup; -using System.Windows.Xps.Serialization; -using System.Windows.Xps; using System.Printing; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCPageContentCollectionSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCPageContentCollectionSerializerAsync.cs index 41b31c8f19e..8d9f720b6fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCPageContentCollectionSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCPageContentCollectionSerializerAsync.cs @@ -11,20 +11,7 @@ the common functionality required to serialize a PageContentCollection --*/ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCPageContentSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCPageContentSerializerAsync.cs index 43afa51abf9..2f1d9c5a271 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCPageContentSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCPageContentSerializerAsync.cs @@ -8,20 +8,7 @@ This file contains the definition of a class that defines the common functionality required to serialize a PageContent. --*/ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializationManager.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializationManager.cs index 3fcd9622395..83b11e9a79f 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializationManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializationManager.cs @@ -4,21 +4,9 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; -using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; using System.Printing; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializationManagerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializationManagerAsync.cs index bc9eac0ead6..520e3c43138 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializationManagerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializationManagerAsync.cs @@ -3,21 +3,10 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; -using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; using System.Printing; using System.Windows.Threading; using MS.Internal; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializer.cs index d46757b6c4e..eb6322d9365 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializer.cs @@ -4,21 +4,9 @@ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; -using System.Printing; using MS.Utility; // diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializerAsync.cs index d3763ab3378..01648adea2b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCSerializerAsync.cs @@ -3,20 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCUIElementCollectionSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCUIElementCollectionSerializerAsync.cs index a0ca8c75c17..30e41d0e24c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCUIElementCollectionSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NGCUIElementCollectionSerializerAsync.cs @@ -10,20 +10,8 @@ the common functionality required to serialize a UIElementCollection --*/ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NullPackagingPolicy.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NullPackagingPolicy.cs index bd1b7ffe1d5..b793ae525c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NullPackagingPolicy.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/NullPackagingPolicy.cs @@ -11,22 +11,11 @@ process. the intension here is to be able to profile performance of different components in the system. --*/ -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; using System.IO; -using System.Security; using System.Globalization; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Printing; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachBasicContext.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachBasicContext.cs index 8720afb8ac1..f5d7ff44d03 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachBasicContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachBasicContext.cs @@ -10,21 +10,6 @@ The file contains the definition of a class defining a context object which define the basic properties defining an object. --*/ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; - namespace System.Windows.Xps.Serialization { internal abstract class BasicContext diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentPageSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentPageSerializer.cs index 665f7dac9d7..5dc5a0a68fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentPageSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentPageSerializer.cs @@ -3,22 +3,12 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentPageSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentPageSerializerAsync.cs index ddcb6282478..a97bb61b7e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentPageSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentPageSerializerAsync.cs @@ -3,23 +3,12 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; -using System.Windows.Shapes; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceCollectionSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceCollectionSerializer.cs index c4494eb1990..8e4b5cf6b9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceCollectionSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceCollectionSerializer.cs @@ -3,20 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceCollectionSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceCollectionSerializerAsync.cs index 5276929ac25..4268afad7e9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceCollectionSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceCollectionSerializerAsync.cs @@ -3,20 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceSerializer.cs index e44c501cf1c..e35c125c1b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceSerializer.cs @@ -3,20 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; using System.Windows.Threading; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceSerializerAsync.cs index dbca108d9ea..8770f133bcf 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentReferenceSerializerAsync.cs @@ -3,20 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; using System.Windows.Threading; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentSequenceSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentSequenceSerializer.cs index 26aea135014..874c547ed6c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentSequenceSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentSequenceSerializer.cs @@ -3,20 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentSequenceSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentSequenceSerializerAsync.cs index 38ca303dda7..fc6ee846fc1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentSequenceSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachDocumentSequenceSerializerAsync.cs @@ -3,20 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedDocumentSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedDocumentSerializer.cs index afa5e93deb7..c8bb013554c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedDocumentSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedDocumentSerializer.cs @@ -7,21 +7,9 @@ This file contains the definition of a class that defines the common functionality required to serialize a FixedDocument --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedDocumentSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedDocumentSerializerAsync.cs index 16768d1df56..7693a45e70a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedDocumentSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedDocumentSerializerAsync.cs @@ -8,21 +8,9 @@ This file contains the definition of a class that defines the common functionality required to serialize a FixedDocument --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedPageSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedPageSerializer.cs index 35b5488c919..9d486aacc0a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedPageSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedPageSerializer.cs @@ -10,18 +10,9 @@ defines the common functionality required to serialize a FixedPage --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedPageSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedPageSerializerAsync.cs index ab53940fd7c..fe2519f0925 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedPageSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachFixedPageSerializerAsync.cs @@ -11,18 +11,9 @@ defines the common functionality required to serialize a FixedPage --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachIDocumentPaginatorSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachIDocumentPaginatorSerializer.cs index d214fe675ad..6490df13d0c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachIDocumentPaginatorSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachIDocumentPaginatorSerializer.cs @@ -3,20 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Markup; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachIDocumentPaginatorSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachIDocumentPaginatorSerializerAsync.cs index 05a5c1b3046..edf1f92c5c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachIDocumentPaginatorSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachIDocumentPaginatorSerializerAsync.cs @@ -3,20 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Markup; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachNamespaceInfo.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachNamespaceInfo.cs index 35bde89b2a6..5a13d444066 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachNamespaceInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachNamespaceInfo.cs @@ -8,20 +8,7 @@ Contains the class definition of some classes that maintain the NameSpaces specific information. --*/ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachObjectContext.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachObjectContext.cs index a927a35a7b0..640dd666ff5 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachObjectContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachObjectContext.cs @@ -11,20 +11,7 @@ information about the object itself and all the properties contained within that object --*/ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentCollectionSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentCollectionSerializer.cs index a3b003b9e19..999212fd6a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentCollectionSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentCollectionSerializer.cs @@ -9,20 +9,7 @@ This file contains the definition of a class that defines the common functionality required to serialize a PageContentCollection --*/ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; using MS.Utility; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentCollectionSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentCollectionSerializerAsync.cs index 41035697d95..eafc8f8a973 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentCollectionSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentCollectionSerializerAsync.cs @@ -9,20 +9,7 @@ This file contains the definition of a class that defines the common functionality required to serialize a PageContentCollection --*/ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentSerializer.cs index 5dcfe8bc8eb..dfe69c21b54 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentSerializer.cs @@ -7,21 +7,8 @@ This file contains the definition of a class that defines the common functionality required to serialize a PageContent. --*/ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentSerializerAsync.cs index 764996f8b6b..bfa3e9ebb7d 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPageContentSerializerAsync.cs @@ -7,21 +7,8 @@ This file contains the definition of a class that defines the common functionality required to serialize a PageContent. --*/ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPrintTicketSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPrintTicketSerializer.cs index 066b9834bd3..512b9d6b80b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPrintTicketSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPrintTicketSerializer.cs @@ -10,21 +10,6 @@ This file contains the definition of a class that defines the common functionality required to serialize a PrintTicket. --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; using System.Printing; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPrintTicketSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPrintTicketSerializerAsync.cs index d3312fcbe30..5893dc9d29b 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPrintTicketSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachPrintTicketSerializerAsync.cs @@ -9,21 +9,6 @@ This file contains the definition of a class that defines the common functionality required to serialize a PrintTicket. --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; using System.Printing; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializableProperties.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializableProperties.cs index 22b4a2546b3..4dc260a8045 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializableProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializableProperties.cs @@ -10,19 +10,9 @@ serialization process --*/ -using System; using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Markup; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializationCacheItems.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializationCacheItems.cs index a111a47b119..1db1e01551e 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializationCacheItems.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializationCacheItems.cs @@ -3,19 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Markup; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializationUtils.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializationUtils.cs index fa359560a59..e1bc50432aa 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializationUtils.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializationUtils.cs @@ -3,24 +3,14 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; using System.IO; using System.IO.Packaging; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; using System.Globalization; -using System.Runtime.InteropServices; using System.Printing; using MS.Utility; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializer.cs index 5711f29be81..3dffaf48e83 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializer.cs @@ -9,19 +9,7 @@ the common functionality required to serialie on type in a graph of types rooted by some object instance --*/ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializerAsync.cs index bea26039205..b9526c72c71 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachSerializerAsync.cs @@ -11,19 +11,7 @@ the common functionality required to serialie on type in a graph of types rooted by some object instance --*/ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachUIElementCollectionSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachUIElementCollectionSerializer.cs index 3efea5b15d8..c955700bb21 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachUIElementCollectionSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachUIElementCollectionSerializer.cs @@ -12,20 +12,8 @@ the common functionality required to serialize a --*/ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachUIElementCollectionSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachUIElementCollectionSerializerAsync.cs index 2cb8ab540b1..764965b2ff6 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachUIElementCollectionSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachUIElementCollectionSerializerAsync.cs @@ -12,20 +12,8 @@ the common functionality required to serialize a --*/ -using System; using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachVisualSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachVisualSerializer.cs index f8dd90b3d36..363cc374c6c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachVisualSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachVisualSerializer.cs @@ -3,22 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Media.Media3D; -using System.Windows.Markup; using MS.Utility; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachVisualSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachVisualSerializerAsync.cs index c36e13dedab..bdff4a67db0 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachVisualSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/ReachVisualSerializerAsync.cs @@ -3,21 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsDocumentEvent.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsDocumentEvent.cs index 7e023dbab92..70dfa2d0790 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsDocumentEvent.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsDocumentEvent.cs @@ -3,23 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Xps; using System.Printing; #pragma warning disable 1634, 1691 //Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsLiterals.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsLiterals.cs index 8163b614b83..f6c1e944dbb 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsLiterals.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsLiterals.cs @@ -13,16 +13,6 @@ named properties or attributes of the Xps Serialization --*/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.IO.Packaging; -using System.Security.Cryptography.X509Certificates; -using System.Windows.Media; -using System.Windows.Xps.Serialization; - using MS.Internal; namespace System.Windows.Xps.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPageSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPageSerializer.cs index 772a35c63a8..29b56385584 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPageSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPageSerializer.cs @@ -2,22 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPageSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPageSerializerAsync.cs index 034dfee0e54..7f24a696ff9 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPageSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPageSerializerAsync.cs @@ -2,22 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPaginatorSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPaginatorSerializer.cs index 6812cafaac2..0cce9f98dce 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPaginatorSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPaginatorSerializer.cs @@ -2,20 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Markup; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPaginatorSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPaginatorSerializerAsync.cs index a0fa357e9ed..469d11e78be 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPaginatorSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentPaginatorSerializerAsync.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentSequenceSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentSequenceSerializer.cs index 9e9d1e70c41..8878ed83417 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentSequenceSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentSequenceSerializer.cs @@ -2,21 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; - namespace System.Windows.Xps.Serialization { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentSequenceSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentSequenceSerializerAsync.cs index b5f733967f2..994d3bb6a2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentSequenceSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMDocumentSequenceSerializerAsync.cs @@ -2,21 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; - namespace System.Windows.Xps.Serialization { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedDocumentSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedDocumentSerializer.cs index c64d363fe67..05c3692d9b1 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedDocumentSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedDocumentSerializer.cs @@ -2,22 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; - namespace System.Windows.Xps.Serialization { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedDocumentSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedDocumentSerializerAsync.cs index adb979e0981..afe7c116ac7 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedDocumentSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedDocumentSerializerAsync.cs @@ -2,22 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; - namespace System.Windows.Xps.Serialization { /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedPageSerializer.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedPageSerializer.cs index 92cb093a8ea..4ec28e16443 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedPageSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedPageSerializer.cs @@ -2,18 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedPageSerializerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedPageSerializerAsync.cs index 8c242ae7d19..a3e51ed786e 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedPageSerializerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMFixedPageSerializerAsync.cs @@ -2,23 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Markup; -using MS.Utility; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMHierarchySimulator.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMHierarchySimulator.cs index e9b18f5b24f..c85405f3652 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMHierarchySimulator.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMHierarchySimulator.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Printing; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Xps.Packaging; using System.Xml; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMPackagingPolicy.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMPackagingPolicy.cs index 51c4660cedf..298f3bb40c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMPackagingPolicy.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMPackagingPolicy.cs @@ -5,7 +5,6 @@ using MS.Internal; using MS.Internal.PrintWin32Thunk; using System.Collections; -using System.Collections.Generic; using System.IO; using System.IO.Packaging; using System.Printing; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMSerializationManager.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMSerializationManager.cs index 2a829d39642..927b31c7b7a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMSerializationManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMSerializationManager.cs @@ -3,13 +3,8 @@ // See the LICENSE file in the project root for more information. using MS.Utility; -using System; -using System.Collections.Generic; using System.ComponentModel; using System.Printing; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading.Tasks; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.Imaging; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMSerializationManagerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMSerializationManagerAsync.cs index 4491354688a..c1df90b3724 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMSerializationManagerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsOMSerializationManagerAsync.cs @@ -2,25 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Markup; using System.Windows.Threading; using MS.Internal; -using System.Printing; namespace System.Windows.Xps.Serialization { diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsPackagingPolicy.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsPackagingPolicy.cs index 1a89f7bce5b..1b4f0eaa068 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsPackagingPolicy.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsPackagingPolicy.cs @@ -9,22 +9,10 @@ This file contains the definition of a theclass that controls the serialization packaging policy. It is the buffering layer between the serializer and the package --*/ -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; using System.IO; -using System.IO.Packaging; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Printing; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsSerializationManager.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsSerializationManager.cs index 92a0da6d7be..f7e4e9f9e48 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsSerializationManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsSerializationManager.cs @@ -4,24 +4,14 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; using System.Printing; -using System.Security; -using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Media.Imaging; -using System.Windows.Markup; -using System.Windows.Xps; using MS.Utility; #pragma warning disable 1634, 1691 //Allows suppression of certain PreSharp messages diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsSerializationManagerAsync.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsSerializationManagerAsync.cs index f00dc25d893..8961ca628af 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsSerializationManagerAsync.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsSerializationManagerAsync.cs @@ -3,22 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; -using System.Reflection; using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Markup; using System.Windows.Threading; using MS.Internal; using System.Printing; diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsTokenContext.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsTokenContext.cs index 2ba4c1338ae..fe2438a188a 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsTokenContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/manager/XpsTokenContext.cs @@ -3,19 +3,8 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Collections.Specialized; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Xml; -using System.IO; -using System.Security; -using System.ComponentModel.Design.Serialization; -using System.Windows.Xps.Packaging; -using System.Windows.Documents; -using System.Windows.Media; using System.Windows.Markup; namespace System.Windows.Xps.Serialization diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/SerializerFactory/XpsSerializerFactory.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/SerializerFactory/XpsSerializerFactory.cs index 208dad64a46..3bdd4f1163c 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/SerializerFactory/XpsSerializerFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/SerializerFactory/XpsSerializerFactory.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; +using System.Windows.Documents.Serialization; + // // // @@ -12,13 +15,6 @@ namespace System.Windows.Xps.Serialization { - using System; - using System.IO; - using System.Printing; - using System.Windows.Xps; - using System.Windows.Documents.Serialization; - using System.Windows.Xps.Serialization; - /// /// SerializerFactory is the factory class for the SerializerWriter that wraps an XPSDocumentSerializer /// diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/SerializerFactory/XpsSerializerWriter.cs b/src/Microsoft.DotNet.Wpf/src/ReachFramework/SerializerFactory/XpsSerializerWriter.cs index 68d525378c7..2e517078cb2 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/SerializerFactory/XpsSerializerWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/SerializerFactory/XpsSerializerWriter.cs @@ -2,6 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; +using System.IO.Packaging; +using System.Printing; +using System.Windows.Documents; +using System.Windows.Documents.Serialization; +using System.Windows.Media; +using System.Windows.Xps.Packaging; + // // // @@ -12,16 +20,6 @@ namespace System.Windows.Xps.Serialization { - using System; - using System.IO; - using System.IO.Packaging; - using System.Printing; - using System.Windows.Xps; - using System.Windows.Documents; - using System.Windows.Documents.Serialization; - using System.Windows.Media; - using System.Windows.Xps.Packaging; - /// /// XpsSerializerWriter is a concrete implementation for a plug-in SerializerWriter. It punts everything to XpsDocumentWriter /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/AppDomainShutdownMonitor.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/AppDomainShutdownMonitor.cs index 213842df614..63eb7a748cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/AppDomainShutdownMonitor.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/AppDomainShutdownMonitor.cs @@ -12,11 +12,6 @@ // //--------------------------------------------------------------------------- -using System; -using System.Diagnostics; // Assert -using System.Collections.Generic; // Dictionary -using System.Threading; // [ThreadStatic] - namespace MS.Internal { internal interface IAppDomainShutdownListener diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CharacterBuffer.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CharacterBuffer.cs index ac92ec12ec6..a9a764853c7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CharacterBuffer.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CharacterBuffer.cs @@ -16,15 +16,9 @@ // //--------------------------------------------------------------------------- -using System; -using System.Windows; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Text; using System.Runtime.InteropServices; -using System.Security; -using SR=MS.Internal.PresentationCore.SR; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Commands/CommandLibraryHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Commands/CommandLibraryHelper.cs index 9499e5725e1..e93d59c12de 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Commands/CommandLibraryHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Commands/CommandLibraryHelper.cs @@ -14,9 +14,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.Security; -using System.Windows.Input; +using System.Windows.Input; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CommonDependencyPropertyAttribute.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CommonDependencyPropertyAttribute.cs index 438a6f72697..e69c3033f4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CommonDependencyPropertyAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CommonDependencyPropertyAttribute.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Diagnostics; - #if WINDOWS_BASE namespace MS.Internal.WindowsBase #elif PRESENTATION_CORE diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CopyOnWriteList.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CopyOnWriteList.cs index a698684e85c..ffe46eebd7b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CopyOnWriteList.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CopyOnWriteList.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Diagnostics; - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -using MS.Internal.YourAssemblyName; -#endif namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CriticalExceptions.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CriticalExceptions.cs index 6ab04fe6f2d..3d88a29edd1 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CriticalExceptions.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CriticalExceptions.cs @@ -11,7 +11,6 @@ namespace MS.Internal.Markup #elif SYSTEM_XAML namespace System.Xaml #else - namespace MS.Internal #endif { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CulturePreservingExecutionContext.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CulturePreservingExecutionContext.cs index c2d5f901960..7f05010cb57 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CulturePreservingExecutionContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/CulturePreservingExecutionContext.cs @@ -23,9 +23,7 @@ // during Run and Dispose. -using System; using System.Globalization; -using System.Security; using System.Threading; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/DoubleUtil.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/DoubleUtil.cs index f1e3116eb25..63892f7e33a 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/DoubleUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/DoubleUtil.cs @@ -14,21 +14,7 @@ // // -using System; using System.Windows; -using System.Runtime.InteropServices; - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -using MS.Internal.YourAssemblyName; -#endif namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FixedPageInfo.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FixedPageInfo.cs index 78501ee98dc..8359cefdd1a 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FixedPageInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FixedPageInfo.cs @@ -9,8 +9,6 @@ // glyph run information from a fixed-format page. // -using System; - namespace MS.Internal { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FloatUtil.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FloatUtil.cs index a41d1cc98df..f891c1d05d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FloatUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FloatUtil.cs @@ -18,8 +18,6 @@ // //--------------------------------------------------------------------------- -using System; - namespace MS.Internal { internal static class FloatUtil diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FreezableOperations.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FreezableOperations.cs index ce44bbd6d5f..4ffacd7950c 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FreezableOperations.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/FreezableOperations.cs @@ -13,7 +13,6 @@ // //--------------------------------------------------------------------------- -using System; using System.Windows; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/AlignmentXValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/AlignmentXValidation.cs index 3a9456383ff..4a49fda7b40 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/AlignmentXValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/AlignmentXValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/AlignmentYValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/AlignmentYValidation.cs index 79fce7ec42e..a4e5471ab45 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/AlignmentYValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/AlignmentYValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/BitmapScalingModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/BitmapScalingModeValidation.cs index cd2859a7e97..17fe72c9025 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/BitmapScalingModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/BitmapScalingModeValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/BrushMappingModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/BrushMappingModeValidation.cs index 283d3b20d43..39cabcfb364 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/BrushMappingModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/BrushMappingModeValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/CachingHintValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/CachingHintValidation.cs index 1548ee2ebdf..fa6e1c2e784 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/CachingHintValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/CachingHintValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ClearTypeHintValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ClearTypeHintValidation.cs index 286faf64146..f62cb3105c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ClearTypeHintValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ClearTypeHintValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ColorInterpolationModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ColorInterpolationModeValidation.cs index 76f959bc102..c55df07cf67 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ColorInterpolationModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ColorInterpolationModeValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/EdgeModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/EdgeModeValidation.cs index ac394b6ca87..06d51eb4345 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/EdgeModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/EdgeModeValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/EdgeProfileValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/EdgeProfileValidation.cs index f5f34efd9df..74c2a03a702 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/EdgeProfileValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/EdgeProfileValidation.cs @@ -13,7 +13,6 @@ //--------------------------------------------------------------------------- #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/FillRuleValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/FillRuleValidation.cs index dff9b440635..36251f23222 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/FillRuleValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/FillRuleValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/GeometryCombineModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/GeometryCombineModeValidation.cs index 80f36295ea4..22240c497d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/GeometryCombineModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/GeometryCombineModeValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/GradientSpreadMethodValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/GradientSpreadMethodValidation.cs index e4027a64d93..88abb1f1b4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/GradientSpreadMethodValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/GradientSpreadMethodValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/KernelTypeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/KernelTypeValidation.cs index bf06aa1ae53..a74eff18967 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/KernelTypeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/KernelTypeValidation.cs @@ -13,7 +13,6 @@ //--------------------------------------------------------------------------- #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/PenLineCapValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/PenLineCapValidation.cs index 04ef5019863..d35d85f7773 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/PenLineCapValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/PenLineCapValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/PenLineJoinValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/PenLineJoinValidation.cs index e6d2bfd49c2..49a6373e866 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/PenLineJoinValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/PenLineJoinValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/RenderingBiasValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/RenderingBiasValidation.cs index 19e37827887..19676512942 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/RenderingBiasValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/RenderingBiasValidation.cs @@ -13,7 +13,6 @@ //--------------------------------------------------------------------------- #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/RotationValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/RotationValidation.cs index a4a4d7ddceb..e2b3f98df20 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/RotationValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/RotationValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ShaderRenderModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ShaderRenderModeValidation.cs index b8f0ffff882..e21517c156c 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ShaderRenderModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/ShaderRenderModeValidation.cs @@ -13,7 +13,6 @@ //--------------------------------------------------------------------------- #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/StretchValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/StretchValidation.cs index 3933e2df0ef..6a835309307 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/StretchValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/StretchValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/SweepDirectionValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/SweepDirectionValidation.cs index 1a0d75a5544..8c060db2cae 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/SweepDirectionValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/SweepDirectionValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextDecorationLocationValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextDecorationLocationValidation.cs index 2b5285a46cc..681a5e2689c 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextDecorationLocationValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextDecorationLocationValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextDecorationUnitValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextDecorationUnitValidation.cs index c943519f8bf..9fc9ad77db8 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextDecorationUnitValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextDecorationUnitValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextHintingModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextHintingModeValidation.cs index 37a2fa74235..bcaead1e0eb 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextHintingModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextHintingModeValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextRenderingModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextRenderingModeValidation.cs index 2f254df5f08..cc6456ff88d 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextRenderingModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TextRenderingModeValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TileModeValidation.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TileModeValidation.cs index adb354b0dc2..2c0dafa9cee 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TileModeValidation.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Generated/TileModeValidation.cs @@ -12,12 +12,7 @@ // //--------------------------------------------------------------------------- -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using MS.Internal.PresentationCore; #if PRESENTATION_CORE -using SR=MS.Internal.PresentationCore.SR; #else using SR=System.Windows.SR; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/HashHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/HashHelper.cs deleted file mode 100644 index b61ed460255..00000000000 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/HashHelper.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// -// -// -// Description: Static class to help work around hashing-related bugs. -// - -using System; -using MS.Internal; // BaseHashHelper - -#if WINDOWS_BASE -namespace MS.Internal.Hashing.WindowsBase -#elif PRESENTATION_CORE -namespace MS.Internal.Hashing.PresentationCore -#elif PRESENTATIONFRAMEWORK -using System.ComponentModel; // ICustomTypeDescriptor - -namespace MS.Internal.Hashing.PresentationFramework -#else -#error Attempt to define HashHelper in an unknown assembly. -namespace MS.Internal.YourAssemblyName -#endif -{ - internal static class HashHelper - { - // The class cctor registers this assembly's exceptional types with - // the base helper. - static HashHelper() - { - Initialize(); // this makes FxCop happy - otherwise Initialize is "unused code" - -#if WINDOWS_BASE - Type[] types = Type.EmptyTypes; -#else - Type[] types = new Type[] { -#if PRESENTATION_CORE - typeof(System.Windows.Media.CharacterMetrics), // bug 1612093 - typeof(System.Windows.Ink.ExtendedProperty), // bug 1612101 - typeof(System.Windows.Media.FamilyTypeface), // bug 1612103 - typeof(System.Windows.Media.NumberSubstitution), // bug 1612105 -#elif PRESENTATIONFRAMEWORK - typeof(System.Windows.Markup.Localizer.BamlLocalizableResource), // bug 1612118 - typeof(System.Windows.ComponentResourceKey), // bug 1612119 -#endif - }; -#endif - BaseHashHelper.RegisterTypes(typeof(HashHelper).Assembly, types); - - // initialize lower-level assemblies -#if PRESENTATIONFRAMEWORK - MS.Internal.Hashing.PresentationCore.HashHelper.Initialize(); -#endif - } - - - // certain objects don't have reliable hashcodes, and cannot be used - // within a Hashtable, Dictionary, etc. - internal static bool HasReliableHashCode(object item) - { - return BaseHashHelper.HasReliableHashCode(item); - } - - // this method doesn't do anything, but calling it makes sure the static - // cctor gets called - internal static void Initialize() - { - } - } -} diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/Packaging/CompoundFile/ContainerFlags.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/Packaging/CompoundFile/ContainerFlags.cs index 46207efc052..9a58710abac 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/Packaging/CompoundFile/ContainerFlags.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/Packaging/CompoundFile/ContainerFlags.cs @@ -22,9 +22,6 @@ // // - -using System; - namespace MS.Internal.IO.Packaging.CompoundFile { #region ContainerFlags enumeration diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/Packaging/PackagingUtilities.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/Packaging/PackagingUtilities.cs index 5a2017e2740..f95650bc363 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/Packaging/PackagingUtilities.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/Packaging/PackagingUtilities.cs @@ -10,19 +10,11 @@ // // -using System; using System.IO; using System.IO.IsolatedStorage; -using MS.Internal.WindowsBase; -using System.Xml; // For XmlReader -using System.Diagnostics; // For Debug.Assert -using System.Text; // For Encoding -using System.Windows; // For Exception strings - SR -using System.Security; // for SecurityCritical -using Microsoft.Win32; // for Registry classes - - -using MS.Internal; +using System.Xml; +using System.Text; +using Microsoft.Win32; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/SynchronizingStream.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/SynchronizingStream.cs index bce4635b41b..7c942cb73f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/SynchronizingStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/IO/SynchronizingStream.cs @@ -12,10 +12,7 @@ // //------------------------------------------------------------------------------ -using System; -using System.Diagnostics; using System.IO; -using System.Windows; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Ink/BitStream.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Ink/BitStream.cs index a62023b5c84..63d4cddaeea 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Ink/BitStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Ink/BitStream.cs @@ -2,16 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Utility; -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.Windows; -using System.Diagnostics; - -using SR=MS.Internal.PresentationCore.SR; - namespace MS.Internal.Ink { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Ink/Native.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Ink/Native.cs index 2616e023737..71ddd641dfa 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Ink/Native.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Ink/Native.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; using System.Runtime.CompilerServices; namespace MS.Internal.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Invariant.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Invariant.cs index 7481766eee6..19d33e3c124 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Invariant.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Invariant.cs @@ -2,27 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: Provides methods that assert an application is in a valid state. -// - -#if WINDOWS_BASE -using MS.Internal.WindowsBase; -#elif DRT -using MS.Internal.Drt; -#else -#error There is an attempt to use this class from an unexpected assembly. -#endif +using Microsoft.Win32; + namespace MS.Internal { - using System; - using System.Security; - using Microsoft.Win32; - using System.Diagnostics; - using System.Windows; - /// /// Provides methods that assert an application is in a valid state. /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/LegacyPriorityQueue.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/LegacyPriorityQueue.cs index f7f80028056..d5ec357197b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/LegacyPriorityQueue.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/LegacyPriorityQueue.cs @@ -48,10 +48,6 @@ // (We have no reports of this actually happening, possibly because it might escape // notice by all but the most font-obsessed users.) -using System; -using System.Diagnostics; -using System.Collections.Generic; - namespace MS.Internal { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/MatrixUtil.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/MatrixUtil.cs index ffdda697c65..00e53c80fad 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/MatrixUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/MatrixUtil.cs @@ -2,32 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: This file contains the implementation of MatrixUtil, which // provides matrix multiply code. -// -// -// -// -using System; using System.Windows; using System.Windows.Media; -using System.Diagnostics; -using System.Security; -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -using MS.Internal.YourAssemblyName; -#endif namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/MimeTypeMapper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/MimeTypeMapper.cs index 1c2d5e72a13..f83169d8695 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/MimeTypeMapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/MimeTypeMapper.cs @@ -3,13 +3,9 @@ // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Collections.Generic; using System.Globalization; using System.IO; -using System.Security; -using System.Text; #if PRESENTATION_CORE using MS.Internal.PresentationCore; // for BindUriHelper.UriToString #else diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Pair.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Pair.cs index f263f59fda1..d74ff709e28 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Pair.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Pair.cs @@ -15,9 +15,6 @@ // //--------------------------------------------------------------------------- -using System; -using System.Diagnostics; - namespace MS.Internal { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/PartialList.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/PartialList.cs index fb6d9479938..6a2c1e20af4 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/PartialList.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/PartialList.cs @@ -16,10 +16,7 @@ // //--------------------------------------------------------------------------- -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/PointUtil.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/PointUtil.cs index a8e28e108c2..b859c99a6d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/PointUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/PointUtil.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using System.Security; using System.Windows; using System.Windows.Media; using System.Windows.Interop; @@ -12,21 +10,20 @@ using MS.Win32; #if PRESENTATION_CORE -using MS.Internal.PresentationCore; #else #error There is an attempt to use this class from an unexpected assembly. #endif namespace MS.Internal { - /// - /// A utility class for converting Point and Rect data between co-ordinate spaces - /// - /// - /// To avoid confusion, Avalon based Point and Rect variables are prefixed with - /// "point" and "rect" respectively, whereas Win32 POINT and RECT variables are - /// prefixed with "pt" and "rc" respectively. - /// + /// + /// A utility class for converting Point and Rect data between co-ordinate spaces + /// + /// + /// To avoid confusion, Avalon based Point and Rect variables are prefixed with + /// "point" and "rect" respectively, whereas Win32 POINT and RECT variables are + /// prefixed with "pt" and "rc" respectively. + /// internal static class PointUtil { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReaderWriterLockSlimWrapper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReaderWriterLockSlimWrapper.cs index 0a159965445..4bc77449274 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReaderWriterLockSlimWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReaderWriterLockSlimWrapper.cs @@ -2,15 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Wrapper that allows ReaderWriterLockSlim to detect potential // error conditions like (i) calling into Dispose() of the lock object // when it is already held, and (ii) attempts to acquire the lock after // it has been disposed. - -using System; using System.Reflection; using System.Threading; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReaderWriterLockWrapper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReaderWriterLockWrapper.cs index 45dad4a42c3..2fcdb1b10aa 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReaderWriterLockWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReaderWriterLockWrapper.cs @@ -2,23 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: // Wrapper that allows a ReaderWriterLock to work with C#'s using() clause -// -// -// -// - - -using System; -using System.Runtime.ConstrainedExecution; -using System.Security; using System.Threading; -using System.Windows.Threading; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Registry.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Registry.cs index f921da066b3..4d8865533be 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Registry.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Registry.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using MS.Internal; -using System.Security; using Microsoft.Win32; -//****** // Keep in sync with host\Inc\Registry.hxx namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ResourceIDHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ResourceIDHelper.cs index 31867691c1d..fb82e769adc 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ResourceIDHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ResourceIDHelper.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Text; using System.Globalization; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SafeSecurityHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SafeSecurityHelper.cs index 2f05a597dfd..05b671f2ca6 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SafeSecurityHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SafeSecurityHelper.cs @@ -6,11 +6,7 @@ // Purpose: Helper functions that require elevation but are safe to use. -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; -using System.Security; using System.Reflection; using System.Runtime.InteropServices; using System.Threading; @@ -22,8 +18,8 @@ using TypeConverterHelper = System.Windows.Markup.TypeConverterHelper; #endif #if PRESENTATIONFRAMEWORK - using System.Windows; - using System.Windows.Media; +using System.Windows; +using System.Windows.Media; #endif // The SafeSecurityHelper class differs between assemblies and could not actually be diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SafeSecurityHelperAvalon.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SafeSecurityHelperAvalon.cs index 08d72580630..ba7e0a1fe53 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SafeSecurityHelperAvalon.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SafeSecurityHelperAvalon.cs @@ -10,12 +10,8 @@ \***************************************************************************/ -using System; -using System.Globalization; -using System.Security; -using System.Reflection; -using System.Windows.Media ; -using System.Windows; +using System.Windows.Media; +using System.Windows; //**************** // diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs index d11d1173075..98618c5151e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs @@ -8,6 +8,38 @@ * \***************************************************************************/ +using System.Security; +using System.ComponentModel; +using System.Runtime.InteropServices; +using Microsoft.Win32; + +#if !PBTCOMPILER +using MS.Win32; +using System.IO.Packaging; +#endif + +#if PRESENTATION_CORE +using MS.Internal.AppModel; +#endif + +#if PRESENTATIONFRAMEWORK_ONLY +using System.Diagnostics; +using System.Windows; +using MS.Internal.Utility; // BindUriHelper +using MS.Internal.AppModel; +#endif + +#if REACHFRAMEWORK +using MS.Internal.Utility; +#endif +#if WINDOWS_BASE +// This existed originally to allow FontCache service to +// see the WindowsBase variant of this class. We no longer have +// a FontCache service, but over time other parts of WPF might +// have started to depend on this, so we leave it as-is for +// compat. +#endif + // The SecurityHelper class differs between assemblies and could not actually be // shared, so it is duplicated across namespaces to prevent name collision. // This duplication seems hardly necessary now. We should continue @@ -29,44 +61,7 @@ namespace MS.Internal.Drt #error Class is being used from an unknown assembly. #endif { - using System; - using System.Globalization; // CultureInfo - using System.Security; - using System.ComponentModel; - using System.Runtime.InteropServices; - using Microsoft.Win32; - using System.Diagnostics.CodeAnalysis; - - -#if !PBTCOMPILER - using MS.Win32; - using System.IO.Packaging; -#endif - -#if PRESENTATION_CORE -using MS.Internal.AppModel; -#endif - -#if PRESENTATIONFRAMEWORK_ONLY - using System.Diagnostics; - using System.Windows; - using MS.Internal.Utility; // BindUriHelper - using MS.Internal.AppModel; -#endif - -#if REACHFRAMEWORK - using MS.Internal.Utility; -#endif -#if WINDOWS_BASE - // This existed originally to allow FontCache service to - // see the WindowsBase variant of this class. We no longer have - // a FontCache service, but over time other parts of WPF might - // have started to depend on this, so we leave it as-is for - // compat. -#endif - - -internal static class SecurityHelper + internal static class SecurityHelper { #if PRESENTATION_CORE diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SequentialUshortCollection.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SequentialUshortCollection.cs index f7c805b1792..f8473765970 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SequentialUshortCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SequentialUshortCollection.cs @@ -2,28 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -//--------------------------------------------------------------------------- -// - -// -// // Description: A class that implements ICollection for a sequence of numbers [0..n-1]. -// -// -// -// -// -//--------------------------------------------------------------------------- - -using System; -using System.Windows; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Text; -using System.Runtime.InteropServices; -using SR=MS.Internal.PresentationCore.SR; +using System.Collections; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SizeLimitedCache.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SizeLimitedCache.cs index 3b2ff572b4f..55f93b4fc56 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SizeLimitedCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SizeLimitedCache.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; - -using MS.Internal.PresentationCore; - namespace MS.Internal { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/TextServicesLoader.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/TextServicesLoader.cs index c17c414f53e..fa5180a2c0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/TextServicesLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/TextServicesLoader.cs @@ -12,17 +12,11 @@ // // -using System; -using System.Runtime.InteropServices; -using System.Security; using System.Threading; -using MS.Internal; using Microsoft.Win32; using MS.Win32; -using System.Diagnostics; #if WINDOWS_BASE - using MS.Internal.WindowsBase; #elif PRESENTATION_CORE using MS.Internal.PresentationCore; #elif PRESENTATIONFRAMEWORK diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/TokenizerHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/TokenizerHelper.cs index dd578b04c13..d0ad4f5982e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/TokenizerHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/TokenizerHelper.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. // See the LICENSE file in the project root for more information. @@ -7,32 +7,13 @@ // This class should be used by most - if not all - MIL parsers. // -using System; -using System.Collections; -using System.Diagnostics; -using System.ComponentModel; using System.Globalization; -#if !PBTCOMPILER -using System.Windows; -#endif - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif PBTCOMPILER - using MS.Utility ; - using MS.Internal.Markup; -#elif DRT - using MS.Internal.Drt; -#else -using MS.Internal.YourAssemblyName; -#endif - #if PBTCOMPILER +using System; +using System.Diagnostics; +using MS.Utility; + namespace MS.Internal.Markup #else namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/UriComparer.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/UriComparer.cs index 04ace271d66..f098d8adcf6 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/UriComparer.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/UriComparer.cs @@ -15,10 +15,6 @@ This causes cache lookups in hash tables and dictionaries to fail --*/ -using System; -using System.Collections.Generic; -using System.Diagnostics; - namespace MS.Internal { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WeakReferenceEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WeakReferenceEnumerator.cs index 607b1918609..5fa81ca594e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WeakReferenceEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WeakReferenceEnumerator.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Windows; - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -using MS.Internal.YourAssemblyName; -#endif // Disable pragma warnings to enable PREsharp pragmas #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WeakReferenceList.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WeakReferenceList.cs index f20ba648d7f..7ef64b69423 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WeakReferenceList.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WeakReferenceList.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Diagnostics; - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -using MS.Internal.YourAssemblyName; -#endif namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WindowsRuntime/ReflectionHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WindowsRuntime/ReflectionHelper.cs index 16e0b4cc6f9..3447ed98897 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WindowsRuntime/ReflectionHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/WindowsRuntime/ReflectionHelper.cs @@ -11,17 +11,20 @@ using MS.Internal.WindowsBase; #elif PRESENTATION_CORE using MS.Internal.PresentationCore; +using System; +using System.Reflection; + #elif PRESENTATIONFRAMEWORK using MS.Internal.WindowsRuntime; +using System; +using System.Reflection; + #elif REACHFRAMEWORK using MS.Internal.ReachFramework; #else using MS.Internal; #endif -using System; -using System.Runtime.InteropServices; -using System.Security; #if WINDOWS_BASE namespace MS.Internal.WindowsBase @@ -35,10 +38,6 @@ namespace MS.Internal { namespace WindowsRuntime { - using System; - using System.Collections.Generic; - using System.Reflection; - internal static class ReflectionHelper { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Context/XamlContextStack.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Context/XamlContextStack.cs index 5e454537bf8..2287b21aa55 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Context/XamlContextStack.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Context/XamlContextStack.cs @@ -4,10 +4,7 @@ #nullable disable -using System; -using System.Collections.Generic; using System.Text; -using System.Diagnostics; using System.Globalization; namespace MS.Internal.Xaml.Context diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Context/XamlFrame.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Context/XamlFrame.cs index bf983b4a22f..fc2a4ff4275 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Context/XamlFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Context/XamlFrame.cs @@ -4,11 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; - namespace MS.Internal.Xaml.Context { abstract class XamlFrame diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Parser/SpecialBracketCharacters.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Parser/SpecialBracketCharacters.cs index 091d63efb7a..2996ee89035 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Parser/SpecialBracketCharacters.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Xaml/Parser/SpecialBracketCharacters.cs @@ -7,7 +7,6 @@ // Description: Data model for the Bracket characters specified on a Markup Extension property. using System; -using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/BindUriHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/BindUriHelper.cs index f12a9233cdc..75e8674bb11 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/BindUriHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/BindUriHelper.cs @@ -2,18 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.IO; -using System.Net; // HttpWebRequest -using System.Net.Cache; // HttpRequestCachePolicy -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Text; +using System.Text; using System.Windows.Navigation; // BaseUriHelper #if !PBTCOMPILER -using MS.Win32; #endif // The functionality in this class is shared across framework and core. The functionality in core @@ -37,11 +29,11 @@ namespace MS.Internal.Utility #error Class is being used from an unknown assembly. #endif { - // - // Methods in this partial class are shared by PresentationFramework and PresentationBuildTasks. - // See also WpfWebRequestHelper. - // - internal static partial class BindUriHelper + // + // Methods in this partial class are shared by PresentationFramework and PresentationBuildTasks. + // See also WpfWebRequestHelper. + // + internal static partial class BindUriHelper { private const int MAX_PATH_LENGTH = 2048 ; private const int MAX_SCHEME_LENGTH = 32; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/DpiAwarenessContext/DpiAwarenessContextHandle+DpiUtil.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/DpiAwarenessContext/DpiAwarenessContextHandle+DpiUtil.cs index f0cbb1c069f..a7866b011ea 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/DpiAwarenessContext/DpiAwarenessContextHandle+DpiUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/DpiAwarenessContext/DpiAwarenessContextHandle+DpiUtil.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Win32; namespace MS.Utility { - using MS.Utility; - using MS.Win32; - using System; - /// /// Contains inner class /// @@ -65,4 +62,4 @@ private static bool AreDpiAwarenessContextsTriviallyEqual(IntPtr dpiContextA, In } } } -} \ No newline at end of file +} diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/DpiAwarenessContext/DpiAwarenessContextHandle.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/DpiAwarenessContext/DpiAwarenessContextHandle.cs index 143362bc9bb..06b35ebaae8 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/DpiAwarenessContext/DpiAwarenessContextHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/DpiAwarenessContext/DpiAwarenessContextHandle.cs @@ -2,15 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Win32; +using System.Runtime.InteropServices; namespace MS.Utility { - using MS.Win32; - using System; - using System.Collections.Generic; - using System.Runtime.InteropServices; - using System.Security; - /// /// A type representing DPI_AWARENESS_CONTEXT values /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalList.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalList.cs index 227753a9270..e08c8c8ed5b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalList.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalList.cs @@ -4,10 +4,7 @@ #nullable disable -using System; -using System.Diagnostics; using System.Collections; -using System.Collections.Generic; #if SYSTEM_XAML using System.Xaml; #else @@ -17,37 +14,37 @@ //using MS.Internal.PresentationCore; //using SR=MS.Internal.WindowsBase.SR; - // These classes implement a frugal storage model for lists of type . - // Performance measurements show that Avalon has many lists that contain - // a limited number of entries, and frequently zero or a single entry. - // Therefore these classes are structured to prefer a storage model that - // starts at zero, and employs a conservative growth strategy to minimize - // the steady state memory footprint. Also note that the list uses one - // fewer objects than ArrayList and List and does no allocations at all - // until an item is inserted into the list. - // - // The code is also structured to perform well from a CPU standpoint. Perf - // analysis shows that the reduced number of processor cache misses makes - // FrugalList faster than ArrayList or List, especially for lists of 6 - // or fewer items. Timing differ with the size of . - // - // FrugalList is appropriate for small lists or lists that grow slowly. - // Due to the slow growth, if you use it for a list with more than 6 initial - // entires is best to set the capacity of the list at construction time or - // soon after. If you must grow the list by a large amount, set the capacity - // or use Insert() method to force list growth to the final size. Choose - // your collections wisely and pay particular attention to the growth - // patterns and search methods. - - // FrugalList has all of the methods of the Ilist interface, but implements - // them as virtual methods of the class and not as Interface methods. This - // is to avoid the virtual stub dispatch CPU costs associated with Interfaces. - - // We suppress two FxCop warnings in this module because not all usages - // of FrugalList will instantiate all the storage classes and not all class instances - // will use every method. - // CA1812:AvoidUninstantiatedInternalClasses - // +// These classes implement a frugal storage model for lists of type . +// Performance measurements show that Avalon has many lists that contain +// a limited number of entries, and frequently zero or a single entry. +// Therefore these classes are structured to prefer a storage model that +// starts at zero, and employs a conservative growth strategy to minimize +// the steady state memory footprint. Also note that the list uses one +// fewer objects than ArrayList and List and does no allocations at all +// until an item is inserted into the list. +// +// The code is also structured to perform well from a CPU standpoint. Perf +// analysis shows that the reduced number of processor cache misses makes +// FrugalList faster than ArrayList or List, especially for lists of 6 +// or fewer items. Timing differ with the size of . +// +// FrugalList is appropriate for small lists or lists that grow slowly. +// Due to the slow growth, if you use it for a list with more than 6 initial +// entires is best to set the capacity of the list at construction time or +// soon after. If you must grow the list by a large amount, set the capacity +// or use Insert() method to force list growth to the final size. Choose +// your collections wisely and pay particular attention to the growth +// patterns and search methods. + +// FrugalList has all of the methods of the Ilist interface, but implements +// them as virtual methods of the class and not as Interface methods. This +// is to avoid the virtual stub dispatch CPU costs associated with Interfaces. + +// We suppress two FxCop warnings in this module because not all usages +// of FrugalList will instantiate all the storage classes and not all class instances +// will use every method. +// CA1812:AvoidUninstantiatedInternalClasses +// #if SYSTEM_XAML namespace System.Xaml.MS.Impl diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalMap.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalMap.cs index 1c9cac96dda..55ac7effda2 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalMap.cs @@ -2,14 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Collections; -using System.Collections.Generic; using System.Windows; #if WINDOWS_BASE -using MS.Internal.WindowsBase; #elif PRESENTATION_CORE using MS.Internal.PresentationCore; #elif PRESENTATIONFRAMEWORK diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/ItemList.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/ItemList.cs index 3c8cb07a905..6f87c1a5a7e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/ItemList.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/ItemList.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace MS.Utility { // diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/ItemMap.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/ItemMap.cs index c08903cec24..9861c42aaf6 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/ItemMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/ItemMap.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.Diagnostics; - namespace MS.Utility { // @@ -16,7 +12,7 @@ namespace MS.Utility // This struct is designed to function with its fields starting at // their default values and without the need of surfacing a constructor // other than the deafult - #pragma warning disable 649 +#pragma warning disable 649 internal struct ItemStructMap { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/Maps.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/Maps.cs index 8adedf626a3..d60f108c944 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/Maps.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/Maps.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/PerfService.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/PerfService.cs index c58575730b5..55b196e66dc 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/PerfService.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/PerfService.cs @@ -4,15 +4,7 @@ // Description: Implements the Service class for perf diagnostics -using System; -using System.Text; -using System.Windows; -using System.Collections.Generic; using SRCS = System.Runtime.CompilerServices; - -using Microsoft.Win32; -using MS.Internal; -using MS.Utility; using MS.Win32.PresentationCore; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/Trace.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/Trace.cs index 04e218d9222..8d3281d3457 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/Trace.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/Trace.cs @@ -6,16 +6,6 @@ #if !SILVERLIGHTXAML -using System.Collections; -using System.Diagnostics.Tracing; -using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Security; -using System.Threading; -using System; -using MS.Internal.WindowsBase; - - #if SYSTEM_XAML namespace MS.Internal.Xaml #else diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/TraceProvider.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/TraceProvider.cs index 9a9b1ef9dec..7f9a0d5f7f2 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/TraceProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/TraceProvider.cs @@ -7,14 +7,10 @@ // Provides an internal Avalon API to replace Microsoft.Windows.EventTracing.dll #if !SILVERLIGHTXAML -using System; using MS.Win32; using MS.Internal; using System.Runtime.InteropServices; -using System.Security; using System.Globalization; //for CultureInfo -using System.Diagnostics; -using MS.Internal.WindowsBase; #pragma warning disable 1634, 1691 //disable warnings about unknown pragma diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/ExternDll.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/ExternDll.cs index 8a1e2fa785b..2bf2a65bcaa 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/ExternDll.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/ExternDll.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace MS.Win32 { internal static class ExternDll diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HandleCollector.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HandleCollector.cs index ace682daab9..5c6a94642f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HandleCollector.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HandleCollector.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using MS.Win32 ; using System.Runtime.InteropServices; namespace MS.Win32 diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndSubclass.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndSubclass.cs index 17dac0280e3..d17b78efeac 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndSubclass.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndSubclass.cs @@ -2,29 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.InteropServices; -using MS.Internal; using MS.Internal.Interop; -using MS.Utility; -using System.Windows; using System.Windows.Threading; -using System.Security; // CAS -using System.Threading; // Thread - -// The SecurityHelper class differs between assemblies and could not actually be -// shared, so it is duplicated across namespaces to prevent name collision. -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -#error Attempt to use a class (duplicated across multiple namespaces) from an unknown assembly. -#endif +using System.Threading; namespace MS.Win32 { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndWrapper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndWrapper.cs index 4e38ac3c245..e804e29a57c 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndWrapper.cs @@ -2,28 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; -using System.Collections.Generic; +using System.Globalization; +using System.Runtime.InteropServices; using System.Threading; using System.Windows.Threading; -using System.Runtime.InteropServices; -using System.Diagnostics; using MS.Internal; using MS.Internal.Interop; -using System.Globalization; // CultureInfo.InvariantCulture - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -using MS.Internal.YourAssemblyName; -#endif // Disable pragma warnings to enable PREsharp pragmas #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndWrapperHook.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndWrapperHook.cs index 5cf212de164..8d92bb26602 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndWrapperHook.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/HwndWrapperHook.cs @@ -2,21 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -using MS.Internal.YourAssemblyName; -#endif - namespace MS.Win32 { internal delegate IntPtr HwndWrapperHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled); diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/LoadLibraryHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/LoadLibraryHelper.cs index af0f153ff04..c52e6ae5223 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/LoadLibraryHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/LoadLibraryHelper.cs @@ -2,16 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Runtime.InteropServices; + // Description: Helper class for calling LoadLibrary using SEARCH_SYSTEM32 when possible namespace MS.Win32 { - using System; - using System.Security; - using System.Runtime.InteropServices; - - - internal static class LoadLibraryHelper { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/ManagedWndProcTracker.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/ManagedWndProcTracker.cs index 3bc5aa1c600..338db3bb8a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/ManagedWndProcTracker.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/ManagedWndProcTracker.cs @@ -4,28 +4,10 @@ //#define LOGGING -using System; using System.Collections; -using System.Threading; - using System.Runtime.InteropServices; using MS.Internal; using MS.Internal.Interop; -using System.Security; - -// The SecurityHelper class differs between assemblies and could not actually be -// shared, so it is duplicated across namespaces to prevent name collision. -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -#error Attempt to use a class (duplicated across multiple namespaces) from an unknown assembly. -#endif namespace MS.Win32 { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/MessageOnlyHwndWrapper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/MessageOnlyHwndWrapper.cs index 2b2410d3366..1b6935763d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/MessageOnlyHwndWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/MessageOnlyHwndWrapper.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Threading; -using System.Security ; -using System.Runtime.InteropServices; - namespace MS.Win32 { // Specialized version of HwndWrapper for message-only windows. diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsCLR.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsCLR.cs index 5dbb847a9bd..96ce2a431e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsCLR.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsCLR.cs @@ -4,26 +4,17 @@ #pragma warning disable 649 // Disable CS0649: "field is never assigned to" -namespace MS.Win32 { - using Accessibility; - using System.Runtime.InteropServices; - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.IO; - using System.Text; - using MS.Internal; +using System.Runtime.InteropServices; +using System; +using System.Text; #if !DRT && !UIAUTOMATIONTYPES - using MS.Internal.Interop; - using MS.Utility; +using MS.Internal.Interop; +using MS.Utility; #endif - using Microsoft.Win32; - using System.Security; - // The SecurityHelper class differs between assemblies and could not actually be - // shared, so it is duplicated across namespaces to prevent name collision. +// The SecurityHelper class differs between assemblies and could not actually be +// shared, so it is duplicated across namespaces to prevent name collision. #if WINDOWS_BASE - using MS.Internal.WindowsBase; +using MS.Internal.WindowsBase; #elif PRESENTATION_CORE using MS.Internal.PresentationCore; #elif PRESENTATIONFRAMEWORK @@ -36,6 +27,8 @@ namespace MS.Win32 { #error Attempt to use a class (duplicated across multiple namespaces) from an unknown assembly. #endif +namespace MS.Win32 +{ internal partial class NativeMethods { #if !FRAMEWORK_NATIVEMETHODS [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsOther.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsOther.cs index a696c8bcd99..36439b4a808 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsOther.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsOther.cs @@ -2,35 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Runtime.InteropServices; +using System.Diagnostics; +using Microsoft.Win32.SafeHandles; + namespace MS.Win32 { - using Accessibility; - using System; - using System.Runtime.ConstrainedExecution; - using System.Runtime.InteropServices; - using System.Security; - using System.Collections; - using System.Diagnostics; - using System.IO; - using System.Text; - using MS.Win32; - using Microsoft.Win32.SafeHandles; - - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif UIAUTOMATIONTYPES - using MS.Internal.UIAutomationTypes; -#elif DRT - using MS.Internal.Drt; -#else - using MS.Internal.YourAssemblyName; -#endif - internal partial class NativeMethods { // Translates Win32 error codes into HRESULTs. diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsSetLastError.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsSetLastError.cs index b6fbddab969..378430190b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsSetLastError.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/NativeMethodsSetLastError.cs @@ -2,6 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Text; +using System.Runtime.InteropServices; +using MS.Win32; + // Description: P/Invokes for methods that need to call SetLastError(0) // The NativeMethodsSetLastError class differs between assemblies and could not actually be @@ -22,15 +27,6 @@ namespace MS.Internal.Drt #error Class is being used from an unknown assembly. #endif { - using System; - using System.Diagnostics.CodeAnalysis; - using System.IO; - using System.Security; - using System.Runtime.InteropServices; - using System.Text; - using System.Windows; - using MS.Win32; - internal static class NativeMethodsSetLastError { private const string PresentationNativeDll = "PresentationNative_cor3.dll"; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeNativeMethodsCLR.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeNativeMethodsCLR.cs index 8f05ebfcf27..02796299c16 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeNativeMethodsCLR.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeNativeMethodsCLR.cs @@ -2,37 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.ComponentModel; +using System.Runtime.InteropServices; +using MS.Utility; + namespace MS.Win32 { - using MS.Utility; - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System; - using System.Security; - using System.Collections; - using System.IO; - using System.Text; - using System.ComponentModel; - - - // The SecurityHelper class differs between assemblies and could not actually be - // shared, so it is duplicated across namespaces to prevent name collision. -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#elif UIAUTOMATIONTYPES - using MS.Internal.UIAutomationTypes; -#else -#error Attempt to use a class (duplicated across multiple namespaces) from an unknown assembly. -#endif - - using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; - internal static partial class SafeNativeMethods { public static int GetMessagePos() diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeNativeMethodsOther.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeNativeMethodsOther.cs index 3ff17b5b477..bf956da9f38 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeNativeMethodsOther.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeNativeMethodsOther.cs @@ -2,34 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -namespace MS.Win32 { - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System; - using System.Security; - using System.Collections; - using System.IO; - using System.Text; - using System.ComponentModel; - using System.Diagnostics; - - - using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else - using MS.Internal.YourAssemblyName; -#endif +using System.ComponentModel; +using System.Runtime.InteropServices; +namespace MS.Win32 +{ internal partial class SafeNativeMethods - { + { ////////////////////////////// // from Framework diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeSystemMetrics.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeSystemMetrics.cs index 4a9ac8ebd8c..59184b8d9d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeSystemMetrics.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/SafeSystemMetrics.cs @@ -10,14 +10,6 @@ // that were moved here do not rely on caching. If there is a percieved perf. problem // we can work on enabling this. -using System; -using System.Collections; -using System.Runtime.InteropServices; -using System.Windows.Media; -using Microsoft.Win32; -using System.Security; -using MS.Win32; -using MS.Internal; using MS.Internal.Interop; namespace MS.Win32 diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsCLR.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsCLR.cs index 63b33f29acc..de69465b110 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsCLR.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsCLR.cs @@ -2,48 +2,45 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -namespace MS.Win32 -{ - using Accessibility; - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System.Runtime.ConstrainedExecution; - using System; - using System.Collections; - using System.IO; - using System.Text; - using System.Security; - using System.Diagnostics; - using System.ComponentModel; - using MS.Internal; +using Accessibility; +using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; +using System; +using System.Text; +using System.Diagnostics; +using System.ComponentModel; #if !DRT && !UIAUTOMATIONTYPES - using MS.Internal.Interop; - using MS.Utility; +using MS.Internal.Interop; +using MS.Utility; #endif - // DRTs cannot access MS.Internal +// DRTs cannot access MS.Internal #if !DRT && !UIAUTOMATIONTYPES - using HR = MS.Internal.Interop.HRESULT; +using HR = MS.Internal.Interop.HRESULT; #endif - //The SecurityHelper class differs between assemblies and could not actually be - // shared, so it is duplicated across namespaces to prevent name collision. +//The SecurityHelper class differs between assemblies and could not actually be +// shared, so it is duplicated across namespaces to prevent name collision. #if WINDOWS_BASE - using MS.Internal.WindowsBase; +using MS.Internal.WindowsBase; +using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; + #elif PRESENTATION_CORE using MS.Internal.PresentationCore; #elif PRESENTATIONFRAMEWORK using MS.Internal.PresentationFramework; #elif UIAUTOMATIONTYPES using MS.Internal.UIAutomationTypes; +using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; + #elif DRT using MS.Internal.Drt; #else #error Attempt to use a class (duplicated across multiple namespaces) from an unknown assembly. #endif - using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; - +namespace MS.Win32 +{ internal partial class UnsafeNativeMethods { #if BASE_NATIVEMETHODS diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsCompiler.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsCompiler.cs index a33af718772..825249e89c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsCompiler.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsCompiler.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Text; -using System.ComponentModel; -using System.Security; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsEventTrace.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsEventTrace.cs index bfeefaf5752..8499fd7c85b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsEventTrace.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsEventTrace.cs @@ -4,8 +4,6 @@ #if !SILVERLIGHTXAML -using System; -using System.Security; using System.Runtime.InteropServices; #if SYSTEM_XAML using MS.Internal.Xaml; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsOther.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsOther.cs index 9ef6cff2580..103d6736ea3 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsOther.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsOther.cs @@ -2,40 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Threading; using System.ComponentModel; -using System.Diagnostics; +using System.Runtime.InteropServices; +using System.Text; +using Microsoft.Win32.SafeHandles; +using MS.Internal; +using MS.Internal.Interop; + +using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; namespace MS.Win32 { - using Accessibility; - using SRCS = System.Runtime.CompilerServices; - using System.Runtime.ConstrainedExecution; - using System.Runtime.InteropServices; - using System; - using System.Collections; - using System.IO; - using System.Text; - using System.Security; - using Microsoft.Win32.SafeHandles; - using MS.Internal; - using MS.Internal.Interop; - using MS.Utility; - -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else - using MS.Internal.YourAssemblyName; -#endif - - using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; - internal partial class UnsafeNativeMethods { [DllImport(ExternDll.Kernel32, CharSet=CharSet.Unicode, SetLastError=true, EntryPoint="GetTempFileName")] diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs index 389a273ea5b..7b333c760a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs @@ -2,37 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Threading; -using System.ComponentModel; -using System.Diagnostics; - -// The SecurityHelper class differs between assemblies and could not actually be -// shared, so it is duplicated across namespaces to prevent name collision. -#if WINDOWS_BASE - using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE - using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK - using MS.Internal.PresentationFramework; -#elif DRT - using MS.Internal.Drt; -#else -#error Attempt to use a class (duplicated across multiple namespaces) from an unknown assembly. -#endif +using System.Runtime.InteropServices; + namespace MS.Win32 { - using Accessibility; - using System.Runtime.CompilerServices; - using System.Runtime.ConstrainedExecution; - using System.Runtime.InteropServices; - using System; - using System.Security; - using System.Collections; - using System.IO; - using System.Text; - using Microsoft.Win32.SafeHandles; - - internal partial class UnsafeNativeMethods { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/WinInet.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/WinInet.cs index 6839d696e2b..6c907abb390 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/WinInet.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/WinInet.cs @@ -2,13 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; using System.Runtime.InteropServices; namespace MS.Win32 { -internal static class WinInet + internal static class WinInet { /// /// Will return the location of the internet cache folder. diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/RefAssemblyAttrs.cs b/src/Microsoft.DotNet.Wpf/src/Shared/RefAssemblyAttrs.cs index d431f7e94f1..0e2505fbb3e 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/RefAssemblyAttrs.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/RefAssemblyAttrs.cs @@ -3,9 +3,6 @@ // The C++ version of these definitions is in inc\BuildInfo.hxx. -using System; -using System.Text; - #if WINDOWS_BASE namespace MS.Internal.WindowsBase #elif PRESENTATION_CORE diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/System/IO/FileHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/System/IO/FileHelper.cs index 07bccd574b1..847d30114e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/System/IO/FileHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/System/IO/FileHelper.cs @@ -12,10 +12,6 @@ // //--------------------------------------------------------------------------- -using System; -using System.IO; -using System.Security; - namespace System.IO { static internal class FileHelper diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Ink/KnownIds.cs b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Ink/KnownIds.cs index 2681238acee..884b9b88ab0 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Ink/KnownIds.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Ink/KnownIds.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; -using System.IO; using MS.Internal.Ink.InkSerializedFormat; namespace System.Windows.Ink diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Interop/OSVersionHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Interop/OSVersionHelper.cs index 58d54558dcf..5db8b97629b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Interop/OSVersionHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Interop/OSVersionHelper.cs @@ -2,23 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -#if WINDOWS_BASE -using MS.Internal.WindowsBase; -#elif PRESENTATION_CORE -using MS.Internal.PresentationCore; -#elif PRESENTATIONFRAMEWORK -using MS.Internal.PresentationFramework; -#elif REACHFRAMEWORK -using MS.Internal.ReachFramework; -#elif UIAUTOMATIONTYPES -using MS.Internal.UIAutomationTypes; -#else -using MS.Internal; -#endif - using System; using System.Runtime.InteropServices; -using System.Security; #if WINDOWS_BASE namespace MS.Internal.WindowsBase.Interop diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Interop/OperatingSystemVersion.cs b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Interop/OperatingSystemVersion.cs index 6fa9aa2c507..91e6328c474 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Interop/OperatingSystemVersion.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Interop/OperatingSystemVersion.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - #if WINDOWS_BASE namespace MS.Internal.WindowsBase.Interop #elif PRESENTATION_CORE diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/ReflectionHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/ReflectionHelper.cs index 23646106b09..134b9cfb7dc 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/ReflectionHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/ReflectionHelper.cs @@ -4,11 +4,7 @@ #nullable disable -// -// -// // Description: Specifies that the whitespace surrounding an element should be trimmed. -// using System; using System.IO; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/XmlCompatibilityReader.cs b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/XmlCompatibilityReader.cs index 82253908d17..3f52a4e6fc5 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/XmlCompatibilityReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Markup/XmlCompatibilityReader.cs @@ -6,11 +6,9 @@ using System; using System.Xml; -using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Diagnostics; -using System.Threading; #if SYSTEM_XAML using System.Xaml; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Media/TypeConverterHelper.cs b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Media/TypeConverterHelper.cs index 0d835908239..cec80b0172b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Media/TypeConverterHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/System/Windows/Media/TypeConverterHelper.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.ComponentModel; using System.Windows.Markup; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/EventSourceActivity.cs b/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/EventSourceActivity.cs index 109a6be2fa3..244e2f0ee9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/EventSourceActivity.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/EventSourceActivity.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Diagnostics.Tracing; using Contract = System.Diagnostics.Contracts.Contract; diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggers/ControlsTraceLogger.cs b/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggers/ControlsTraceLogger.cs index 430b67ede68..55c0ad0a87f 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggers/ControlsTraceLogger.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggers/ControlsTraceLogger.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Diagnostics.Tracing; -using MS.Internal; -using MS.Internal.Telemetry; -using MS.Internal.Telemetry.PresentationFramework; namespace MS.Internal.Telemetry.PresentationFramework { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggers/XpsOMPrintingTraceLogger.cs b/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggers/XpsOMPrintingTraceLogger.cs index e37dffcc8a5..6aba28a75fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggers/XpsOMPrintingTraceLogger.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggers/XpsOMPrintingTraceLogger.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Diagnostics.Tracing; -using MS.Internal; -using MS.Internal.Telemetry; -using MS.Internal.Telemetry.PresentationCore; namespace MS.Internal.Telemetry.PresentationCore { diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggingProvider.cs b/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggingProvider.cs index 21aecbb81e8..cfcc4ef6967 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggingProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/Telemetry/Managed/TraceLoggingProvider.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Diagnostics.Tracing; -using MS.Internal.Telemetry; // Use the naming convention MS.Internal.Telemetry. while adding assemblies to the provider #if WINDOWS_BASE diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/AssemblyAttrs.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/AssemblyAttrs.cs index 1a2c92884a3..d57d8580b9b 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/AssemblyAttrs.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/AssemblyAttrs.cs @@ -5,11 +5,10 @@ // This file specifies various assembly level attributes. -using System.Reflection; using System.Windows; using System.Windows.Markup; -[assembly:ThemeInfo( +[assembly: ThemeInfo( // Specifies the location of theme specific resources ResourceDictionaryLocation.SourceAssembly, // Specifies the location of non-theme specific resources: diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/MS/Internal/Generated/DoubleUtil.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/MS/Internal/Generated/DoubleUtil.cs index 540f2ec644c..e25b799683f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/MS/Internal/Generated/DoubleUtil.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/MS/Internal/Generated/DoubleUtil.cs @@ -1,10 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System; -using System.Runtime.InteropServices; using System.Windows; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonApplicationMenuAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonApplicationMenuAutomationPeer.cs index 5da5b3390d6..5fb8ad83c94 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonApplicationMenuAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonApplicationMenuAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Collections.Generic; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,13 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonAutomationPeer.cs index aac6e71284e..02dc44074b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonAutomationPeer.cs @@ -1,7 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Automation.Provider; +using System.Collections.Generic; +using System.Windows.Controls; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,20 +18,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Collections.Generic; - using System.Windows.Automation; - using System.Windows.Controls; - using System.Windows; - using System.Windows.Controls.Primitives; - using System.Diagnostics; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonButtonAutomationPeer.cs index e50f0a04bb6..7e532ed1842 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonButtonAutomationPeer.cs @@ -1,7 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,12 +14,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonCheckBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonCheckBoxAutomationPeer.cs index 99a9a13c6e1..e2f987a9882 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonCheckBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonCheckBoxAutomationPeer.cs @@ -1,7 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,12 +14,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonComboBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonComboBoxAutomationPeer.cs index 86edf5ee3db..c8f37932277 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonComboBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonComboBoxAutomationPeer.cs @@ -1,7 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Provider; +using System.Collections.Generic; +using System.Windows.Controls; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,21 +17,10 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using Microsoft.Windows.Controls; - using System; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Collections.Generic; - using System.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif - + #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextMenuAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextMenuAutomationPeer.cs index 5eadd9d2f4f..c6be523db43 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextMenuAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextMenuAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,18 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupAutomationPeer.cs index d3202e25930..41e9da76f41 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,15 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupDataAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupDataAutomationPeer.cs index 20f81d56f9b..27242107ffa 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupDataAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupDataAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Automation.Provider; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,16 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows; - using System.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupItemsControlAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupItemsControlAutomationPeer.cs index 70c4f86d8e6..cf89888cd5d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupItemsControlAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonContextualTabGroupItemsControlAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,15 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlAutomationPeer.cs index 1a81887509d..f025889b5bf 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlAutomationPeer.cs @@ -1,7 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,14 +11,7 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; #if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlDataAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlDataAutomationPeer.cs index 8d3cf86c810..d573b9c4775 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlDataAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlDataAutomationPeer.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,20 +9,12 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - using System; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows; #if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif - using System.Windows.Controls; - #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlGroupAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlGroupAutomationPeer.cs index 314e75518e8..064d9547053 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlGroupAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonControlGroupAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,14 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryAutomationPeer.cs index 0ac7dc117d5..6585da0c851 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryAutomationPeer.cs @@ -1,7 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Windows.Automation.Provider; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,18 +18,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryCategoryAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryCategoryAutomationPeer.cs index 3570a238323..cc00098a443 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryCategoryAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryCategoryAutomationPeer.cs @@ -1,7 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Controls; +using System.Collections.Generic; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,17 +17,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Controls; - using System.Collections.Generic; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryCategoryDataAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryCategoryDataAutomationPeer.cs index 4472d4c9e7a..b043872b913 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryCategoryDataAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryCategoryDataAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Automation.Provider; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,13 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryItemAutomationPeer.cs index 658ef6f6d70..efba67362bf 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryItemAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,16 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Media; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryItemDataAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryItemDataAutomationPeer.cs index e7681dd6c2c..a917bc7c365 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryItemDataAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGalleryItemDataAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Automation.Provider; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,14 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows.Automation; - using System.Windows.Automation.Provider; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupAutomationPeer.cs index 12ec9e31ae8..87c7474b12f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Collections.Generic; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,18 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows.Automation; - using System.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupDataAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupDataAutomationPeer.cs index da66a5a3900..c33ef68af88 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupDataAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupDataAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Automation.Provider; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,15 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Collections.Generic; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupHeaderAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupHeaderAutomationPeer.cs index 69ce468ee73..c47af43b39a 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupHeaderAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonGroupHeaderAutomationPeer.cs @@ -1,7 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,15 +12,7 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; #if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuButtonAutomationPeer.cs index fb005568d32..abc66854a40 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuButtonAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Collections.Generic; +using System.Windows.Automation.Provider; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,16 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows.Automation; - using Microsoft.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuItemAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuItemAutomationPeer.cs index 1531d0a74ff..27301155adb 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuItemAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuItemAutomationPeer.cs @@ -1,7 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,13 +14,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Windows.Automation; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuItemDataAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuItemDataAutomationPeer.cs index bde6e26ca5e..dce304b00f3 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuItemDataAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonMenuItemDataAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Provider; +using System.Windows.Controls; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,17 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows.Controls; - using Microsoft.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonQuickAccessToolBarAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonQuickAccessToolBarAutomationPeer.cs index a72ace86fec..e4a0039474b 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonQuickAccessToolBarAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonQuickAccessToolBarAutomationPeer.cs @@ -1,7 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Collections.Generic; +using System.Windows.Automation.Provider; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,18 +17,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using Microsoft.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonRadioButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonRadioButtonAutomationPeer.cs index 617b49ed856..85fc1afc415 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonRadioButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonRadioButtonAutomationPeer.cs @@ -1,7 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,12 +14,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonSeparatorAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonSeparatorAutomationPeer.cs index c8ce9cf186b..792a085ce0d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonSeparatorAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonSeparatorAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,13 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonSplitButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonSplitButtonAutomationPeer.cs index 29d354af211..deac0e0ee63 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonSplitButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonSplitButtonAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Provider; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,19 +15,10 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using Microsoft.Windows.Controls; - using System; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif - + #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabAutomationPeer.cs index d8a630b23b8..1f26b1b8695 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using delcarations + +using System.Collections.Generic; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,16 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using delcarations - - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Shapes; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabDataAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabDataAutomationPeer.cs index 272808358e1..3c4d7b0b283 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabDataAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabDataAutomationPeer.cs @@ -1,7 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Automation.Provider; +using System.Windows.Controls.Primitives; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,20 +17,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using Microsoft.Windows.Controls; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderAutomationPeer.cs index 78e9f3c1288..6c6d5e921d5 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,15 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderDataAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderDataAutomationPeer.cs index 9fb98ac33e9..5b7e2a05061 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderDataAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderDataAutomationPeer.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,19 +9,9 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - using System; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows.Controls; - using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderItemsControlAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderItemsControlAutomationPeer.cs index c0354207c93..448159102be 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderItemsControlAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTabHeaderItemsControlAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,16 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTextBoxAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTextBoxAutomationPeer.cs index 2c39fa20be7..80e092c18db 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTextBoxAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTextBoxAutomationPeer.cs @@ -1,7 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Provider; +using System.Windows.Input; +using System.Windows.Threading; +using Microsoft.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,17 +18,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Automation.Provider; - using System.Windows.Input; - using System.Windows.Threading; - using Microsoft.Windows.Input; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTitleAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTitleAutomationPeer.cs index df9ded9560e..90d102adb8d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTitleAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTitleAutomationPeer.cs @@ -1,16 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows.Automation.Peers; -using System.Windows.Automation.Provider; + #if RIBBON_IN_FRAMEWORK -using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif -using System.Windows; using System.Windows.Controls; #if RIBBON_IN_FRAMEWORK diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonToggleButtonAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonToggleButtonAutomationPeer.cs index eba95cee231..defabbccf57 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonToggleButtonAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonToggleButtonAutomationPeer.cs @@ -1,7 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,12 +14,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - #region Using declarations - - using System; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonToolTipAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonToolTipAutomationPeer.cs index e1d34aef926..aa2127aeb46 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonToolTipAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonToolTipAutomationPeer.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,15 +15,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Text; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTwoLineTextAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTwoLineTextAutomationPeer.cs index 73153c2ce00..22d053d8604 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTwoLineTextAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Automation/Peers/RibbonTwoLineTextAutomationPeer.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Controls; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Automation.Peers @@ -9,15 +16,6 @@ namespace System.Windows.Automation.Peers namespace Microsoft.Windows.Automation.Peers #endif { - - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/ActivatingKeyTipEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/ActivatingKeyTipEventArgs.cs index 1a4862b90b2..59524480ebf 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/ActivatingKeyTipEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/ActivatingKeyTipEventArgs.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls @@ -9,14 +15,6 @@ namespace System.Windows.Controls namespace Microsoft.Windows.Controls #endif { - - #region Using declarations - - using System; - using System.Windows; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Generated/PropertyHelper.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Generated/PropertyHelper.cs index 73ff95d00dc..315f8618c32 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Generated/PropertyHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Generated/PropertyHelper.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -namespace Microsoft.Windows.Controls -{ + #if RIBBON_IN_FRAMEWORK - using MS.Internal; +using MS.Internal; #endif - using System.Collections.Generic; - using System.Windows; +using System.Collections.Generic; +using System.Windows; +namespace Microsoft.Windows.Controls +{ internal static class PropertyHelper { public static bool IsDefaultValue(DependencyObject d, DependencyProperty dp) diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Generated/TreeHelper.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Generated/TreeHelper.cs index 129725c85bc..fea0d9ad046 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Generated/TreeHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Generated/TreeHelper.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +using System; +using System.Windows; +using System.Windows.Media; namespace Microsoft.Windows.Controls { - using System; - using System.Windows; - using System.Windows.Media; - internal static class TreeHelper { /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/GenericValueConverters.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/GenericValueConverters.cs index 8d4df7922b7..04c6535e22f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/GenericValueConverters.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/GenericValueConverters.cs @@ -1,8 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; + using System.Globalization; using System.Windows.Data; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipAccessedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipAccessedEventArgs.cs index 4b3236c586c..a2edfdc15d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipAccessedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipAccessedEventArgs.cs @@ -1,10 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls #else diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipAdorner.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipAdorner.cs index b8bfe011ac3..49a41769b12 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipAdorner.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipAdorner.cs @@ -1,12 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; + using System.Diagnostics; -using System.Windows; -using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; #if RIBBON_IN_FRAMEWORK diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipControl.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipControl.cs index c065773b64d..7b3ced767c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipControl.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls #else diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipService.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipService.cs index 9b2b22d6726..45391bf4528 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipService.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/KeyTipService.cs @@ -1,31 +1,29 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + +#region Using declarations + +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Threading; +#if RIBBON_IN_FRAMEWORK +using MS.Internal; +using Microsoft.Windows.Controls; +using System.Windows.Controls.Ribbon; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls #else namespace Microsoft.Windows.Controls #endif { - #region Using declarations - - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Globalization; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Documents; - using System.Windows.Input; - using System.Windows.Markup; - using System.Windows.Media; - using System.Windows.Threading; -#if RIBBON_IN_FRAMEWORK - using MS.Internal; - using Microsoft.Windows.Controls; - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/NativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/NativeMethods.cs index 88e5f57455f..b1bde6c5d48 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/NativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/NativeMethods.cs @@ -1,7 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +using System.ComponentModel; +using System.Runtime.InteropServices; +using MS.Internal; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,14 +13,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - using System; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Runtime.InteropServices; - using System.Security; - using System.Windows; - using MS.Internal; - internal static class NativeMethods { public const int MONITOR_DEFAULTTONEAREST = 2; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/IContainsStarLayoutManager.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/IContainsStarLayoutManager.cs index 63a79ca0013..3962e393c48 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/IContainsStarLayoutManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/IContainsStarLayoutManager.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives #else diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/IProvideStarLayoutInfoBase.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/IProvideStarLayoutInfoBase.cs index 0d0638be258..b7f9b51e4b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/IProvideStarLayoutInfoBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/IProvideStarLayoutInfoBase.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Windows; - #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives #else diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonContextualTabGroupsPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonContextualTabGroupsPanel.cs index a9b3a5f11db..cd8d91ae59b 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonContextualTabGroupsPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonContextualTabGroupsPanel.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +using MS.Internal; +using System.Windows.Controls.Primitives; +using System.Windows.Media; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives @@ -9,17 +15,6 @@ namespace System.Windows.Controls.Ribbon.Primitives namespace Microsoft.Windows.Controls.Ribbon.Primitives #endif { - using System.Windows; - using System.Windows.Controls; - using MS.Internal; - using System; - using System.Windows.Threading; - using System.Collections; - using System.Windows.Controls.Primitives; - using System.Windows.Media; - using System.Windows.Data; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #endif public class RibbonContextualTabGroupsPanel : Panel diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGalleryCategoriesPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGalleryCategoriesPanel.cs index 56788112bd1..0271dfc1177 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGalleryCategoriesPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGalleryCategoriesPanel.cs @@ -2,31 +2,26 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -#if RIBBON_IN_FRAMEWORK -namespace System.Windows.Controls.Ribbon.Primitives -#else -namespace Microsoft.Windows.Controls.Ribbon.Primitives -#endif -{ - #region Using declarations +#region Using declarations - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Diagnostics; - using System.Windows.Media; +using System.ComponentModel; +using System.Windows.Controls.Primitives; +using System.Diagnostics; +using System.Windows.Media; #if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; - using Microsoft.Windows.Controls; +using Microsoft.Windows.Controls; #else using Microsoft.Windows.Controls.Ribbon; #endif - using MS.Internal; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +namespace System.Windows.Controls.Ribbon.Primitives +#else +namespace Microsoft.Windows.Controls.Ribbon.Primitives +#endif +{ #endregion public class RibbonGalleryCategoriesPanel : Panel, IProvideStarLayoutInfoBase, IContainsStarLayoutManager, IScrollInfo diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGalleryItemsPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGalleryItemsPanel.cs index 3e13c707aec..8e5da1fa975 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGalleryItemsPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGalleryItemsPanel.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using Declarations + +using System.Diagnostics; +#if RIBBON_IN_FRAMEWORK #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives @@ -9,20 +15,9 @@ namespace System.Windows.Controls.Ribbon.Primitives namespace Microsoft.Windows.Controls.Ribbon.Primitives #endif { - - #region Using Declarations - - using System; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Controls; - using System.Diagnostics; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon; #else using Microsoft.Windows.Controls.Ribbon; #endif - using MS.Internal; #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGroupItemsPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGroupItemsPanel.cs index ac526b2069a..27836587e76 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGroupItemsPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGroupItemsPanel.cs @@ -2,19 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives #else namespace Microsoft.Windows.Controls.Ribbon.Primitives #endif { - using System; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Controls; - using MS.Internal; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #endif /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGroupsPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGroupsPanel.cs index 9c7ec2568d0..8047f71e964 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGroupsPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonGroupsPanel.cs @@ -2,24 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#region Using declarations + +using System.Collections.Generic; +using System.Diagnostics; +using System.Windows.Threading; +using MS.Internal; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives #else namespace Microsoft.Windows.Controls.Ribbon.Primitives #endif { - #region Using declarations - - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Threading; - using MS.Internal; - using Microsoft.Windows.Controls; - #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonMenuItemsPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonMenuItemsPanel.cs index bdc6f35f555..c45e090f327 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonMenuItemsPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonMenuItemsPanel.cs @@ -2,21 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Controls.Primitives; +using System.Collections.Generic; +using MS.Internal; +using Microsoft.Windows.Controls; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives #else namespace Microsoft.Windows.Controls.Ribbon.Primitives #endif { - using System.Diagnostics; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Collections.Generic; - using System; - using MS.Internal; - using Microsoft.Windows.Controls; - public class RibbonMenuItemsPanel : VirtualizingStackPanel, ISupportStarLayout { #region Constructor diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonQuickAccessToolBarOverflowPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonQuickAccessToolBarOverflowPanel.cs index 59c289549c3..fe1e14a2315 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonQuickAccessToolBarOverflowPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonQuickAccessToolBarOverflowPanel.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Controls; -using System.Windows; + using System.Diagnostics; -using System; -using System.Collections.Generic; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonQuickAccessToolBarPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonQuickAccessToolBarPanel.cs index 163dec869cf..3cf24882a7e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonQuickAccessToolBarPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonQuickAccessToolBarPanel.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; -using System.ComponentModel; using System.Diagnostics; -using System.Windows; -using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Data; using System.Windows.Media; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonScrollButtonVisibilityConverter.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonScrollButtonVisibilityConverter.cs index 63b37794aba..a16b07bcf36 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonScrollButtonVisibilityConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonScrollButtonVisibilityConverter.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Globalization; -using System.Windows; -using System.Windows.Automation.Provider; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; using System.Windows.Data; -using System.Windows.Media; using MS.Internal; #if RIBBON_IN_FRAMEWORK diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTabHeadersPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTabHeadersPanel.cs index 6b6f8ebfa79..dabb93eb95b 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTabHeadersPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTabHeadersPanel.cs @@ -2,21 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using System.Diagnostics; +using System.Windows.Controls.Primitives; +using System.Windows.Media; +using MS.Internal; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives #else namespace Microsoft.Windows.Controls.Ribbon.Primitives #endif { - using System; - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Media; - using MS.Internal; - /// /// The items panel for RibbonTabHeaderItemsControl /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTabsPanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTabsPanel.cs index fd69d2b670c..01a92a268b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTabsPanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTabsPanel.cs @@ -1,7 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Windows.Controls.Primitives; +using System.Windows.Media; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives @@ -9,19 +18,6 @@ namespace System.Windows.Controls.Ribbon.Primitives namespace Microsoft.Windows.Controls.Ribbon.Primitives #endif { - - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Media; - using MS.Internal; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #endif #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTitlePanel.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTitlePanel.cs index 336de7e6e66..f9f2b3e503a 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTitlePanel.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonTitlePanel.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using directives + +using MS.Internal; +using System.Windows.Controls.Primitives; +using System.Windows.Media; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon.Primitives @@ -9,16 +15,6 @@ namespace System.Windows.Controls.Ribbon.Primitives namespace Microsoft.Windows.Controls.Ribbon.Primitives #endif { - #region Using directives - - using MS.Internal; - using System; - using System.Diagnostics; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Media; - #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonWindowSmallIconConverter.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonWindowSmallIconConverter.cs index 3f17ef42b02..91c7efa09fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonWindowSmallIconConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/RibbonWindowSmallIconConverter.cs @@ -1,13 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; + using System.Collections.ObjectModel; using System.Diagnostics; using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Data; using System.Windows.Media; using System.Windows.Media.Imaging; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/StarLayoutInfo.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/StarLayoutInfo.cs index 696c1b39a1a..299cdbd28ba 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/StarLayoutInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Primitives/StarLayoutInfo.cs @@ -1,11 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System.Collections; using System.Collections.Generic; -using System.Windows; using MS.Internal; #if RIBBON_IN_FRAMEWORK diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Ribbon.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Ribbon.cs index 12c383c2208..bedc891783d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Ribbon.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/Ribbon.cs @@ -1,41 +1,38 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + +#region Using declarations + +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Diagnostics; +using System.Runtime.InteropServices; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Interop; +using System.Windows.Media; +using System.Windows.Threading; #if RIBBON_IN_FRAMEWORK -namespace System.Windows.Controls.Ribbon -#else -namespace Microsoft.Windows.Controls.Ribbon -#endif -{ - #region Using declarations - - using System; - using System.Collections; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.Collections.Specialized; - using System.ComponentModel; - using System.Diagnostics; - using System.Runtime.InteropServices; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Interop; - using System.Windows.Media; - using System.Windows.Threading; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; #endif - using MS.Internal; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +namespace System.Windows.Controls.Ribbon +#else +namespace Microsoft.Windows.Controls.Ribbon +#endif +{ #endregion Using declarations /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationMenu.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationMenu.cs index 30f8af3a8e9..5bd58dca5f8 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationMenu.cs @@ -1,7 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,16 +17,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationMenuItem.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationMenuItem.cs index 157b4bc2403..2d2917144af 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationMenuItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationMenuItem.cs @@ -1,7 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Input; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,14 +13,7 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Input; #if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #endif #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationSplitMenuItem.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationSplitMenuItem.cs index 6cff23ceef0..0ab80b5e166 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationSplitMenuItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonApplicationSplitMenuItem.cs @@ -1,7 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Input; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,14 +13,7 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Input; #if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #endif #endregion diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonButton.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonButton.cs index aeb56b1d7ac..064d2b7c9e7 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonButton.cs @@ -1,7 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Peers; +using System.Windows.Media; +using System.Collections.Specialized; +using System.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,18 +18,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Media; - using System.Collections.Specialized; - using System.Windows.Input; - using Microsoft.Windows.Input; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonCheckBox.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonCheckBox.cs index c58f83a9ed2..347231316c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonCheckBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonCheckBox.cs @@ -1,7 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Peers; +using System.Windows.Media; +using System.Collections.Specialized; +using System.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,17 +18,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Media; - using System.Collections.Specialized; - using System.Windows.Input; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonComboBox.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonComboBox.cs index 10b4a27810e..987a8d04243 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonComboBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonComboBox.cs @@ -1,7 +1,22 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Collections.Specialized; +using System.Diagnostics; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Shapes; +using System.Windows.Threading; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; +using MS.Internal; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,23 +24,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Collections.Specialized; - using System.Diagnostics; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Documents; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Shapes; - using System.Windows.Threading; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; - using MS.Internal; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContentPresenter.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContentPresenter.cs index 29fc7f9cfb7..7a8e356a9e5 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContentPresenter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContentPresenter.cs @@ -1,7 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Media; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,15 +13,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Text; - using System.Windows.Controls; - using System.Windows; - using System.Windows.Media; - #endregion Using declarations /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextMenu.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextMenu.cs index 5f49c03862f..15c36a62196 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextMenu.cs @@ -1,7 +1,20 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Globalization; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Input; +using System.Windows.Threading; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,21 +22,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - - #region Using declarations - - using System; - using System.Globalization; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Data; - using System.Windows.Input; - using System.Windows.Threading; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextualTabGroup.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextualTabGroup.cs index d384500bd1c..64a47c80e51 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextualTabGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextualTabGroup.cs @@ -1,7 +1,18 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Collections; +using System.Collections.Generic; +using System.Windows.Automation; +using System.Windows.Automation.Peers; +using System.Windows.Input; +using System.Windows.Markup; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,19 +20,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Collections; - using System.Collections.Generic; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Input; - using System.Windows.Markup; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextualTabGroupItemsControl.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextualTabGroupItemsControl.cs index 38d6b74e69f..06c758bc785 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextualTabGroupItemsControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonContextualTabGroupItemsControl.cs @@ -1,7 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +using System.Windows.Automation.Peers; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,18 +14,11 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; #endif - + /// /// The itemscontrol which host contextual tab group headers for Ribbon. /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControl.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControl.cs index f6bed5fdfc6..38dde887cda 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControl.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation; +using System.Windows.Automation.Peers; +using System.Windows.Media; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,20 +15,10 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Text; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows; - using System.Windows.Media; #if !RIBBON_IN_FRAMEWORK using Microsoft.Windows.Automation.Peers; #endif - + #endregion Using declarations /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlGroup.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlGroup.cs index 1522bcb9755..a88f5724f08 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlGroup.cs @@ -1,7 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Peers; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,17 +13,10 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; #if !RIBBON_IN_FRAMEWORK using Microsoft.Windows.Automation.Peers; #endif - + #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlLength.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlLength.cs index df4298a50eb..167d935e0a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlLength.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlLength.cs @@ -1,7 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +using System.ComponentModel; +using System.Globalization; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,12 +12,7 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - using System; - using System.ComponentModel; - using System.Globalization; - using MS.Internal; #if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #endif /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlLengthConverter.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlLengthConverter.cs index 063b98db80a..056e4959d2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlLengthConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlLengthConverter.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +using System.ComponentModel; +using System.Globalization; +using MS.Internal; +using System.Diagnostics; +using System.ComponentModel.Design.Serialization; +using System.Reflection; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,14 +16,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - using System; - using System.ComponentModel; - using System.Globalization; - using MS.Internal; - using System.Diagnostics; - using System.ComponentModel.Design.Serialization; - using System.Reflection; - /// /// A class used for converting between RibbonControlLengths and strings/numbers. /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlService.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlService.cs index 45761248bdc..e93badbab93 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlService.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlService.cs @@ -1,7 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Media; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,20 +16,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.ComponentModel; - using System.Diagnostics; - using System.Reflection; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Media; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Controls.Ribbon.Primitives; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlSizeDefinition.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlSizeDefinition.cs index f7d13320f0e..781e73d9df6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlSizeDefinition.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlSizeDefinition.cs @@ -1,7 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using MS.Internal; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,12 +13,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System.Diagnostics; - using System.Windows; - using MS.Internal; - #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlSizeDefinitionCollection.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlSizeDefinitionCollection.cs index 15d604a860a..6249f4002b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlSizeDefinitionCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonControlSizeDefinitionCollection.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Collections.Specialized; -using System.Windows; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonDismissPopupEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonDismissPopupEventArgs.cs index 55bf04b74b0..3f4072d04b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonDismissPopupEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonDismissPopupEventArgs.cs @@ -1,10 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonDropDownHelper.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonDropDownHelper.cs index 5192204243e..f04585c5a17 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonDropDownHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonDropDownHelper.cs @@ -1,21 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Collections; -using System.Collections.Specialized; -using System.Windows.Controls; -using System.Windows; + #if RIBBON_IN_FRAMEWORK using System.Windows.Controls.Ribbon.Primitives; #else using Microsoft.Windows.Controls.Ribbon.Primitives; #endif using MS.Internal; -using System; using System.Runtime.InteropServices; -using System.Windows.Media; using System.Windows.Controls.Primitives; #if RIBBON_IN_FRAMEWORK diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonFilterMenuButton.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonFilterMenuButton.cs index 0fac3e50486..2ff1aa59779 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonFilterMenuButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonFilterMenuButton.cs @@ -1,10 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; + using System.Windows.Data; #if !RIBBON_IN_FRAMEWORK using System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGallery.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGallery.cs index 0bdb3e3082b..5bbcc7808c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGallery.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGallery.cs @@ -1,7 +1,27 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + + +#region Using declarations + +using System.Collections; +using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Diagnostics; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Threading; +using System.Xml; +using Microsoft.Windows.Input; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,28 +29,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - - #region Using declarations - - using System; - using System.Collections; - using System.Collections.ObjectModel; - using System.Collections.Specialized; - using System.ComponentModel; - using System.Diagnostics; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Data; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Threading; - using System.Xml; - using Microsoft.Windows.Input; - using MS.Internal; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGalleryCategory.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGalleryCategory.cs index 0eb19efc021..9c1c3cb6e85 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGalleryCategory.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGalleryCategory.cs @@ -1,7 +1,21 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Collections; +using System.Collections.Specialized; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.ComponentModel; +using System.Diagnostics; +using System.Windows.Automation; +using System.Windows.Automation.Peers; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,25 +23,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Collections; - using System.Collections.Specialized; - using System.Collections.ObjectModel; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Data; - using System.Windows.Input; - using System.Windows.Media; - using System.ComponentModel; - using System.Diagnostics; - using System.Windows.Automation; - using System.Windows.Automation.Peers; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGalleryItem.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGalleryItem.cs index 6bf4e07a36e..bad10a59d5d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGalleryItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGalleryItem.cs @@ -1,7 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Collections.Specialized; +using System.Windows.Automation; +using System.Windows.Automation.Peers; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Threading; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,17 +18,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Collections.Specialized; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Threading; #if !RIBBON_IN_FRAMEWORK using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroup.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroup.cs index 6f1c4185b20..8600c44dd1b 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroup.cs @@ -1,38 +1,35 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -#if RIBBON_IN_FRAMEWORK -namespace System.Windows.Controls.Ribbon -#else -namespace Microsoft.Windows.Controls.Ribbon -#endif -{ - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Collections.Specialized; - using System.Diagnostics; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Documents; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Media.Animation; - using System.Windows.Threading; + +#region Using declarations + +using System.Collections.Generic; +using System.Collections.Specialized; +using System.Diagnostics; +using System.Windows.Automation; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Threading; #if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; #endif - using MS.Internal; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +namespace System.Windows.Controls.Ribbon +#else +namespace Microsoft.Windows.Controls.Ribbon +#endif +{ #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinition.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinition.cs index cd3acb2f93f..ca84f405dda 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinition.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinition.cs @@ -1,7 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Markup; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,12 +13,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System.Collections.Specialized; - using System.Windows; - using System.Windows.Markup; - #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinitionBase.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinitionBase.cs index 4fc0d8b47a9..4b5866e56c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinitionBase.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinitionBase.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinitionBaseCollection.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinitionBaseCollection.cs index 169eaf041fe..8cb7deda3fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinitionBaseCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupSizeDefinitionBaseCollection.cs @@ -1,7 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,12 +11,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System.Collections.Specialized; - using System.Diagnostics; - using System.Windows; - #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupTemplateSizeDefinition.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupTemplateSizeDefinition.cs index 3334d78e4a2..17b6b9dd8ad 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupTemplateSizeDefinition.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonGroupTemplateSizeDefinition.cs @@ -1,9 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows; + using System.Windows.Markup; #if RIBBON_IN_FRAMEWORK diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonHelper.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonHelper.cs index 67d10d4a339..58016862e48 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonHelper.cs @@ -3,41 +3,36 @@ // See the LICENSE file in the project root for more information. +#region Using declarations + +using System.Collections; +using System.ComponentModel; +using System.Diagnostics; +using System.Globalization; +using System.Windows.Automation; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Input; +using System.Windows.Interop; +using System.Windows.Markup; +using System.Windows.Markup.Primitives; +using System.Windows.Media; +using System.Windows.Threading; #if RIBBON_IN_FRAMEWORK -namespace System.Windows.Controls.Ribbon +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #else -namespace Microsoft.Windows.Controls.Ribbon + using Microsoft.Windows.Controls.Ribbon.Primitives; #endif -{ - #region Using declarations - - using System; - using System.Collections; - using System.ComponentModel; - using System.Diagnostics; - using System.Globalization; - using System.Security; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Data; - using System.Windows.Input; - using System.Windows.Interop; - using System.Windows.Markup; - using System.Windows.Markup.Primitives; - using System.Windows.Media; - using System.Windows.Threading; +using MS.Internal; + #if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; +namespace System.Windows.Controls.Ribbon #else - using Microsoft.Windows.Controls.Ribbon.Primitives; +namespace Microsoft.Windows.Controls.Ribbon #endif - using MS.Internal; - - +{ #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonKeyTipAndContentSyncHelper.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonKeyTipAndContentSyncHelper.cs index ec140fe8662..2a3c01d2a36 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonKeyTipAndContentSyncHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonKeyTipAndContentSyncHelper.cs @@ -1,11 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System.Diagnostics; using System.Globalization; -using System.Windows; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonMenuButton.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonMenuButton.cs index 789ae79a383..62556477efe 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonMenuButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonMenuButton.cs @@ -3,34 +3,31 @@ // See the LICENSE file in the project root for more information. +#region Using declarations + +using System.Collections.Specialized; +using System.Diagnostics; +using System.Reflection; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Threading; #if RIBBON_IN_FRAMEWORK -namespace System.Windows.Controls.Ribbon -#else -namespace Microsoft.Windows.Controls.Ribbon -#endif -{ - #region Using declarations - - using System; - using System.Collections.Specialized; - using System.Diagnostics; - using System.Reflection; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Threading; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; #endif - using MS.Internal; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +namespace System.Windows.Controls.Ribbon +#else +namespace Microsoft.Windows.Controls.Ribbon +#endif +{ #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonMenuItem.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonMenuItem.cs index 2323d4468ca..ab5cc1d646f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonMenuItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonMenuItem.cs @@ -1,35 +1,32 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + +#region Using declarations + +using System.Collections.Specialized; +using System.Diagnostics; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Threading; #if RIBBON_IN_FRAMEWORK -namespace System.Windows.Controls.Ribbon -#else -namespace Microsoft.Windows.Controls.Ribbon -#endif -{ - #region Using declarations - - using System; - using System.Collections.Specialized; - using System.Diagnostics; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Threading; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; #endif - using MS.Internal; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +namespace System.Windows.Controls.Ribbon +#else +namespace Microsoft.Windows.Controls.Ribbon +#endif +{ #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonQuickAccessToolBar.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonQuickAccessToolBar.cs index 2ce0cdd5e25..e1ba308c390 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonQuickAccessToolBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonQuickAccessToolBar.cs @@ -1,7 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Collections.Generic; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,23 +21,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Collections.Generic; - using System.Collections.Specialized; - using System.ComponentModel; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Data; - using System.Windows.Input; - using System.Windows.Markup; - using System.Windows.Media; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonQuickAccessToolBarCloneEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonQuickAccessToolBarCloneEventArgs.cs index cdf9fea718a..8b035449863 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonQuickAccessToolBarCloneEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonQuickAccessToolBarCloneEventArgs.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonRadioButton.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonRadioButton.cs index 79720b67923..66c60fa668d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonRadioButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonRadioButton.cs @@ -1,7 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Peers; +using System.Windows.Media; +using System.Collections.Specialized; +using System.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,17 +18,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Media; - using System.Collections.Specialized; - using System.Windows.Input; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSeparator.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSeparator.cs index 8c35322ff40..73adf504a0e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSeparator.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSeparator.cs @@ -1,22 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + +#region Using declarations + +using System.Windows.Automation.Peers; +using System.Windows.Data; +using System.Windows.Media; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.ComponentModel; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Data; - using System.Windows.Media; #if !RIBBON_IN_FRAMEWORK using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitButton.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitButton.cs index ee2a22020e4..bdbabf0a27b 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitButton.cs @@ -1,24 +1,22 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + +#region Using declarations + +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Media; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Media; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitButtonLabelPosition.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitButtonLabelPosition.cs index 369cd9ce43c..6b07edbefa5 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitButtonLabelPosition.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitButtonLabelPosition.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Windows.Data; -using System; -using System.Globalization; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitMenuItem.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitMenuItem.cs index 3af9bce4518..cade4dd464c 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitMenuItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonSplitMenuItem.cs @@ -2,24 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#region Using declarations + +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Input; +using System.Windows.Media; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Data; - using System.Windows.Input; - using System.Windows.Media; - #endregion - + /// /// A variation of RibbonMenuItem which shows Checked state differently. /// Its Submenu can be opened or closed independent of IsCheckable. diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTab.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTab.cs index aca7ec4d3da..cce47b68fcd 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTab.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTab.cs @@ -3,29 +3,27 @@ // See the LICENSE file in the project root for more information. + +#region Using declarations + +using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Diagnostics; +using System.Windows.Automation; +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon.Primitives; +using Microsoft.Windows.Controls; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - - #region Using declarations - - using System; - using System.Collections.ObjectModel; - using System.Collections.Specialized; - using System.ComponentModel; - using System.Diagnostics; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTabHeader.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTabHeader.cs index ad6c9923bc2..d86627c693c 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTabHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTabHeader.cs @@ -3,23 +3,21 @@ // See the LICENSE file in the project root for more information. +using System.Windows.Automation; +using System.Windows.Automation.Peers; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Threading; +using MS.Internal; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - using System; - using System.Windows; - using System.Windows.Automation; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Threading; - using MS.Internal; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTabHeaderItemsControl.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTabHeaderItemsControl.cs index 779c74a5699..6a7ecb12f3f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTabHeaderItemsControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTabHeaderItemsControl.cs @@ -2,21 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Threading; +#if RIBBON_IN_FRAMEWORK +using System.Windows.Controls.Ribbon.Primitives; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Threading; -#if RIBBON_IN_FRAMEWORK - using System.Windows.Controls.Ribbon.Primitives; #else using Microsoft.Windows.Automation.Peers; using Microsoft.Windows.Controls.Ribbon.Primitives; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTextBox.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTextBox.cs index 284c109ca92..49118c107a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTextBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTextBox.cs @@ -3,24 +3,22 @@ // See the LICENSE file in the project root for more information. +#region Using declarations + +using System.Collections.Specialized; +using System.Windows.Automation.Peers; +using System.Windows.Input; +using System.Windows.Media; +using Microsoft.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Collections.Specialized; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Input; - using System.Windows.Media; - using Microsoft.Windows.Input; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToggleButton.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToggleButton.cs index 4e33ef289e2..ea7e3ce4704 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToggleButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToggleButton.cs @@ -3,24 +3,22 @@ // See the LICENSE file in the project root for more information. +#region Using declarations + +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Media; +using System.Collections.Specialized; +using System.Windows.Input; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Media; - using System.Collections.Specialized; - using System.Windows.Input; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToolTip.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToolTip.cs index 7a417eaaa33..16c4e0c85cd 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToolTip.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToolTip.cs @@ -1,7 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + + +#region Using declarations + +using System.Windows.Automation.Peers; +using System.Windows.Controls.Primitives; +using System.Windows.Media; #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon @@ -9,15 +15,6 @@ namespace System.Windows.Controls.Ribbon namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Controls.Primitives; - using System.Windows.Input; - using System.Windows.Media; #if !RIBBON_IN_FRAMEWORK using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToolTipService.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToolTipService.cs index f939462ef35..3d5d1dc440e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToolTipService.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonToolTipService.cs @@ -1,18 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + +#region Using declarations + +using System.Windows.Input; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Windows.Input; - #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTwoLineText.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTwoLineText.cs index a7c7bdb37ff..cb807b26a1e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTwoLineText.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonTwoLineText.cs @@ -2,26 +2,23 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#region Using declarations + +using System.ComponentModel; +using System.Diagnostics; +using System.Windows.Automation.Peers; +using System.Windows.Documents; +using System.Windows.Media; +using System.Windows.Shapes; +#if RIBBON_IN_FRAMEWORK +using Microsoft.Windows.Controls; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.ComponentModel; - using System.Diagnostics; - using System.Windows; - using System.Windows.Automation.Peers; - using System.Windows.Controls; - using System.Windows.Data; - using System.Windows.Documents; - using System.Windows.Media; - using System.Windows.Shapes; -#if RIBBON_IN_FRAMEWORK - using Microsoft.Windows.Controls; #else using Microsoft.Windows.Automation.Peers; #endif diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonWindow.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonWindow.cs index c2f584bcee6..0b5ca02c31d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonWindow.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/RibbonWindow.cs @@ -2,22 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#region Using declarations + +using System.Windows.Input; +using System.Windows.Media; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - #region Using declarations - - using System; - using System.Diagnostics; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Data; - using System.Windows.Input; - using System.Windows.Media; - #endregion /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/StringCollectionConverter.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/StringCollectionConverter.cs index 21b6f71d347..2b47a00887f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/StringCollectionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/Ribbon/StringCollectionConverter.cs @@ -2,18 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Specialized; +using System.ComponentModel; +using System.Globalization; +using System.Text; + #if RIBBON_IN_FRAMEWORK namespace System.Windows.Controls.Ribbon #else namespace Microsoft.Windows.Controls.Ribbon #endif { - using System; - using System.Collections.Specialized; - using System.ComponentModel; - using System.Globalization; - using System.Text; - /// /// A class used to convert a comma separated list into /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/TextSearchInternal.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/TextSearchInternal.cs index f187d3b9f91..eb723edc9a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/TextSearchInternal.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Controls/TextSearchInternal.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows; -using System.Windows.Controls; + using System.Windows.Data; using System.Globalization; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Input/CommandHelpers.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Input/CommandHelpers.cs index 6e7a88eeaa0..259762d329c 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Input/CommandHelpers.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Controls.Ribbon/Microsoft/Windows/Input/CommandHelpers.cs @@ -1,22 +1,13 @@ -// 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. -// See the LICENSE file in the project root for more information. - + +using System.Windows; +using System.Windows.Input; namespace Microsoft.Windows.Input { - #region Using declarations - - using System.Windows; - using System.Windows.Input; - using System.Diagnostics; - - #endregion Using declarations - - #region CommandHelpers Class - /// - /// A helper class for executing Commands. + /// A helper class for executing Commands. /// internal static class CommandHelpers { @@ -123,6 +114,4 @@ internal enum CommandOperation CancelPreview, Execute } - - #endregion CommandHelpers Class } diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/Manipulation2DStartedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/Manipulation2DStartedEventArgs.cs index fed3cf7d61a..cc33227e4e0 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/Manipulation2DStartedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/Manipulation2DStartedEventArgs.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. -using System; using System.Diagnostics; namespace System.Windows.Input.Manipulations diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/PointF.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/PointF.cs index c8230d99770..34af78c5909 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/PointF.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/PointF.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input.Manipulations { /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/VectorF.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/VectorF.cs index 6df1ab2b1b6..932bf197ef9 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/VectorF.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Input.Manipulations/System/Windows/Input/Manipulations/VectorF.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input.Manipulations { /// diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Presentation/System/Windows/Threading/DispatcherExtensions.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Presentation/System/Windows/Threading/DispatcherExtensions.cs index a17039f3f2c..1350ed9c7d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Presentation/System/Windows/Threading/DispatcherExtensions.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Presentation/System/Windows/Threading/DispatcherExtensions.cs @@ -1,8 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; + using System.ComponentModel; // EditorBrowsableAttribute, BrowsableAttribute namespace System.Windows.Threading diff --git a/src/Microsoft.DotNet.Wpf/src/System.Windows.Presentation/System/Windows/Threading/TaskExtensions.cs b/src/Microsoft.DotNet.Wpf/src/System.Windows.Presentation/System/Windows/Threading/TaskExtensions.cs index a984e9caa39..5aded36e8d5 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Windows.Presentation/System/Windows/Threading/TaskExtensions.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Windows.Presentation/System/Windows/Threading/TaskExtensions.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Windows.Threading; + using System.Threading.Tasks; -using System.Runtime.CompilerServices; namespace System.Windows.Threading { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/GlobalUsings.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/GlobalUsings.cs new file mode 100644 index 00000000000..f73ee7d808f --- /dev/null +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/GlobalUsings.cs @@ -0,0 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +global using System; +global using System.Collections.Generic; +global using System.Diagnostics; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/DateTimeValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/DateTimeValueSerializer.cs index 7df514c36c4..5f6ec859c65 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/DateTimeValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/DateTimeValueSerializer.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/INameScopeDictionary.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/INameScopeDictionary.cs index ecc591fb403..a27e40a9a01 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/INameScopeDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/INameScopeDictionary.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; - namespace System.Windows.Markup { public interface INameScopeDictionary : INameScope, IDictionary diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/PropertyDefinition.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/PropertyDefinition.cs index 8f78d1afcaf..52242fe80d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/PropertyDefinition.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/PropertyDefinition.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Collections.Generic; using System.ComponentModel; using System.Xaml; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/StaticExtensionsToInstanceDescriptorsConverter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/StaticExtensionsToInstanceDescriptorsConverter.cs index ed2c10119e8..19b20cc3d89 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/StaticExtensionsToInstanceDescriptorsConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/StaticExtensionsToInstanceDescriptorsConverter.cs @@ -7,7 +7,6 @@ using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Globalization; -using System.Security; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/TypeExtensionConverter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/TypeExtensionConverter.cs index 1e80dc663ae..c9f58d7b744 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/TypeExtensionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/TypeExtensionConverter.cs @@ -7,7 +7,6 @@ using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Globalization; -using System.Security; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/ValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/ValueSerializer.cs index beb4e40bb01..f94a5c5a1d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/ValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/Markup/ValueSerializer.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Xaml; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/AttachablePropertyServices.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/AttachablePropertyServices.cs index efdeaf838c4..67ef7cfc9b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/AttachablePropertyServices.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/AttachablePropertyServices.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ContextServices.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ContextServices.cs index f7f5d50aa61..2036cd92a65 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ContextServices.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ContextServices.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Diagnostics; using System.Windows.Markup; using System.Xaml; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/NameFixupGraph.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/NameFixupGraph.cs index a9c8666b009..f718ab6fe8d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/NameFixupGraph.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/NameFixupGraph.cs @@ -4,13 +4,9 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Text; using System.Xaml; using System.Xaml.MS.Impl; -using System.Xaml.Schema; namespace MS.Internal.Xaml.Context { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/NameFixupToken.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/NameFixupToken.cs index 8a632260c90..c5f881b875e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/NameFixupToken.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/NameFixupToken.cs @@ -4,9 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Xaml; using MS.Internal.Xaml.Runtime; using XAML3 = System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterContext.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterContext.cs index efb5a16d29b..18782510e80 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterContext.cs @@ -4,9 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; using System.Xaml; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterFrame.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterFrame.cs index 3f8c67ec7d7..5f94a2bc23a 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ObjectWriterFrame.cs @@ -4,11 +4,7 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Xaml; -using System.Xaml.MS.Impl; using XAML3 = System.Windows.Markup; namespace MS.Internal.Xaml.Context diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ServiceProviderContext.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ServiceProviderContext.cs index 6dd79d8e99d..bdcc8794384 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ServiceProviderContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/ServiceProviderContext.cs @@ -4,8 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; using System.ComponentModel; using System.Windows.Markup; using System.Xaml; @@ -13,7 +11,7 @@ namespace MS.Internal.Xaml { -internal class ServiceProviderContext : ITypeDescriptorContext, // derives from IServiceProvider + internal class ServiceProviderContext : ITypeDescriptorContext, // derives from IServiceProvider IServiceProvider, IXamlTypeResolver, IUriContext, diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlCommonFrame.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlCommonFrame.cs index c448429cbc5..c2ca6af790e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlCommonFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlCommonFrame.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Collections.Generic; using System.Xaml; namespace MS.Internal.Xaml.Context diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlContext.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlContext.cs index 53c0ee86b5c..324ae72ca67 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlContext.cs @@ -4,9 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; using System.Xaml; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlParserContext.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlParserContext.cs index 83699eb8ef0..85e58e2ae02 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlParserContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlParserContext.cs @@ -4,8 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; using System.Reflection; using System.Xaml; using MS.Internal.Xaml.Parser; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlParserFrame.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlParserFrame.cs index 03ce0f30bc6..aa52efe0dff 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlParserFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Context/XamlParserFrame.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Collections.Generic; using System.Reflection; using System.Xaml; using MS.Internal.Xaml.Parser; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/EventConverter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/EventConverter.cs index 3f21432c9b3..f86ee417349 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/EventConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/EventConverter.cs @@ -4,7 +4,6 @@ using System.ComponentModel; using System.Globalization; -using System.Xaml.Schema; namespace System.Xaml { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IAmbientProvider.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IAmbientProvider.cs index b5380dca81b..ae9e81e3a9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IAmbientProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IAmbientProvider.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; - namespace System.Xaml { public interface IAmbientProvider diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IAttachedPropertyStore.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IAttachedPropertyStore.cs index 39754272a46..441afb2bd15 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IAttachedPropertyStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IAttachedPropertyStore.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace System.Xaml diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IXamlNameResolver.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IXamlNameResolver.cs index a8f5700cb80..0d085c3c080 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IXamlNameResolver.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IXamlNameResolver.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; - namespace System.Xaml { public interface IXamlNameResolver diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IXamlNamespaceResolver.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IXamlNamespaceResolver.cs index b4d3d30d09a..e37035f9871 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IXamlNamespaceResolver.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/IXamlNamespaceResolver.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; - namespace System.Xaml { public interface IXamlNamespaceResolver diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/DeferredWriter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/DeferredWriter.cs index 6490ae428ca..eba1cce1adc 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/DeferredWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/DeferredWriter.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Diagnostics; using MS.Internal.Xaml.Context; namespace System.Xaml diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlNodes.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlNodes.cs index b199f8d0566..aa8474b4c54 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlNodes.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlNodes.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Diagnostics; - namespace System.Xaml { public enum XamlNodeType:byte diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlObjectWriter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlObjectWriter.cs index 1128436f8c7..9cc3484467f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlObjectWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlObjectWriter.cs @@ -6,9 +6,7 @@ using System.Collections; using System.Collections.Concurrent; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Text; using System.Xaml.MS.Impl; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlReaderSettings.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlReaderSettings.cs index b1ec1662e41..0add9cf3fdd 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlReaderSettings.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlReaderSettings.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Diagnostics; using System.Reflection; namespace System.Xaml diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlXmlReader.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlXmlReader.cs index 0dbc9d10e06..0191cfffe4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlXmlReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlXmlReader.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Xaml.MS.Impl; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlXmlReaderSettings.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlXmlReaderSettings.cs index ae311adcb99..7dc50b0af00 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlXmlReaderSettings.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/InfosetObjects/XamlXmlReaderSettings.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; - namespace System.Xaml { public class XamlXmlReaderSettings : XamlReaderSettings diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/AssemblyNamespacePair.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/AssemblyNamespacePair.cs index 354fc147217..474c63fd1fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/AssemblyNamespacePair.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/AssemblyNamespacePair.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Diagnostics; using System.Reflection; namespace System.Xaml.MS.Impl diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/XmlNsInfo.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/XmlNsInfo.cs index 7125b1adddf..94c962f0ba0 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/XmlNsInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/MS/Impl/XmlNsInfo.cs @@ -5,9 +5,7 @@ #nullable disable using System.Collections.Concurrent; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NameScope.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NameScope.cs index cea711a1e71..16538d01e7e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NameScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NameScope.cs @@ -8,7 +8,6 @@ // within the logical tree section. using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NameScopeDictionary.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NameScopeDictionary.cs index 1f34b875fc9..a6fde616f2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NameScopeDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NameScopeDictionary.cs @@ -5,7 +5,6 @@ #nullable disable using System.Collections; -using System.Collections.Generic; using System.Collections.Specialized; using System.Windows.Markup; using System.Xaml.MS.Impl; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NamespaceDeclaration.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NamespaceDeclaration.cs index 8148049fa18..09b04ed7da0 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NamespaceDeclaration.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/NamespaceDeclaration.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Diagnostics; - namespace System.Xaml { [DebuggerDisplay("Prefix={Prefix} Namespace={Namespace}")] diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/GenericTypeNameParser.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/GenericTypeNameParser.cs index 34e7d62db21..cfff093a0ea 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/GenericTypeNameParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/GenericTypeNameParser.cs @@ -4,9 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Runtime.Serialization; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/GenericTypeNameScanner.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/GenericTypeNameScanner.cs index dfcaac0fd7e..cfcd18f250c 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/GenericTypeNameScanner.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/GenericTypeNameScanner.cs @@ -4,8 +4,6 @@ #nullable disable -using System; -using System.Diagnostics; using System.Xaml.MS.Impl; namespace MS.Internal.Xaml.Parser diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/MePullParser.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/MePullParser.cs index 5a538cecb7e..934858d1c65 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/MePullParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/MePullParser.cs @@ -4,9 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Xaml; using MS.Internal.Xaml.Context; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/MeScanner.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/MeScanner.cs index 22bd1dd8334..b2d1bac9b7d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/MeScanner.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/MeScanner.cs @@ -4,9 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Text; using System.Xaml; using System.Xaml.MS.Impl; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NamespacePrefixLookup.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NamespacePrefixLookup.cs index 0550e68ccd5..55c693f087c 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NamespacePrefixLookup.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NamespacePrefixLookup.cs @@ -4,8 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; using System.Xaml; namespace MS.Internal.Xaml.Parser diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NodeStreamSorter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NodeStreamSorter.cs index 530ce961bf0..d38fc2ea1ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NodeStreamSorter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/NodeStreamSorter.cs @@ -4,10 +4,7 @@ #nullable disable -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; using System.Xaml; using System.Xaml.MS.Impl; using MS.Internal.Xaml.Context; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlAttribute.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlAttribute.cs index 168b7b4eede..ef3239ca469 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlAttribute.cs @@ -4,8 +4,6 @@ #nullable disable -using System; -using System.Diagnostics; using System.Xaml; using System.Xaml.MS.Impl; using System.Xml; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPropertyName.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPropertyName.cs index 75ea603225f..0d6d900e040 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPropertyName.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPropertyName.cs @@ -4,8 +4,6 @@ #nullable disable -using System; - namespace MS.Internal.Xaml.Parser { internal class XamlPropertyName : XamlName diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPullParser.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPullParser.cs index 94f1c51daa9..5c01d36b8f5 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPullParser.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlPullParser.cs @@ -4,8 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; using System.Runtime.Serialization; using System.Xaml; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlQualifiedName.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlQualifiedName.cs index 3ce17946ed2..ec0e73ad1a9 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlQualifiedName.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlQualifiedName.cs @@ -4,8 +4,6 @@ #nullable disable -using System; - namespace MS.Internal.Xaml.Parser { internal class XamlQualifiedName : XamlName diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScanner.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScanner.cs index a26b18755b5..d84d8817eee 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScanner.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScanner.cs @@ -4,9 +4,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Xaml; using System.Xaml.MS.Impl; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScannerNode.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScannerNode.cs index e66056d5a4e..7122963a79b 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScannerNode.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScannerNode.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Diagnostics; using System.Xaml; using System.Xml; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScannerStack.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScannerStack.cs index d3299634098..d4f16c17f30 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScannerStack.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlScannerStack.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; -using System.Diagnostics; using System.Xaml; namespace MS.Internal.Xaml.Parser diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlText.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlText.cs index 4aa0046af66..9bd3cd5499d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlText.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Parser/XamlText.cs @@ -4,8 +4,6 @@ #nullable disable -using System; -using System.Diagnostics; using System.Text; using System.Xaml; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Replacements/DateTimeOffsetConverter2.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Replacements/DateTimeOffsetConverter2.cs index 2782f3a356d..b899b8c2c83 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Replacements/DateTimeOffsetConverter2.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Replacements/DateTimeOffsetConverter2.cs @@ -8,7 +8,6 @@ using System.ComponentModel.Design.Serialization; using System.Globalization; using System.Reflection; -using System.Security; namespace System.Xaml.Replacements { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Replacements/TypeListConverter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Replacements/TypeListConverter.cs index fc81c613d6f..eb44f0a4079 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Replacements/TypeListConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Replacements/TypeListConverter.cs @@ -6,7 +6,6 @@ using System.ComponentModel; using System.Globalization; -using System.Windows.Markup; namespace System.Xaml.Replacements { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/ClrObjectRuntime.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/ClrObjectRuntime.cs index 7cda6fe42f4..3534d23cf4e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/ClrObjectRuntime.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/ClrObjectRuntime.cs @@ -4,9 +4,7 @@ #nullable disable -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Reflection; using System.Xaml; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/DynamicMethodRuntime.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/DynamicMethodRuntime.cs index e7e454fbe40..254aa77d646 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/DynamicMethodRuntime.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/DynamicMethodRuntime.cs @@ -4,13 +4,9 @@ #nullable disable -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; using System.Reflection.Emit; -using System.Security; using System.Xaml; using System.Xaml.MS.Impl; using System.Xaml.Permissions; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/PartialTrustTolerantRuntime.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/PartialTrustTolerantRuntime.cs index f61067056cc..9b1153ca621 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/PartialTrustTolerantRuntime.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Runtime/PartialTrustTolerantRuntime.cs @@ -4,9 +4,7 @@ #nullable disable -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Security; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/CollectionReflector.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/CollectionReflector.cs index 0d2f900ad73..59d962680f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/CollectionReflector.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/CollectionReflector.cs @@ -5,7 +5,6 @@ #nullable disable using System.Collections; -using System.Collections.Generic; using System.Reflection; using System.Xaml.MS.Impl; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/MemberReflector.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/MemberReflector.cs index fe6f817e2d9..682e2ecace9 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/MemberReflector.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/MemberReflector.cs @@ -4,10 +4,8 @@ #nullable disable -using System.Collections.Generic; using System.ComponentModel; using System.Reflection; -using System.Security; using System.Windows.Markup; namespace System.Xaml.Schema diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/ReferenceEqualityComparer.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/ReferenceEqualityComparer.cs index f21f3e677d3..52307f3fe29 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/ReferenceEqualityComparer.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/ReferenceEqualityComparer.cs @@ -5,8 +5,6 @@ #nullable disable using System.Collections; -using System.Collections.Generic; -using System.Runtime.CompilerServices; namespace System.Xaml.Schema { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/Reflector.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/Reflector.cs index adfb67d47a5..a8ff928a66f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/Reflector.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/Reflector.cs @@ -4,10 +4,8 @@ #nullable disable -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; using System.Threading; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/SafeReflectionInvoker.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/SafeReflectionInvoker.cs index 9eed790c8c3..9d75be36b2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/SafeReflectionInvoker.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/SafeReflectionInvoker.cs @@ -4,10 +4,7 @@ #nullable disable -using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Runtime.CompilerServices; -using System.Security; namespace System.Xaml.Schema { diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/TypeReflector.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/TypeReflector.cs index 87fc3f327aa..e5d822a72ff 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/TypeReflector.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/TypeReflector.cs @@ -5,9 +5,7 @@ #nullable disable using System.Collections.Concurrent; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; using System.Threading; using System.Xaml.MS.Impl; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlDirective.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlDirective.cs index 1f198c30e81..2b6d1ba16b1 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlDirective.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlDirective.cs @@ -4,10 +4,8 @@ #nullable disable -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlMemberInvoker.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlMemberInvoker.cs index 1bab294dcfd..6c0787c93a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlMemberInvoker.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlMemberInvoker.cs @@ -4,9 +4,7 @@ #nullable disable -using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Security; using System.Xaml.MS.Impl; namespace System.Xaml.Schema diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlNamespace.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlNamespace.cs index 2f35e863a32..8960d0bac88 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlNamespace.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlNamespace.cs @@ -5,8 +5,6 @@ #nullable disable using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; using System.Xaml.MS.Impl; using MS.Internal.Xaml.Parser; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlTypeInvoker.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlTypeInvoker.cs index eb3bfee6733..50905bd586e 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlTypeInvoker.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlTypeInvoker.cs @@ -5,11 +5,8 @@ #nullable disable using System.Collections; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Runtime.Serialization; -using System.Security; using System.Windows.Markup; namespace System.Xaml.Schema diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlBackgroundReader.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlBackgroundReader.cs index 8d01930ccdd..f4d0526a4e6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlBackgroundReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlBackgroundReader.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Diagnostics; using System.Threading; namespace System.Xaml diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlException.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlException.cs index 40f4fee708f..5c712373a1d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlException.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlException.cs @@ -5,7 +5,6 @@ #nullable disable using System.Runtime.Serialization; -using System.Security; using MS.Internal.Xaml.Parser; namespace System.Xaml diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlLanguage.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlLanguage.cs index 51301bba292..8be95a6c651 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlLanguage.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlLanguage.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Reflection; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlMarkupExtensionWriter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlMarkupExtensionWriter.cs index b1419d0c4ea..9328c52d5bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlMarkupExtensionWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlMarkupExtensionWriter.cs @@ -4,7 +4,6 @@ #nullable disable -using System.Collections.Generic; using System.Text; namespace System.Xaml diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlMember.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlMember.cs index b616aada3b1..66e05db9496 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlMember.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlMember.cs @@ -4,11 +4,8 @@ #nullable disable -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Security; using System.Threading; using System.Windows.Markup; using System.Xaml.Schema; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlNodeList.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlNodeList.cs index 57dadef8275..e4e9dc9c71d 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlNodeList.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlNodeList.cs @@ -4,9 +4,6 @@ #nullable disable -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Xaml { // provides a place to Write a list of Xaml nodes diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlNodeQueue.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlNodeQueue.cs index 3e9519c092f..fc6ab23ae23 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlNodeQueue.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlNodeQueue.cs @@ -4,9 +4,6 @@ #nullable disable -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Xaml { // Provides a FIFO buffer for writing nodes and reading them back. diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlObjectReader.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlObjectReader.cs index 3e2548d63d9..f371af246eb 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlObjectReader.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlObjectReader.cs @@ -5,13 +5,10 @@ #nullable disable using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design.Serialization; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Security; using System.Text; using System.Windows.Markup; using System.Xaml.MS.Impl; @@ -22,8 +19,6 @@ namespace System.Xaml { - using REPLACEMENT = Replacements; - public class XamlObjectReader : XamlReader { XamlObjectReaderSettings settings; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlRuntime.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlRuntime.cs index 4e2394ca8ae..f43d764fbf3 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlRuntime.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlRuntime.cs @@ -4,9 +4,7 @@ #nullable disable -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Windows.Markup; using System.Xaml; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlSchemaContext.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlSchemaContext.cs index 9f27c75a174..f3f74d0b919 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlSchemaContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlSchemaContext.cs @@ -5,10 +5,8 @@ #nullable disable using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Reflection; -using System.Security; using System.Text; using System.Threading; using System.Xaml.MS.Impl; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlType.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlType.cs index 09ca154acf1..98cbc6a2395 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlType.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlType.cs @@ -4,12 +4,9 @@ #nullable disable -using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Security; using System.Text; using System.Threading; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlTypeName.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlTypeName.cs index ea842bfe22e..5c425b6ea3b 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlTypeName.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlTypeName.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; -using System.Diagnostics; using System.Text; using MS.Internal.Xaml.Parser; diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlXmlWriter.cs b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlXmlWriter.cs index 0aa61d70672..767bc6ed53f 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlXmlWriter.cs +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/XamlXmlWriter.cs @@ -4,8 +4,6 @@ #nullable disable -using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Reflection; using System.Text; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/BulletChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/BulletChrome.cs index 3a428379f3c..5ac75b8087d 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/BulletChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/BulletChrome.cs @@ -1,17 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Shapes; -using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; -using System.ComponentModel; +using System.Windows.Controls; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal; using System; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ButtonChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ButtonChrome.cs index 0d41e901c62..11f183933e7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ButtonChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ButtonChrome.cs @@ -2,22 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Windows.Shapes; using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; - -using System.ComponentModel; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal; using System; -using System.Runtime.InteropServices; -using System.Security; - namespace Microsoft.Windows.Themes { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/DataGridHeaderBorder.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/DataGridHeaderBorder.cs index 8e82e7b4f2a..21947a6020d 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/DataGridHeaderBorder.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/DataGridHeaderBorder.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ListBoxChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ListBoxChrome.cs index 0552d0ae17d..134c562a568 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ListBoxChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ListBoxChrome.cs @@ -1,17 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Shapes; -using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; -using System.ComponentModel; +using System.Windows.Controls; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal; using System; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ProgressBarHighlightConverter.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ProgressBarHighlightConverter.cs index 8821fd1f0c9..39b79ec2f9b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ProgressBarHighlightConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ProgressBarHighlightConverter.cs @@ -1,13 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System; using System.Globalization; -using System.Threading; using System.Windows; -using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Media; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ScrollChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ScrollChrome.cs index 94b6f8cc32a..b41a2a7c7d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ScrollChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ScrollChrome.cs @@ -3,15 +3,10 @@ // See the LICENSE file in the project root for more information. using System; -using System.Windows.Shapes; -using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal; namespace Microsoft.Windows.Themes { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ScrollGlyph.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ScrollGlyph.cs index ee79c95c964..64c8f81f800 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ScrollGlyph.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero/Microsoft/Windows/Themes/ScrollGlyph.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; namespace Microsoft.Windows.Themes { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/BulletChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/BulletChrome.cs index 9978ce30f28..5ac75b8087d 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/BulletChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/BulletChrome.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Windows.Shapes; using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; - -using System.ComponentModel; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal; using System; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ButtonChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ButtonChrome.cs index b8fbc5f342b..11f183933e7 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ButtonChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ButtonChrome.cs @@ -1,23 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Shapes; -using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; -using System.ComponentModel; +using System.Windows.Controls; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal; using System; -using System.Runtime.InteropServices; -using System.Security; - namespace Microsoft.Windows.Themes { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/DataGridHeaderBorder.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/DataGridHeaderBorder.cs index 8e82e7b4f2a..21947a6020d 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/DataGridHeaderBorder.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/DataGridHeaderBorder.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ListBoxChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ListBoxChrome.cs index 0552d0ae17d..134c562a568 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ListBoxChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ListBoxChrome.cs @@ -1,17 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Shapes; -using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; -using System.ComponentModel; +using System.Windows.Controls; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal; using System; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ProgressBarHighlightConverter.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ProgressBarHighlightConverter.cs index 8821fd1f0c9..39b79ec2f9b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ProgressBarHighlightConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ProgressBarHighlightConverter.cs @@ -1,13 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System; using System.Globalization; -using System.Threading; using System.Windows; -using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Media; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ScrollChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ScrollChrome.cs index 1d17f66453a..b41a2a7c7d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ScrollChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ScrollChrome.cs @@ -1,17 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System; -using System.Windows.Shapes; -using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; -using MS.Internal; namespace Microsoft.Windows.Themes { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ScrollGlyph.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ScrollGlyph.cs index ee79c95c964..64c8f81f800 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ScrollGlyph.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Aero2/Microsoft/Windows/Themes/ScrollGlyph.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; namespace Microsoft.Windows.Themes { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/DataGridHeaderBorder.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/DataGridHeaderBorder.cs index d7df8384855..98b588131b9 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/DataGridHeaderBorder.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/DataGridHeaderBorder.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections.Generic; + using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollChrome.cs index f416d822f49..7117a37d3e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollChrome.cs @@ -1,17 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System; -using System.Windows.Shapes; -using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; -using System.Windows.Media.Animation; -using MS.Internal; namespace Microsoft.Windows.Themes { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollGlyph.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollGlyph.cs index be200549893..e9121ed2396 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollGlyph.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.AeroLite/Microsoft/Windows/Themes/ScrollGlyph.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; namespace Microsoft.Windows.Themes { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/ClassicBorderDecorator.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/ClassicBorderDecorator.cs index fe6ced0762a..cae80461e61 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/ClassicBorderDecorator.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/ClassicBorderDecorator.cs @@ -1,15 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Shapes; + using System.Windows.Controls; using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; -using MS.Internal; using System; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/DataGridHeaderBorder.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/DataGridHeaderBorder.cs index 2ad475f26f3..f3969b6f2a5 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/DataGridHeaderBorder.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Classic/Microsoft/Windows/Themes/DataGridHeaderBorder.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Internal; -using System; -using System.Collections.Generic; + using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Controls/AnimationFactorToValueConverter.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Controls/AnimationFactorToValueConverter.cs index 65fab25d822..0b9646e3791 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Controls/AnimationFactorToValueConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Controls/AnimationFactorToValueConverter.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows.Data; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Controls/FallbackBrushConverter.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Controls/FallbackBrushConverter.cs index a2f3d2a0672..e3c48d6b1ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Controls/FallbackBrushConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Controls/FallbackBrushConverter.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows.Data; using System.Globalization; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ButtonChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ButtonChrome.cs index 6d0a71ed1a8..4e9a76cbb47 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ButtonChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ButtonChrome.cs @@ -1,15 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System.Windows.Shapes; using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; -using MS.Internal; using System; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/DataGridHeaderBorder.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/DataGridHeaderBorder.cs index 8d16a21e31e..aaddf2b7608 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/DataGridHeaderBorder.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/DataGridHeaderBorder.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollChrome.cs index fe82e385131..35a68fc0db4 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollChrome.cs @@ -3,14 +3,10 @@ // See the LICENSE file in the project root for more information. using System; -using System.Windows.Shapes; using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; -using MS.Internal; namespace Microsoft.Windows.Themes { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollGlyph.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollGlyph.cs index 9d0109a3a26..64c8f81f800 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollGlyph.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Luna/Microsoft/Windows/Themes/ScrollGlyph.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace Microsoft.Windows.Themes { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ButtonChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ButtonChrome.cs index 648a003685d..db7a1a6ef48 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ButtonChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ButtonChrome.cs @@ -1,15 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System.Windows.Shapes; using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; -using MS.Internal; using System; @@ -22,7 +19,7 @@ namespace Microsoft.Windows.Themes /// /// /// - + // This is functionally equivalent to the following visual tree: // // @@ -131,7 +128,7 @@ namespace Microsoft.Windows.Themes // Grid.Bottom ="0.75" // > // - + public sealed class ButtonChrome : Decorator { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/DataGridHeaderBorder.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/DataGridHeaderBorder.cs index f5821bfd186..928c2a72299 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/DataGridHeaderBorder.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/DataGridHeaderBorder.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Collections.Generic; + using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollChrome.cs index b137ee5c139..99787052f25 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollChrome.cs @@ -3,14 +3,10 @@ // See the LICENSE file in the project root for more information. using System; -using System.Windows.Shapes; using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; -using MS.Internal; namespace Microsoft.Windows.Themes { diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollGlyph.cs b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollGlyph.cs index 9d0109a3a26..64c8f81f800 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollGlyph.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Royale/Microsoft/Windows/Themes/ScrollGlyph.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace Microsoft.Windows.Themes { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/BulletChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/BulletChrome.cs index 45db8971709..cf26fa25e28 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/BulletChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/BulletChrome.cs @@ -1,15 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Shapes; + using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; -using MS.Internal; using System; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/KnownTypeHelper.cs b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/KnownTypeHelper.cs index af2be946bce..87e64640b69 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/KnownTypeHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/KnownTypeHelper.cs @@ -1,10 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System; -using System.Collections.Generic; -using System.Text; using System.Xaml; using System.Windows.Baml2006; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/PlatformCulture.cs b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/PlatformCulture.cs index 483e530ee46..689770c84b5 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/PlatformCulture.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/PlatformCulture.cs @@ -1,13 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System.Diagnostics; using System.Globalization; using System.Windows; -using System; - namespace Microsoft.Windows.Themes { /// diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/ProgressBarBrushConverter.cs b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/ProgressBarBrushConverter.cs index f7829f77577..da45b494dd0 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/ProgressBarBrushConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/ProgressBarBrushConverter.cs @@ -1,13 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System; using System.Globalization; -using System.Threading; using System.Windows; -using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Media; using System.Windows.Media.Animation; diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/SystemDropShadowChrome.cs b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/SystemDropShadowChrome.cs index 7e3543190f8..c33a75204c0 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/SystemDropShadowChrome.cs +++ b/src/Microsoft.DotNet.Wpf/src/Themes/Shared/Microsoft/Windows/Themes/SystemDropShadowChrome.cs @@ -1,15 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Shapes; + using System.Windows.Controls; -using System.Diagnostics; -using System.Threading; using System.Windows; using System.Windows.Media; -using MS.Internal; using System; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Accessible.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Accessible.cs index c6219763c9c..59cfa844df9 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Accessible.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Accessible.cs @@ -4,10 +4,8 @@ // Description: Wraps some of IAccessible to support Focus and top-level window creates -using System.Windows.Automation; using System; using Accessibility; -using System.Text; using System.Diagnostics; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/AutomationAttributeInfo.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/AutomationAttributeInfo.cs index 8cb6a21f06d..53f2681901d 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/AutomationAttributeInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/AutomationAttributeInfo.cs @@ -10,7 +10,6 @@ using System; using System.Windows.Automation; -using System.Windows.Automation.Text; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/AutomationPatternInfo.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/AutomationPatternInfo.cs index f7ee5ab6209..fd538ecdca1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/AutomationPatternInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/AutomationPatternInfo.cs @@ -4,7 +4,6 @@ // Description: class containing information about an automation property -using System; using System.Windows.Automation; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/BoundingRectTracker.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/BoundingRectTracker.cs index 1b49590de99..b91448f8c5a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/BoundingRectTracker.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/BoundingRectTracker.cs @@ -7,8 +7,6 @@ using System; using System.Windows; using System.Windows.Automation; -using System.Runtime.InteropServices; -using System.ComponentModel; using MS.Win32; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/CacheHelper.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/CacheHelper.cs index 00de8ddac72..643b0fb1a0c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/CacheHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/CacheHelper.cs @@ -4,13 +4,8 @@ // Description: Static class that manages prefetching and normalization -using System; using System.Diagnostics; -using System.Windows; using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System.ComponentModel; -using MS.Win32; // For methods that support prefetching, ClientAPI sends the UiaCoreApi diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/CalloutQueueItem.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/CalloutQueueItem.cs index ec03c974880..cb2ddf3089d 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/CalloutQueueItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/CalloutQueueItem.cs @@ -5,12 +5,7 @@ // Description: Class to create a queue on its own thread. using System.Windows.Automation; -using System.Windows.Automation.Provider; using System; -using System.Collections; -using System.ComponentModel; -using MS.Internal.Automation; -using MS.Win32; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClickablePoint.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClickablePoint.cs index 9a2ee35f2f9..99f140cda71 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClickablePoint.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClickablePoint.cs @@ -4,10 +4,7 @@ // Description: Class to get a point that some can click on -using System.Windows.Automation; -using MS.Internal.Automation; using MS.Win32; -using System; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClientEventManager.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClientEventManager.cs index e04c1c9cabd..82f15401eb2 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClientEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClientEventManager.cs @@ -4,11 +4,9 @@ // Description: Manages the listeners for one accessibility aid or test application. -using System.Windows; using System.Collections; using System.Diagnostics; using System.Windows.Automation; -using System.Windows.Automation.Provider; using MS.Win32; using System; @@ -18,8 +16,8 @@ namespace MS.Internal.Automation { - // Manages the listeners for one accessibility aid or test application. Locking - // is used in all public methods to allow for multiple threads in a client process. + // Manages the listeners for one accessibility aid or test application. Locking + // is used in all public methods to allow for multiple threads in a client process. internal static class ClientEventManager { //------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClientSideQueueItem.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClientSideQueueItem.cs index 9a85dad3c0d..2922e3989c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClientSideQueueItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ClientSideQueueItem.cs @@ -5,12 +5,7 @@ // Description: Class to create a queue on its own thread. using System.Windows.Automation; -using System.Windows.Automation.Provider; using System; -using System.Collections; -using System.ComponentModel; -using MS.Internal.Automation; -using MS.Win32; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/EventListener.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/EventListener.cs index 44c3a86f7aa..fbb9b3262d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/EventListener.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/EventListener.cs @@ -5,7 +5,6 @@ // Description: // EventListener internal class holds the event data for both client and server sides -using System; using System.Windows.Automation; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/EventListenerClientSide.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/EventListenerClientSide.cs index 881c9e501a3..23944e518cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/EventListenerClientSide.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/EventListenerClientSide.cs @@ -5,9 +5,7 @@ // Description: This class wraps an event listener object on the client side. using System; -using System.Diagnostics; using System.Windows.Automation; -using System.ComponentModel; // needed by AsyncOperation using System.Runtime.InteropServices; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/HwndProxyElementProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/HwndProxyElementProvider.cs index 8f6d8363758..0b04173baf8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/HwndProxyElementProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/HwndProxyElementProvider.cs @@ -17,7 +17,6 @@ using System.Collections; using System.Runtime.InteropServices; using System.Diagnostics; -using System.ComponentModel; using MS.Win32; using NativeMethodsSetLastError = MS.Internal.UIAutomationClient.NativeMethodsSetLastError; @@ -25,7 +24,7 @@ namespace MS.Internal.Automation { // Disable warning for obsolete types. These are scheduled to be removed in M8.2 so // only need the warning to come out for components outside of APT. - #pragma warning disable 0618 +#pragma warning disable 0618 // Base proxy for HWNDs. Provides HWND-based children, HWND properties such as Enabled, Visible etc. internal class HwndProxyElementProvider: diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/InvokeHandlers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/InvokeHandlers.cs index bcdb011673c..125ce500d24 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/InvokeHandlers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/InvokeHandlers.cs @@ -6,9 +6,6 @@ using System; using System.Windows.Automation; -using System.ComponentModel; -using System.Threading; -using System.Diagnostics; namespace MS.Internal.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/MenuTracker.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/MenuTracker.cs index 7454cba1305..4ed9ab0e780 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/MenuTracker.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/MenuTracker.cs @@ -5,7 +5,6 @@ // Description: Class used to track context menus appearing using System; -using System.Text; using System.Windows.Automation; using System.Diagnostics; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Misc.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Misc.cs index e48e66452f4..55d1ae03727 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Misc.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Misc.cs @@ -13,15 +13,9 @@ using System.Collections; using System.ComponentModel; using System.Diagnostics; -using System.Net; -using System.Net.Sockets; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security; using System.Text; -using System.Windows; using System.Windows.Automation; -using System.Windows.Automation.Provider; using NativeMethodsSetLastError = MS.Internal.UIAutomationClient.NativeMethodsSetLastError; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ProxyManager.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ProxyManager.cs index 8ab70515bf2..ede2cca9ec8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ProxyManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/ProxyManager.cs @@ -8,7 +8,6 @@ #pragma warning disable 1634, 1691 using System; -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Text; @@ -17,8 +16,6 @@ using System.Runtime.InteropServices; using System.Reflection; using System.Diagnostics; -using System.Runtime.Serialization; -using System.ComponentModel; using MS.Win32; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/QueueProcessor.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/QueueProcessor.cs index 897c8d659cd..8099a45ee75 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/QueueProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/QueueProcessor.cs @@ -7,15 +7,11 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System; using System.Threading; using System.Collections; using System.Diagnostics; -using MS.Internal.Automation; using MS.Win32; -using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SafeHandles.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SafeHandles.cs index cee01968d9d..317d1fbfefe 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SafeHandles.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SafeHandles.cs @@ -10,8 +10,6 @@ using System; using System.Runtime.InteropServices; -using System.Windows.Automation; -using System.Windows.Automation.Provider; // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SafeProcessHandle.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SafeProcessHandle.cs index 06d6276680c..3660a88d7b8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SafeProcessHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SafeProcessHandle.cs @@ -5,10 +5,6 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; -using System.Security; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; using System.Windows.Automation; using Microsoft.Win32.SafeHandles; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Schema.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Schema.cs index 38c2f02e4ad..ce9a2102db8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Schema.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/Schema.cs @@ -7,23 +7,18 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Text; -using System.Windows.Automation.Provider; -using System.Collections; -using System.Runtime.InteropServices; using System.Globalization; using System.Diagnostics; -using MS.Internal.Automation; namespace MS.Internal.Automation { // Disable warning for obsolete types. These are scheduled to be removed in M8.2 so // only need the warning to come out for components outside of APT. - #pragma warning disable 0618 +#pragma warning disable 0618 // Information about automation properties and patterns internal sealed class Schema diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SelectionPatternProviderSideWrapper.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SelectionPatternProviderSideWrapper.cs index 07ce0cf42ac..0dea1d82eff 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SelectionPatternProviderSideWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/SelectionPatternProviderSideWrapper.cs @@ -6,7 +6,6 @@ using System; using System.Diagnostics; -using System.Windows.Automation; using System.Windows.Automation.Provider; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/UiaCoreApi.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/UiaCoreApi.cs index 9bd1528bc0b..fda25d6a798 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/UiaCoreApi.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/UiaCoreApi.cs @@ -8,7 +8,6 @@ #pragma warning disable 1634, 1691 using System; -using System.Security; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WinEventQueueItem.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WinEventQueueItem.cs index a91b08f8af7..c405ade88e5 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WinEventQueueItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WinEventQueueItem.cs @@ -4,14 +4,6 @@ // Description: Class to create a queue on its own thread. -using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System; -using System.Threading; -using System.Collections; -using MS.Internal.Automation; -using MS.Win32; - namespace MS.Internal.Automation { // Worker class used to handle WinEvents diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WinEventWrap.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WinEventWrap.cs index 016c07aedb3..5138ce299cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WinEventWrap.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WinEventWrap.cs @@ -8,7 +8,6 @@ #pragma warning disable 1634, 1691 using System; -using System.Security; using System.Collections; using System.Runtime.InteropServices; using System.ComponentModel; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowHideOrCloseTracker.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowHideOrCloseTracker.cs index 62e04798e23..83daef5be2d 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowHideOrCloseTracker.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowHideOrCloseTracker.cs @@ -6,7 +6,6 @@ // are propogated to that new UI. using System; -using System.Text; using System.Windows.Automation; using MS.Win32; using System.Diagnostics; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowInteractionStateTracker.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowInteractionStateTracker.cs index 019749d89fd..fe551b6b131 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowInteractionStateTracker.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowInteractionStateTracker.cs @@ -6,10 +6,7 @@ // are propogated to that new UI. using System; -using System.Globalization; -using System.Text; using System.Windows.Automation; -using System.Diagnostics; using MS.Win32; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowShowOrOpenTracker.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowShowOrOpenTracker.cs index 52de32bf813..937dcc78ba8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowShowOrOpenTracker.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/WindowShowOrOpenTracker.cs @@ -6,8 +6,6 @@ // are propogated to that new UI. using System; -using System.Globalization; -using System.Text; using System.Windows.Automation; using System.Diagnostics; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/input.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/input.cs index 9402fd256ee..b6044a729a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/input.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/input.cs @@ -5,7 +5,6 @@ // Description: Provides mouse and keyboard input functionality using System.Windows.Input; -using System.ComponentModel; using System.Runtime.InteropServices; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Win32/SafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Win32/SafeNativeMethods.cs index cacd5a620d4..2f9323a1191 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Win32/SafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Win32/SafeNativeMethods.cs @@ -8,9 +8,6 @@ using System.Runtime.InteropServices; using System; -using System.Security; -using System.Collections; -using System.IO; using System.Text; namespace MS.Win32 diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Win32/UnsafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Win32/UnsafeNativeMethods.cs index 78af001e011..c31186e2872 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Win32/UnsafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Win32/UnsafeNativeMethods.cs @@ -5,14 +5,10 @@ // Description: Unsafe P/Invokes used by UIAutomation // -using System.Threading; using System; using System.Runtime.InteropServices; -using System.Collections; -using System.IO; using System.Text; using Accessibility; -using Microsoft.Win32.SafeHandles; namespace MS.Win32 { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AndCondition.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AndCondition.cs index a7bdbe98d73..d973815990f 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AndCondition.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AndCondition.cs @@ -6,10 +6,7 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; using MS.Internal.Automation; -using System.Windows.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Automation.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Automation.cs index a992434eccc..7429ecf0824 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Automation.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Automation.cs @@ -9,12 +9,6 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System; -using System.Runtime.InteropServices; -using System.Reflection; -using System.Diagnostics; using MS.Internal.Automation; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationElement.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationElement.cs index a091901985b..3f6517ee2b1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationElement.cs @@ -4,17 +4,11 @@ // Description: Main class used by Automation clients, represents a UI element -using System.Windows.Automation; using System.Windows.Automation.Provider; -using System; -using System.Runtime.Serialization; using System.Collections; -using System.Collections.Specialized; using System.Diagnostics; using System.ComponentModel; -using MS.Win32; using MS.Internal.Automation; -using System.Runtime.InteropServices; #if EVENT_TRACING_PROPERTY using Microsoft.Win32.Diagnostics; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationElementCollection.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationElementCollection.cs index 1dfdae83c5f..fa2f71575d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationElementCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationElementCollection.cs @@ -5,9 +5,7 @@ // Description: Read-only collection of AutomationElements - effectively a // wrapper for Array -using System; using System.Collections; -using MS.Internal.Automation; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationFocusChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationFocusChangedEventArgs.cs index 6e92b47ab4a..73ad7f65ae0 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationFocusChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/AutomationFocusChangedEventArgs.cs @@ -4,11 +4,7 @@ // Description: Focus event args class (Client Side) -using System; -using System.Windows.Automation.Provider; -using MS.Internal.Automation; - -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// Delegate to handle focus change events diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/BasePattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/BasePattern.cs index bbec7d3d622..0e499059d96 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/BasePattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/BasePattern.cs @@ -4,11 +4,8 @@ // Description: Client-side wrapper for Base Pattern -using System; -using System.Windows.Automation; using System.Diagnostics; using MS.Internal.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/CacheRequest.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/CacheRequest.cs index d29c7ee33cd..56cc1956167 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/CacheRequest.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/CacheRequest.cs @@ -6,10 +6,8 @@ // element operations, and manange the current request. // -using System; using System.Collections; using System.Diagnostics; -using System.Windows.Automation; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ClientSettings.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ClientSettings.cs index c86a3cd140a..b5087f96a36 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ClientSettings.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ClientSettings.cs @@ -8,13 +8,8 @@ // Description: Facade class that contains client configutation options (eg. proxies) // -using System.Windows.Automation; -using System; -using System.Runtime.InteropServices; using System.Reflection; -using System.Diagnostics; using MS.Internal.Automation; -using MS.Win32; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ClientSideProviderDescription.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ClientSideProviderDescription.cs index 62731455eb9..e47a6f73783 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ClientSideProviderDescription.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ClientSideProviderDescription.cs @@ -7,11 +7,9 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; using System.Windows.Automation.Provider; -using MS.Internal.Automation; -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// Enum used to indicate results of requesting a property diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Condition.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Condition.cs index 5b60ecfea32..7fe71bd5335 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Condition.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Condition.cs @@ -6,11 +6,8 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; using MS.Internal.Automation; -using System.Windows.Automation; using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/DockPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/DockPattern.cs index 3ee347226e5..954bea0b571 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/DockPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/DockPattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for Dock Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ExpandCollapsePattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ExpandCollapsePattern.cs index 1e0dd2b7039..2f099d3ff71 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ExpandCollapsePattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ExpandCollapsePattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for ExpandCollapse Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/GridItemPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/GridItemPattern.cs index ec6c25af7db..4cd512d75db 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/GridItemPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/GridItemPattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for GridItem Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/GridPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/GridPattern.cs index 3f9741cab1c..0a9ab188743 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/GridPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/GridPattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for Grid Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/InvokePattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/InvokePattern.cs index 0fee765f0fd..da577330227 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/InvokePattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/InvokePattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for Invoke Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ItemContainerPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ItemContainerPattern.cs index dddd626c4be..b56a56a55e4 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ItemContainerPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ItemContainerPattern.cs @@ -4,10 +4,7 @@ // Description: Client-side wrapper for ItemContainer Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; -using System.Runtime.InteropServices; using System.Globalization; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/MultipleViewPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/MultipleViewPattern.cs index 2e95afd4081..3cb9d2d41d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/MultipleViewPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/MultipleViewPattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for MultipleView Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/NotCondition.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/NotCondition.cs index 4a0a058ed35..f6b42417cde 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/NotCondition.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/NotCondition.cs @@ -3,9 +3,7 @@ // See the LICENSE file in the project root for more information. -using System; using MS.Internal.Automation; -using System.Windows.Automation; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/OrCondition.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/OrCondition.cs index 78b57ae01df..76c0f0d4738 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/OrCondition.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/OrCondition.cs @@ -5,10 +5,7 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; using MS.Internal.Automation; -using System.Windows.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/PropertyCondition.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/PropertyCondition.cs index d201ef39bb1..b7e84b922e6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/PropertyCondition.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/PropertyCondition.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Globalization; -using System.Windows.Automation; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/RangeValuePattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/RangeValuePattern.cs index 1bdb319fef9..4faccff64d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/RangeValuePattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/RangeValuePattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for RangeValue Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ScrollItemPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ScrollItemPattern.cs index 54492fae6e8..71dc96ef343 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ScrollItemPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ScrollItemPattern.cs @@ -4,10 +4,7 @@ // Description: Client-side wrapper for ScrollItem Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ScrollPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ScrollPattern.cs index 3ea3c16c3a9..5146318b41e 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ScrollPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ScrollPattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for Scroll Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SelectionItemPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SelectionItemPattern.cs index e620ea87ac3..aa59c32166a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SelectionItemPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SelectionItemPattern.cs @@ -4,9 +4,6 @@ // Description: Client-side wrapper for SelectionItem Pattern -using System; -using System.Collections; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SelectionPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SelectionPattern.cs index 28f5477b5bb..b67f0c05c05 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SelectionPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SelectionPattern.cs @@ -4,10 +4,6 @@ // Description: Client-side wrapper for Selection Pattern -using System; -using System.Collections; -using System.Windows.Automation.Provider; -using System.ComponentModel; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SynchronizedInputPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SynchronizedInputPattern.cs index e65343d11d6..58e47f8a17b 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SynchronizedInputPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/SynchronizedInputPattern.cs @@ -4,9 +4,7 @@ // Description: Client-side wrapper for SynchronizedInput Pattern -using System; //using System.Collections; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TableItemPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TableItemPattern.cs index 587b4c45ecd..ac7b98cfdf2 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TableItemPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TableItemPattern.cs @@ -5,8 +5,6 @@ // Description: Client-side wrapper for TableItem Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TablePattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TablePattern.cs index 48688624335..bbe1ff4abcf 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TablePattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TablePattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for Table Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Text/TextRange.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Text/TextRange.cs index fa159cfb350..d5e87e7afca 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Text/TextRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/Text/TextRange.cs @@ -10,12 +10,9 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; -using System.Collections; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation.Text diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TextPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TextPattern.cs index 5eb94cfc62c..0332683bff6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TextPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TextPattern.cs @@ -6,9 +6,7 @@ // -using System; using System.Diagnostics; -using System.Windows.Automation.Provider; using System.Windows.Automation.Text; using MS.Internal.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TogglePattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TogglePattern.cs index 279a445e3c1..68bfd6147b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TogglePattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TogglePattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for Toggle Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TransformPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TransformPattern.cs index d3e2ebd741d..25cbee58c8a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TransformPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TransformPattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for Transform Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TreeWalker.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TreeWalker.cs index 57cbd862f42..90d627069e6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TreeWalker.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/TreeWalker.cs @@ -5,9 +5,7 @@ // Description: TreeWalker class, allows client to walk custom views of // UIAutomation tree. -using System; using System.Windows.Automation.Provider; -using MS.Internal.Automation; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ValuePattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ValuePattern.cs index 2d4d9804be0..7ed07c95210 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ValuePattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/ValuePattern.cs @@ -4,8 +4,6 @@ // Description: Client-side wrapper for Value Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/VirtualizedItemPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/VirtualizedItemPattern.cs index 7a4d23c2fe0..a368afc8766 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/VirtualizedItemPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/VirtualizedItemPattern.cs @@ -4,10 +4,7 @@ // Description: Client-side wrapper for VirtualizedItem Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/WindowPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/WindowPattern.cs index 20a2b77e8a1..8e56f63f511 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/WindowPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/System/Windows/Automation/WindowPattern.cs @@ -4,16 +4,13 @@ // Description: Client-side wrapper for Window Pattern -using System; -using System.Windows.Automation.Provider; using MS.Internal.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { // Disable warning for obsolete types. These are scheduled to be removed in M8.2 so // only need the warning to come out for components outside of APT. - #pragma warning disable 0618 +#pragma warning disable 0618 ///wrapper class for Window pattern #if (INTERNAL_COMPILE) diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Accessible.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Accessible.cs index 4b168a68fc1..84284eb9995 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Accessible.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Accessible.cs @@ -12,13 +12,10 @@ using System; using System.Diagnostics; -using System.Collections; using System.Globalization; -using System.Threading; using System.Windows.Automation; using System.Windows; using Accessibility; -using System.Text; using System.Runtime.InteropServices; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ClickablePoint.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ClickablePoint.cs index 959f0efb893..3cbc79c55d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ClickablePoint.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ClickablePoint.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. using System; -using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System.Runtime.InteropServices; using System.Collections; -using System.ComponentModel; using MS.Win32; // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonGetThemePartSize.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonGetThemePartSize.cs index d89f077b2ca..53971682681 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonGetThemePartSize.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonGetThemePartSize.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. using System; -using System.Security; using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using Microsoft.Win32.SafeHandles; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonRemoteMemoryBlock.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonRemoteMemoryBlock.cs index 34894ccf16e..9e708d8a58c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonRemoteMemoryBlock.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonRemoteMemoryBlock.cs @@ -15,11 +15,6 @@ // using System; -using System.ComponentModel; -using System.Security; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Windows.Automation; using Microsoft.Win32.SafeHandles; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonXSendMessage.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonXSendMessage.cs index ee4ddccca4c..5387a3d8c29 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonXSendMessage.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/CommonXSendMessage.cs @@ -8,7 +8,6 @@ using System; using System.Runtime.InteropServices; using System.ComponentModel; -using System.Diagnostics; using System.Windows; using System.Windows.Automation; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/EmptyElement.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/EmptyElement.cs index 09cfbf54575..1e0d3a25ea5 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/EmptyElement.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/EmptyElement.cs @@ -4,10 +4,8 @@ // Description: Implementation of an empty proxy provider -using System; using System.Windows.Automation; using System.Windows.Automation.Provider; -using MS.Win32; namespace MS.Internal.AutomationProxies { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/EventManager.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/EventManager.cs index a8c0a813505..8c55201c5d8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/EventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/EventManager.cs @@ -5,15 +5,9 @@ // Description: Class to manage UIAutomation events and how they relate to winevents using System; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Runtime.InteropServices; -using System.ComponentModel; using System.Collections; -using Accessibility; -using System.Windows; -using System.Windows.Input; using System.Globalization; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/MSAAEventDispatcher.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/MSAAEventDispatcher.cs index 1ef43d7b04e..ac88382f2ea 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/MSAAEventDispatcher.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/MSAAEventDispatcher.cs @@ -8,8 +8,6 @@ using System.Collections; using System.Diagnostics; using System.Globalization; -using System.Text; -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/MSAANativeProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/MSAANativeProvider.cs index d8be60d0a2c..6ba40a51962 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/MSAANativeProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/MSAANativeProvider.cs @@ -12,8 +12,6 @@ using System; using System.Collections; using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Main.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Main.cs index cfc1159687b..d30575bfed1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Main.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Main.cs @@ -5,10 +5,7 @@ // Description: // Proxy registration. -using System; using System.Windows.Automation; -using System.Windows.Automation.Provider; -using MS.Win32; namespace UIAutomationClientsideProviders { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Misc.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Misc.cs index 12860054cf5..81a6d0c9aa5 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Misc.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Misc.cs @@ -11,9 +11,7 @@ using Microsoft.Win32.SafeHandles; using MS.Win32; using System; -using System.Collections; using System.ComponentModel; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Windows.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/NonClientArea.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/NonClientArea.cs index c407e82c837..956b28249d4 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/NonClientArea.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/NonClientArea.cs @@ -12,14 +12,10 @@ \***************************************************************************/ using System; -using System.Collections; using System.Globalization; -using System.Text; -using System.Runtime.InteropServices; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.ComponentModel; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxyFragment.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxyFragment.cs index 1ccc4bbf7ce..d10ade567a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxyFragment.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxyFragment.cs @@ -36,9 +36,6 @@ using System; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.ComponentModel; -using System.Collections; -using System.Runtime.InteropServices; namespace MS.Internal.AutomationProxies { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxyHwnd.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxyHwnd.cs index 00b7b052bcb..589cf3f86ff 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxyHwnd.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxyHwnd.cs @@ -19,15 +19,10 @@ #pragma warning disable 1634, 1691 using System; -using System.Text; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Collections; -using System.Collections.Specialized; -using System.Runtime.InteropServices; -using System.Globalization; -using System.ComponentModel; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxySimple.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxySimple.cs index 58a6631401d..5c9371593d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxySimple.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/ProxySimple.cs @@ -31,15 +31,11 @@ #pragma warning disable 1634, 1691 using System; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Runtime.InteropServices; -using System.ComponentModel; using System.Collections; using Accessibility; using System.Windows; -using System.Windows.Input; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/QueueProcessor.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/QueueProcessor.cs index f86ab97d7f7..461d896d2cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/QueueProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/QueueProcessor.cs @@ -8,13 +8,10 @@ // A seperate thread is created by the win32 proxy to manage the hooks. // -using System.Windows.Automation; -using System.Windows.Automation.Provider; using System; using System.Threading; using System.Collections; using System.Diagnostics; -using System.Runtime.InteropServices; using MS.Win32; using Microsoft.Win32.SafeHandles; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeCoTaskMem.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeCoTaskMem.cs index 982cb60a17f..7fd1a568039 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeCoTaskMem.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeCoTaskMem.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; using Microsoft.Win32.SafeHandles; -using MS.Win32; namespace MS.Internal.AutomationProxies { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeProcessHandle.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeProcessHandle.cs index f60c2543398..525cef2ce4f 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeProcessHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeProcessHandle.cs @@ -3,10 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Security; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Windows.Automation; using Microsoft.Win32.SafeHandles; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeThemeHandle.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeThemeHandle.cs index 3645b7385b7..cfd44a69144 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeThemeHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/SafeThemeHandle.cs @@ -3,10 +3,8 @@ // See the LICENSE file in the project root for more information. using System; -using System.Security; using System.Runtime.InteropServices; //using System.Runtime.CompilerServices; -using System.Windows.Automation; using Microsoft.Win32.SafeHandles; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Tom.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Tom.cs index 24d897d711d..963d385d0fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Tom.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Tom.cs @@ -23,7 +23,6 @@ Exception will be thrown using System; using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; // Right now we really define only methods and enums that are getting used in the code diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WinEventTracker.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WinEventTracker.cs index 7bdd1c728f3..fa340f01c11 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WinEventTracker.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WinEventTracker.cs @@ -9,9 +9,7 @@ using System; using System.Collections; -using System.Reflection; using System.Windows.Automation; -using System.Windows.Automation.Provider; using System.Runtime.InteropServices; using System.Diagnostics; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WinFormsSpinner.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WinFormsSpinner.cs index 9b1dcf4280e..9afd74b2cb5 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WinFormsSpinner.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WinFormsSpinner.cs @@ -5,8 +5,6 @@ // Description: Spinner Proxy using System; -using System.Collections; -using System.Text; using System.ComponentModel; using System.Globalization; using System.Windows.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsAltTab.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsAltTab.cs index 469eb5ef0e5..2ead143b8ff 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsAltTab.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsAltTab.cs @@ -8,16 +8,11 @@ #pragma warning disable 1634, 1691 using System; -using System.Collections; -using System.Globalization; using System.Text; -using System.ComponentModel; -using Accessibility; using System.Windows.Automation.Provider; using System.Windows.Automation; using System.Runtime.InteropServices; using System.Windows; -using System.Windows.Input; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsButton.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsButton.cs index a9d940a236d..51976c9c4c3 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsButton.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsButton.cs @@ -5,13 +5,8 @@ // Description: Windows Button Proxy using System; -using System.Collections; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Windows; -using System.Runtime.InteropServices; -using System.ComponentModel; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsComboBox.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsComboBox.cs index 66c72b94142..7796ccc0c33 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsComboBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsComboBox.cs @@ -5,13 +5,9 @@ // Description: Win32 Combobox proxy using System; -using System.Globalization; -using System.Text; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; -using System.Runtime.InteropServices; using MS.Win32; using NativeMethodsSetLastError = MS.Internal.UIAutomationClientSideProviders.NativeMethodsSetLastError; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsContainer.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsContainer.cs index 3133253b940..a5f8c9c19a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsContainer.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsContainer.cs @@ -5,13 +5,8 @@ // Description: Windows Container Proxy using System; -using System.Windows; -using System.Collections; -using System.ComponentModel; -using System.Runtime.InteropServices; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Text; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsEditBox.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsEditBox.cs index 50451851d09..b282765b0d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsEditBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsEditBox.cs @@ -5,16 +5,12 @@ // Description: HWND-based Edit Box proxy using System; -using System.Collections; using System.Diagnostics; -using System.Globalization; using System.Text; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Windows.Automation.Text; using MS.Win32; using NativeMethodsSetLastError = MS.Internal.UIAutomationClientSideProviders.NativeMethodsSetLastError; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsEditBoxRange.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsEditBoxRange.cs index 68b07024b85..9b13c7ac030 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsEditBoxRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsEditBoxRange.cs @@ -11,13 +11,10 @@ using System; using System.Collections; using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Windows.Input; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Text; -using System.ComponentModel; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsFormsHelpers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsFormsHelpers.cs index 546484c8e58..edf275b38e5 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsFormsHelpers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsFormsHelpers.cs @@ -9,11 +9,7 @@ // using System; -using System.Text; -using System.Collections; -using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Runtime.InteropServices; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsFormsLinkLabel.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsFormsLinkLabel.cs index 76cc863f88d..78c06695b53 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsFormsLinkLabel.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsFormsLinkLabel.cs @@ -8,14 +8,8 @@ #pragma warning disable 1634, 1691 using System; -using System.Collections; -using System.ComponentModel; -using System.Runtime.InteropServices; using System.Windows.Automation; using System.Windows.Automation.Provider; -using Accessibility; -using System.Windows; -using System.Windows.Input; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsGrip.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsGrip.cs index dce77faa2b2..9d292c1e09e 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsGrip.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsGrip.cs @@ -5,13 +5,7 @@ // Description: Windows Button Proxy using System; -using System.Collections; -using System.Text; -using System.Runtime.InteropServices; using System.Windows; -using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System.ComponentModel; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsHyperlink.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsHyperlink.cs index f6693656a00..06ad6c2e15c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsHyperlink.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsHyperlink.cs @@ -6,9 +6,6 @@ using System; using System.Runtime.InteropServices; -using System.ComponentModel; -using System.Text; -using System.Collections; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsIPAddress.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsIPAddress.cs index c8ce9f36c69..bd817c8e1a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsIPAddress.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsIPAddress.cs @@ -9,11 +9,9 @@ using System; using System.Net; using System.Text; -using System.ComponentModel; using System.Globalization; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Windows; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListBox.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListBox.cs index 1449059d550..4196de133dc 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListBox.cs @@ -7,10 +7,6 @@ using System; -using System.Collections; -using System.Text; -using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListView.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListView.cs index 78f01328531..adac44a694b 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListView.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListView.cs @@ -7,10 +7,7 @@ using System; -using System.Collections; -using System.Text; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroup.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroup.cs index 948364f62b1..b613214502a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroup.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroup.cs @@ -7,10 +7,8 @@ using System; -using System.Collections; using System.Globalization; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroupHelper.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroupHelper.cs index 7af12ce8952..7f93cd624f0 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroupHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroupHelper.cs @@ -7,12 +7,8 @@ using System; -using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System.Windows; using System.Collections; using System.Runtime.InteropServices; -using System.ComponentModel; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroupSubsetLink.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroupSubsetLink.cs index f29fb456336..1f09f11086f 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroupSubsetLink.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewGroupSubsetLink.cs @@ -10,7 +10,6 @@ // using System; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Runtime.InteropServices; @@ -19,14 +18,14 @@ namespace MS.Internal.AutomationProxies { - //------------------------------------------------------ - // - // ListViewGroupSubsetLink - // - //------------------------------------------------------ - - // Proxy for List view Group Subset Link - class ListViewGroupSubsetLink: ProxySimple, IInvokeProvider + //------------------------------------------------------ + // + // ListViewGroupSubsetLink + // + //------------------------------------------------------ + + // Proxy for List view Group Subset Link + class ListViewGroupSubsetLink: ProxySimple, IInvokeProvider { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItem.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItem.cs index a9cbc7936d5..c3f894208d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItem.cs @@ -10,7 +10,6 @@ #pragma warning disable 1634, 1691 using System; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItemCheckBox.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItemCheckBox.cs index e2f114da1cf..953934fb392 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItemCheckBox.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItemCheckBox.cs @@ -10,11 +10,9 @@ using System; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; -using System.Runtime.InteropServices; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItemStartMenu.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItemStartMenu.cs index f76b3136fae..692912b6c87 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItemStartMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewItemStartMenu.cs @@ -10,12 +10,8 @@ // using System; -using System.ComponentModel; using System.Windows.Automation; -using System.Windows.Automation.Provider; -using System.Windows; using Accessibility; -using MS.Win32; namespace MS.Internal.AutomationProxies { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewScroll.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewScroll.cs index 2086085df29..537d352b2cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewScroll.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewScroll.cs @@ -8,19 +8,17 @@ using System; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Windows; using MS.Win32; namespace MS.Internal.AutomationProxies { - // The default implementation for scroll bars uses SB_THUMBTRACK and SB_THUMBPOSITION for SetValue - // This does not work with listview so the Scrollbar is overloaded with a derived version that - // uses LVM_SCROLL messages instead - class WindowsListViewScrollBar: WindowsScrollBar, IRangeValueProvider + // The default implementation for scroll bars uses SB_THUMBTRACK and SB_THUMBPOSITION for SetValue + // This does not work with listview so the Scrollbar is overloaded with a derived version that + // uses LVM_SCROLL messages instead + class WindowsListViewScrollBar: WindowsScrollBar, IRangeValueProvider { // ------------------------------------------------------ diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewSubItem.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewSubItem.cs index 226266e169e..121b22ff935 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewSubItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsListViewSubItem.cs @@ -7,7 +7,6 @@ using System; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsMenu.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsMenu.cs index 4f16c7d5a81..fd63af96cb6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsMenu.cs @@ -11,8 +11,6 @@ using System.Collections; using System.Globalization; using System.Text; -using System.ComponentModel; -using Accessibility; using System.Windows.Automation.Provider; using System.Windows.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsNonControl.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsNonControl.cs index a75b0ac4629..20d17598e21 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsNonControl.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsNonControl.cs @@ -7,11 +7,8 @@ // controls from the Content view of the Automation Tree. using System; -using System.Collections; -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; -using MS.Win32; namespace MS.Internal.AutomationProxies { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsProgressbar.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsProgressbar.cs index 0923127ace5..80a3934255a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsProgressbar.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsProgressbar.cs @@ -5,12 +5,8 @@ // Description: HWND-based ProgressBar Proxy using System; -using System.Collections; -using System.Text; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Windows; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRebar.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRebar.cs index 29a213e1c29..ae8fb66eca2 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRebar.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRebar.cs @@ -5,10 +5,7 @@ // Description: HWND-based Rebar Proxy using System; -using System.Collections; -using System.Text; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRichEdit.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRichEdit.cs index ecd9e85cef0..2c121b48c32 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRichEdit.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRichEdit.cs @@ -5,15 +5,11 @@ // Description: HWND-based RichEdit Proxy using System; -using System.Collections; -using System.ComponentModel; using System.Diagnostics; -using System.Runtime.InteropServices; using System.Text; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Windows.Automation.Text; using Accessibility; using MS.Win32; using NativeMethodsSetLastError = MS.Internal.UIAutomationClientSideProviders.NativeMethodsSetLastError; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRichEditRange.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRichEditRange.cs index ee691e4ec54..1db42e09981 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRichEditRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsRichEditRange.cs @@ -16,7 +16,6 @@ using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows.Automation.Text; -using System.ComponentModel; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScroll.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScroll.cs index fa5c3979dda..5b6f8b758a0 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScroll.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScroll.cs @@ -7,12 +7,8 @@ // using System; -using System.ComponentModel; -using System.Globalization; using System.Runtime.InteropServices; -using System.Windows; using System.Windows.Automation; -using System.Windows.Automation.Provider; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScrollBar.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScrollBar.cs index cb9d7d36e83..f8c10e11921 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScrollBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScrollBar.cs @@ -5,12 +5,9 @@ // Description: ScrollBar Proxy using System; -using System.Collections; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScrollBarBits.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScrollBarBits.cs index 3f65839e9d9..c1d5e733f78 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScrollBarBits.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsScrollBarBits.cs @@ -9,12 +9,9 @@ // using System; -using System.Collections; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSlider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSlider.cs index 4bbc3356f29..a78db4ad89d 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSlider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSlider.cs @@ -6,10 +6,7 @@ // using System; -using System.Text; -using System.Collections; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSpinner.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSpinner.cs index c26117a2216..8ec02d490bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSpinner.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSpinner.cs @@ -5,9 +5,6 @@ // Description: Win32 Spinner Proxy using System; -using System.Collections; -using System.Text; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStartMenu.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStartMenu.cs index 67101c5d3f3..5de48830da0 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStartMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStartMenu.cs @@ -5,10 +5,7 @@ // Description: Implementation of a provider for the Classic Start Menu using System; -using System.Windows; -using System.Windows.Automation; using System.Windows.Automation.Provider; -using MS.Win32; namespace MS.Internal.AutomationProxies { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStatic.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStatic.cs index 8f69d457d05..e90bca4368b 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStatic.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStatic.cs @@ -5,9 +5,6 @@ // Description: Windows Static Proxy using System; -using System.Text; -using System.Collections; -using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStatusBar.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStatusBar.cs index 107eb0bd938..a98ccd35d31 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStatusBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsStatusBar.cs @@ -5,11 +5,8 @@ // Description: Windows Status Proxy using System; -using System.Collections; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.ComponentModel; using System.Windows; using System.Globalization; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSysHeader.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSysHeader.cs index b09053b8ddd..5e95d1609f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSysHeader.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsSysHeader.cs @@ -6,15 +6,11 @@ // using System; -using System.Collections; using System.Globalization; using System.Runtime.InteropServices; -using System.ComponentModel; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; -using System.Diagnostics; using MS.Win32; using NativeMethodsSetLastError = MS.Internal.UIAutomationClientSideProviders.NativeMethodsSetLastError; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTab.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTab.cs index 6836cacface..7771a97699d 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTab.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTab.cs @@ -13,11 +13,9 @@ using System; using System.Collections; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows; using System.Windows.Input; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTitleBar.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTitleBar.cs index df1ed1252b2..803db3c784c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTitleBar.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTitleBar.cs @@ -5,13 +5,9 @@ // Description: Spinner Proxy using System; -using System.Collections; -using System.Text; -using System.Runtime.InteropServices; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.ComponentModel; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsToolbar.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsToolbar.cs index 2453195af56..a350b72e595 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsToolbar.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsToolbar.cs @@ -5,11 +5,8 @@ // Description: UIAutomation Toolbar Proxy using System; -using System.Collections; -using System.Runtime.InteropServices; using System.ComponentModel; using System.Globalization; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsToolbarAsMenu.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsToolbarAsMenu.cs index 84eedc52eec..5feb34d17d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsToolbarAsMenu.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsToolbarAsMenu.cs @@ -12,7 +12,6 @@ using System; using System.Windows.Automation; -using MS.Win32; namespace MS.Internal.AutomationProxies { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTooltip.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTooltip.cs index e3b1742c272..33fe0960574 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTooltip.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTooltip.cs @@ -8,13 +8,9 @@ #pragma warning disable 1634, 1691 using System; -using System.Globalization; -using System.Text; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Windows; -using System.Runtime.InteropServices; -using System.ComponentModel; using MS.Win32; namespace MS.Internal.AutomationProxies diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTreeView.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTreeView.cs index e59fb206c93..ecd4c045e71 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTreeView.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsTreeView.cs @@ -6,11 +6,9 @@ using System; using System.Text; -using System.Collections; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Runtime.InteropServices; -using System.ComponentModel; using System.Windows; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsUpDown.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsUpDown.cs index 6d2ad57eddf..2e2a9886647 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsUpDown.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/WindowsUpDown.cs @@ -6,12 +6,8 @@ using System; using System.Windows; -using System.Collections; -using System.ComponentModel; using System.Windows.Automation; using System.Windows.Automation.Provider; -using System.Text; -using System.Runtime.InteropServices; using MS.Win32; using NativeMethodsSetLastError = MS.Internal.UIAutomationClientSideProviders.NativeMethodsSetLastError; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/NativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/NativeMethods.cs index 17138d05b17..baf3c151c61 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/NativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/NativeMethods.cs @@ -15,14 +15,8 @@ // internal on pupose. //*************************************************************************** -using Accessibility; using System.Runtime.InteropServices; using System; -using System.Collections; -using System.Diagnostics; -using System.IO; -using System.Text; -using System.Security; using System.Windows; namespace MS.Win32 diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/SafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/SafeNativeMethods.cs index 86477de2ad0..b8886fc4f8d 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/SafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/SafeNativeMethods.cs @@ -6,10 +6,6 @@ using System.Runtime.InteropServices; using System; -using System.Security; -using System.Collections; -using System.IO; -using System.Text; namespace MS.Win32 { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/UnsafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/UnsafeNativeMethods.cs index 0a160d1d82b..ca9d7650711 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/UnsafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/UnsafeNativeMethods.cs @@ -4,14 +4,10 @@ // Description: Unsafe P/Invokes used by UIAutomation -using System.Threading; using System; using Accessibility; using System.Runtime.InteropServices; -using System.Collections; -using System.IO; using System.Text; -using Microsoft.Win32.SafeHandles; using System.Diagnostics; using NativeMethodsSetLastError = MS.Internal.UIAutomationClientSideProviders.NativeMethodsSetLastError; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/externdll.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/externdll.cs index a16114a1119..f076f03fe91 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/externdll.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Win32/externdll.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; namespace MS.Win32 { internal class ExternDll diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/Forwards.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/Forwards.cs index 5d182ca6d89..8a5654437c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/Forwards.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/Forwards.cs @@ -7,7 +7,6 @@ // real assembly and the reference assembly. // -using System; using System.Runtime.CompilerServices; [assembly: TypeForwardedTo(typeof(System.Windows.Automation.Provider.IRawElementProviderSimple))] diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/MS/Internal/Automation/UiaCoreProviderApi.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/MS/Internal/Automation/UiaCoreProviderApi.cs index 51c16037cec..ed3b71d256f 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/MS/Internal/Automation/UiaCoreProviderApi.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/MS/Internal/Automation/UiaCoreProviderApi.cs @@ -5,7 +5,6 @@ // Description: Imports from unmanaged UiaCore DLL using System; -using System.Security; using System.Windows.Automation; using System.Windows.Automation.Provider; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/AutomationInteropProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/AutomationInteropProvider.cs index 0a1ddf3007d..774642ff5b4 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/AutomationInteropProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/AutomationInteropProvider.cs @@ -7,8 +7,6 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; -using System.Windows.Automation; using MS.Internal.Automation; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IDockProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IDockProvider.cs index d80d84db1c3..a53d233b1c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IDockProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IDockProvider.cs @@ -4,8 +4,6 @@ // Description: Dock pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IExpandCollapseProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IExpandCollapseProvider.cs index c882706f296..53e7c553f56 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IExpandCollapseProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IExpandCollapseProvider.cs @@ -4,8 +4,6 @@ // Description: Expand Collapse pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IGridItemProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IGridItemProvider.cs index fefe3a4f389..60aed8522eb 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IGridItemProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IGridItemProvider.cs @@ -4,8 +4,6 @@ // Description: Grid Item pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IGridProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IGridProvider.cs index d0305c58ef5..4626b4a5819 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IGridProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IGridProvider.cs @@ -4,8 +4,6 @@ // Description: Grid pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IInvokeProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IInvokeProvider.cs index b7145aa2825..fa3a4449e6c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IInvokeProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IInvokeProvider.cs @@ -4,8 +4,6 @@ // Description: Invoke pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IItemContainerProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IItemContainerProvider.cs index be8b0ff4561..ebf05f3664f 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IItemContainerProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IItemContainerProvider.cs @@ -4,8 +4,6 @@ // Description: Item Container pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IMultipleViewProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IMultipleViewProvider.cs index 010c60b30c8..388b6e6d444 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IMultipleViewProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IMultipleViewProvider.cs @@ -4,8 +4,6 @@ // Description: Multiple View pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRangeValueProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRangeValueProvider.cs index f390ddbb822..a6fdf981ae5 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRangeValueProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRangeValueProvider.cs @@ -4,8 +4,6 @@ // Description: Range Value pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderAdviseEvents.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderAdviseEvents.cs index 97c503e18e4..ab1666a6074 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderAdviseEvents.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderAdviseEvents.cs @@ -4,8 +4,6 @@ // Description: Provider interface for UI that raises events -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderFragment.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderFragment.cs index 8c7f447f5ec..0d1168c0aa2 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderFragment.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderFragment.cs @@ -4,8 +4,6 @@ // Description: Provider side interface for n-level UI -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderFragmentRoot.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderFragmentRoot.cs index 7217b574c6a..d8578fc7e5a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderFragmentRoot.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderFragmentRoot.cs @@ -4,8 +4,6 @@ // Description: Root provider interface for n-level UI -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderHwndOverride.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderHwndOverride.cs index 45aa6c24a4d..5e2008c7fb5 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderHwndOverride.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IRawElementProviderHwndOverride.cs @@ -4,8 +4,6 @@ // Description: Provider interface that allows for overriding HWND-based UI -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IScrollItemProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IScrollItemProvider.cs index 970b8dcd5f3..4e1e13dc363 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IScrollItemProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IScrollItemProvider.cs @@ -4,8 +4,6 @@ // Description: ScrollItem pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IScrollProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IScrollProvider.cs index 3877f8c2b75..ec28a95b083 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IScrollProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IScrollProvider.cs @@ -4,8 +4,6 @@ // Description: Scroll pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISelectionItemProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISelectionItemProvider.cs index 3552d2ad184..2a5c86db2c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISelectionItemProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISelectionItemProvider.cs @@ -4,9 +4,6 @@ // Description: Selection Item pattern provider interface -using System; -using System.Collections; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISelectionProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISelectionProvider.cs index 05506deffce..207f4dfb14a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISelectionProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISelectionProvider.cs @@ -4,10 +4,6 @@ // Description: Selection pattern provider interface -using System; -using System.Collections; -using System.Windows.Automation; -using System.ComponentModel; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISynchronizedInputProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISynchronizedInputProvider.cs index 8ba12f3c242..ade2fc2effa 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISynchronizedInputProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ISynchronizedInputProvider.cs @@ -4,14 +4,12 @@ // Description: SynchronizedInput control pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider { - + /// /// Interface implemented by peers which support synchronized input /// diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITableItemProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITableItemProvider.cs index 6dc1c1dd147..f4e555ae5f1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITableItemProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITableItemProvider.cs @@ -4,8 +4,6 @@ // Description: Table Item pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITableProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITableProvider.cs index 534a37d3349..7a2a2318d0c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITableProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITableProvider.cs @@ -4,8 +4,6 @@ // Description: Table pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITextProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITextProvider.cs index 158e4b38d5b..abe154f79b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITextProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITextProvider.cs @@ -6,10 +6,7 @@ // // -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; -using System.Windows.Automation.Text; namespace System.Windows.Automation.Provider { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IToggleProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IToggleProvider.cs index 115e4c48d05..cd972bf4f2f 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IToggleProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IToggleProvider.cs @@ -4,8 +4,6 @@ // Description: Toggle pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITransformProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITransformProvider.cs index 1b1f659dc6d..34b63667a29 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITransformProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/ITransformProvider.cs @@ -4,8 +4,6 @@ // Description: Transform pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IValueProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IValueProvider.cs index 0affd967bee..19748723678 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IValueProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IValueProvider.cs @@ -4,8 +4,6 @@ // Description: Value pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IVirtualizedItemProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IVirtualizedItemProvider.cs index c9a9b935018..192e504addc 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IVirtualizedItemProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IVirtualizedItemProvider.cs @@ -4,8 +4,6 @@ // Description: Virtualized Item pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IWindowProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IWindowProvider.cs index 0ab8e7dd9c6..2ac0f9fd1c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IWindowProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationProvider/System/Windows/Automation/Provider/IWindowProvider.cs @@ -4,8 +4,6 @@ // Description: Window pattern provider interface -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation.Provider diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/MS/Internal/Automation/AutomationIdentifierConstants.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/MS/Internal/Automation/AutomationIdentifierConstants.cs index 71a380baa13..0a2f5e2026c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/MS/Internal/Automation/AutomationIdentifierConstants.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/MS/Internal/Automation/AutomationIdentifierConstants.cs @@ -9,8 +9,6 @@ // -using System; -using System.Security; using MS.Internal.UIAutomationTypes.Interop; namespace MS.Internal.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/MS/Internal/Automation/UiaCoreTypesApi.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/MS/Internal/Automation/UiaCoreTypesApi.cs index c222471d20f..705253e99c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/MS/Internal/Automation/UiaCoreTypesApi.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/MS/Internal/Automation/UiaCoreTypesApi.cs @@ -6,7 +6,6 @@ using System; -using System.Security; using System.Runtime.InteropServices; using MS.Internal.UIAutomationTypes; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ActiveTextPositionChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ActiveTextPositionChangedEventArgs.cs index 9022445ae87..b6f6eb68fb8 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ActiveTextPositionChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ActiveTextPositionChangedEventArgs.cs @@ -4,8 +4,6 @@ // Description: ActiveTextPositionChangedEventArgs event args class -using System; -using System.Windows.Automation; using System.Windows.Automation.Provider; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AsyncContentLoadedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AsyncContentLoadedEventArgs.cs index d1102c6bd5d..b877f7061fa 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AsyncContentLoadedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AsyncContentLoadedEventArgs.cs @@ -9,10 +9,7 @@ // // -using System; -using System.Windows.Automation; - -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// AsyncContentLoadedEventArgs event args class diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AsyncContentLoadedState.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AsyncContentLoadedState.cs index fdd650ffd5d..16a72030988 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AsyncContentLoadedState.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AsyncContentLoadedState.cs @@ -4,10 +4,9 @@ // Description: Async content loaded state flags -using System; using System.Runtime.InteropServices; -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// Used to represent state when content is asynchronously loading into an element. diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationElementIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationElementIdentifiers.cs index 850fc635ba5..b65f88d866b 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationElementIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationElementIdentifiers.cs @@ -4,10 +4,6 @@ // Description: All the Constants that used to be on AutomationElement -using System.Windows.Automation; -using System.Collections; -using System.Collections.Specialized; -using System.ComponentModel; using MS.Internal.Automation; #if EVENT_TRACING_PROPERTY diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationEvent.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationEvent.cs index 74305b239fb..52aaf45c487 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationEvent.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationEvent.cs @@ -4,7 +4,6 @@ // Description: Identifier for Automation Events -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationEventArgs.cs index fb2a5693088..aca4c9480d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationEventArgs.cs @@ -4,10 +4,7 @@ // Description: Pattern or custom event args class -using System; -using System.Windows.Automation; - -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// Delegate to handle AutomationEvents diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationIdentifier.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationIdentifier.cs index ca135cbbb83..46b266077a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationIdentifier.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationIdentifier.cs @@ -5,11 +5,9 @@ // Description: Base class for Automation Idenfitiers (Property, Event, etc.) -using System; using System.Collections; using System.Diagnostics; using MS.Internal.Automation; -using MS.Internal.UIAutomationTypes.Interop; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationPattern.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationPattern.cs index 7ba2b21f497..c98d4fd0179 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationPattern.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationPattern.cs @@ -5,7 +5,6 @@ // Description: Identifier for Automation Patterns -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationProperty.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationProperty.cs index b7c48e08f9d..6c7a7190810 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationProperty.cs @@ -5,7 +5,6 @@ // Description: Identifier for Automation Properties -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationPropertyChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationPropertyChangedEventArgs.cs index fa87fab50dd..01b68e56fa9 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationPropertyChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationPropertyChangedEventArgs.cs @@ -4,10 +4,7 @@ // Description: PropertyChanged event args class -using System; -using System.Windows.Automation; - -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// Delegate to handle Automation Property change events diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationTextAttribute.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationTextAttribute.cs index 271333b383f..2929cbca2df 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationTextAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/AutomationTextAttribute.cs @@ -5,7 +5,6 @@ // Description: Identifier for Automation Text Attributes -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ControlType.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ControlType.cs index 2edb441a1b5..2d09ab61680 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ControlType.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ControlType.cs @@ -5,7 +5,6 @@ // Description: Identifier for Automation ControlTypes -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/DockPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/DockPatternIdentifiers.cs index 1da3e8b8d39..e3a43ae55d3 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/DockPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/DockPatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for Dock Pattern -using System; using MS.Internal.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ElementNotAvailableException.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ElementNotAvailableException.cs index fd6356649fb..552fc0dbef0 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ElementNotAvailableException.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ElementNotAvailableException.cs @@ -4,10 +4,7 @@ // Description: Exception indicating that a clickable point could not be found -using System.Windows.Automation; -using System; using System.Runtime.Serialization; -using System.Security; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ElementNotEnabledException.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ElementNotEnabledException.cs index 27b2d0faff1..2ed14c5271c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ElementNotEnabledException.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ElementNotEnabledException.cs @@ -5,10 +5,7 @@ // Description: Exception thrown when client attemps to interact with a non- // enabled control (eg. Invoke a non-enabled button) -using System.Windows.Automation; -using System; using System.Runtime.Serialization; -using System.Security; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ExpandCollapsePatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ExpandCollapsePatternIdentifiers.cs index 0f63efb47bb..b2fc16e941d 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ExpandCollapsePatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ExpandCollapsePatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for ExpandCollapse Pattern -using System; using MS.Internal.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/GridItemPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/GridItemPatternIdentifiers.cs index 4aa1a0b307f..405a9a6163f 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/GridItemPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/GridItemPatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for GridItem Pattern -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/GridPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/GridPatternIdentifiers.cs index aaed78d4460..23a50544ac0 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/GridPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/GridPatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for Grid Pattern -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/InvokePatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/InvokePatternIdentifiers.cs index b5924a829d9..03181371fad 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/InvokePatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/InvokePatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for Invoke Pattern -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ItemContainerPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ItemContainerPatternIdentifiers.cs index ef029e43ccb..cadaac7d07a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ItemContainerPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ItemContainerPatternIdentifiers.cs @@ -4,9 +4,7 @@ // Description: Automation Identifiers for ItemContainer Pattern -using System; using MS.Internal.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/MultipleViewPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/MultipleViewPatternIdentifiers.cs index 3c219f75aed..483d8e91f9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/MultipleViewPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/MultipleViewPatternIdentifiers.cs @@ -4,12 +4,11 @@ // Description: Automation Identifiers for MultipleView Pattern -using System; using MS.Internal.Automation; namespace System.Windows.Automation { - + ///wrapper class for MultipleView pattern #if (INTERNAL_COMPILE) internal static class MultipleViewPatternIdentifiers diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/NoClickablePointException.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/NoClickablePointException.cs index 973e9720982..f4b94a9e106 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/NoClickablePointException.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/NoClickablePointException.cs @@ -4,11 +4,7 @@ // Description: Exception indicating that a clickable point could not be found -using System.Windows.Automation; -using System; using System.Runtime.Serialization; -using System.Security; -using MS.Internal.Automation; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/NotificationEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/NotificationEventArgs.cs index 8965f9969d6..9f0ccc9309e 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/NotificationEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/NotificationEventArgs.cs @@ -4,9 +4,6 @@ // Description: NotificationEventArgs event args class -using System; -using System.Windows.Automation; - namespace System.Windows.Automation { /// diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/OrientationType.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/OrientationType.cs index c41b5b28a2f..6c4759d2060 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/OrientationType.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/OrientationType.cs @@ -5,10 +5,9 @@ // Description: Orientation types -using System; using System.Runtime.InteropServices; -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// Used to represent Orientation property enumerated types. diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Provider/IRawElementProviderSimple.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Provider/IRawElementProviderSimple.cs index 303114c0f3a..701ef6366f1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Provider/IRawElementProviderSimple.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Provider/IRawElementProviderSimple.cs @@ -4,8 +4,6 @@ // Description: Basic Provider-side interface for 1-level UI -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Provider/ITextRangeProvider.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Provider/ITextRangeProvider.cs index 0822355ba71..7ce958985a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Provider/ITextRangeProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Provider/ITextRangeProvider.cs @@ -4,9 +4,6 @@ // Description: Interface exposes a control's ability to manipulate text ranges -using System; -using System.Collections; -using System.Windows.Automation; using System.Windows.Automation.Text; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ProxyAssemblyNotLoadedException.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ProxyAssemblyNotLoadedException.cs index 93751443827..017c5b44dd9 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ProxyAssemblyNotLoadedException.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ProxyAssemblyNotLoadedException.cs @@ -5,17 +5,11 @@ // Description: Exception thrown when proxy assembly is requried but not yet loaded -using System.Windows.Automation; -using System; -using System.Text; //using System.Globalization; //using System.Collections; -using MS.Internal; //using System.Runtime.InteropServices; -using System.Reflection; //using System.Diagnostics; using System.Runtime.Serialization; -using System.Security; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/RangeValuePatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/RangeValuePatternIdentifiers.cs index c60f2f00330..f05da904868 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/RangeValuePatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/RangeValuePatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for RangeValue Pattern -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ScrollItemPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ScrollItemPatternIdentifiers.cs index abba28618af..7ee5ed1e5d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ScrollItemPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ScrollItemPatternIdentifiers.cs @@ -4,9 +4,7 @@ // Description: Automation Identifiers for ScrollItem Pattern -using System; using MS.Internal.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ScrollPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ScrollPatternIdentifiers.cs index 18407c2f2e8..65ebbf57fa5 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ScrollPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ScrollPatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for Scroll Pattern -using System; using MS.Internal.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SelectionItemPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SelectionItemPatternIdentifiers.cs index 1d0647a5eda..c760e416d1a 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SelectionItemPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SelectionItemPatternIdentifiers.cs @@ -4,8 +4,6 @@ // Description: Automation Identifiers for SelectionItem Pattern -using System; -using System.Collections; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SelectionPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SelectionPatternIdentifiers.cs index 7088d6b4fd5..7a132406f2e 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SelectionPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SelectionPatternIdentifiers.cs @@ -4,9 +4,6 @@ // Description: Automation Identifiers for Selection Pattern -using System; -using System.Collections; -using System.ComponentModel; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/StructureChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/StructureChangedEventArgs.cs index 4dc5c98f846..88acfc069a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/StructureChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/StructureChangedEventArgs.cs @@ -10,12 +10,9 @@ // // -using System; -using System.Windows.Automation; using System.Runtime.InteropServices; -using MS.Internal.Automation; -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// Delegate to handle logical structure change events diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SynchronizedInputPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SynchronizedInputPatternIdentifiers.cs index 7c4671dbe5e..4f3e7b5bd4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SynchronizedInputPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/SynchronizedInputPatternIdentifiers.cs @@ -4,9 +4,6 @@ // Description: Automation Identifiers for SynchronizedInput Pattern -using System; -using System.Collections; -using System.ComponentModel; using MS.Internal.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TableItemPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TableItemPatternIdentifiers.cs index 4deb7ab86fe..c169cb8d6d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TableItemPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TableItemPatternIdentifiers.cs @@ -5,7 +5,6 @@ // Description: Automation Identifiers for TableItem Pattern -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TablePatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TablePatternIdentifiers.cs index fc7dcd00903..e21073eeb96 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TablePatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TablePatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for Table Pattern -using System; using MS.Internal.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Text/TextEnums.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Text/TextEnums.cs index cd5528f2673..4e26883eba9 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Text/TextEnums.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/Text/TextEnums.cs @@ -11,11 +11,7 @@ // PRESHARP: In order to avoid generating warnings about unkown message numbers and unknown pragmas. #pragma warning disable 1634, 1691 -using System; -using System.Collections; -using System.Diagnostics; using System.Runtime.InteropServices; -using MS.Internal.Automation; namespace System.Windows.Automation.Text { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TextPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TextPatternIdentifiers.cs index 8d5203c347c..18cccd152d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TextPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TextPatternIdentifiers.cs @@ -4,8 +4,6 @@ // Description: Automation Identifiers for Text pattern -using System; -using System.Diagnostics; using System.Runtime.InteropServices; using MS.Internal.Automation; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TogglePatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TogglePatternIdentifiers.cs index 687ec5f7fe9..e920d462912 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TogglePatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TogglePatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for Toggle Pattern -using System; using MS.Internal.Automation; using System.Runtime.InteropServices; diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TransformPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TransformPatternIdentifiers.cs index 0059b8947db..aa7ac37c8c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TransformPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TransformPatternIdentifiers.cs @@ -4,12 +4,11 @@ // Description: Automation Identifiers for Transform Pattern -using System; using MS.Internal.Automation; namespace System.Windows.Automation { - + ///wrapper class for Transform pattern #if (INTERNAL_COMPILE) internal static class TransformPatternIdentifiers diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TreeScope.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TreeScope.cs index 0ab4d8fa751..5d0d3ba39b6 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TreeScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/TreeScope.cs @@ -4,9 +4,7 @@ // Description: TreeScope flags for listening to events -using System; - -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// TreeScope flags for listening to events diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ValuePatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ValuePatternIdentifiers.cs index 835845df4e7..be7fcc7f66c 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ValuePatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/ValuePatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for Value Pattern -using System; using MS.Internal.Automation; namespace System.Windows.Automation diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/VirtualizedItemPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/VirtualizedItemPatternIdentifiers.cs index ccfd1def348..b5641c13cd7 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/VirtualizedItemPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/VirtualizedItemPatternIdentifiers.cs @@ -4,9 +4,7 @@ // Description: Automation Identifiers for VirtualizedItem Pattern -using System; using MS.Internal.Automation; -using System.Runtime.InteropServices; namespace System.Windows.Automation { diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/WindowClosedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/WindowClosedEventArgs.cs index 77600c6e802..2d81e93af30 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/WindowClosedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/WindowClosedEventArgs.cs @@ -4,11 +4,7 @@ // Description: WindowClosedEventArgs event args class -using System; -using System.Windows.Automation; -using MS.Internal.Automation; - -namespace System.Windows.Automation +namespace System.Windows.Automation { /// /// WindowClosedEventArgs event args class diff --git a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/WindowPatternIdentifiers.cs b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/WindowPatternIdentifiers.cs index 7bd21379335..d6c97e53bf3 100644 --- a/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/WindowPatternIdentifiers.cs +++ b/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationTypes/System/Windows/Automation/WindowPatternIdentifiers.cs @@ -4,7 +4,6 @@ // Description: Automation Identifiers for Window Pattern -using System; using MS.Internal.Automation; using System.Runtime.InteropServices; @@ -12,7 +11,7 @@ namespace System.Windows.Automation { // Disable warning for obsolete types. These are scheduled to be removed in M8.2 so // only need the warning to come out for components outside of APT. - #pragma warning disable 0618 +#pragma warning disable 0618 /// /// following the Office and HTML definition of WindowState. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/GlobalUsings.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/GlobalUsings.cs new file mode 100644 index 00000000000..c95850cadaf --- /dev/null +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/GlobalUsings.cs @@ -0,0 +1,12 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +global using System; +global using System.Collections.Generic; +global using System.Diagnostics; + +global using SR = MS.Internal.WindowsBase.SR; + +global using NativeMethodsSetLastError = MS.Internal.WindowsBase.NativeMethodsSetLastError; +global using DllImport = MS.Internal.WindowsBase.DllImport; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AssemblyHelper.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AssemblyHelper.cs index 5730c149ceb..4462730f3c8 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AssemblyHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AssemblyHelper.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: services for code that potentially loads uncommon assemblies. -// /* Most of the WPF codebase uses types from WPF's own assemblies or from certain @@ -22,12 +19,8 @@ The helper classes check whether the uncommon assembly is loaded before loading the extension assembly. */ -using System; -using System.IO; // FileNotFoundException -using System.Reflection; // Assembly -using System.Security; // - -using MS.Internal.WindowsBase; // BuildInfo +using System.Reflection; +using MS.Internal.WindowsBase; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTrace.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTrace.cs index 8bb1e7a8b41..51e6218c9bb 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTrace.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTrace.cs @@ -2,27 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -/***************************************************************************\ -* -* -* This class wraps a System.Diagnostics.TraceSource. The purpose of -* wrapping is so that we can have a common point of enabling/disabling -* without perf effect. This is also where we standardize the output -* we produce, to enable more effective trace filters, trace listeners, -* and post-processing tools. -* -* -\***************************************************************************/ +// This class wraps a System.Diagnostics.TraceSource. The purpose of +// wrapping is so that we can have a common point of enabling/disabling +// without perf effect. This is also where we standardize the output +// we produce, to enable more effective trace filters, trace listeners, +// and post-processing tools. #define TRACE -using System; -using System.Diagnostics; using System.Globalization; -using System.Security; using System.Text; -using System.Reflection; using System.Collections; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTraceDetails.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTraceDetails.cs index fba1a40e25b..6b0667e87bc 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTraceDetails.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTraceDetails.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -/***************************************************************************\ -* -* -* -\***************************************************************************/ - - namespace MS.Internal { // This class represents the details of a single trace (the ID and message strings). diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTraceFormat.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTraceFormat.cs index 9deb4e69a7d..100459204d7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTraceFormat.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AvTraceFormat.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -/***************************************************************************\ -* -* -* -\***************************************************************************/ - - namespace MS.Internal { // This class represents the details of a single trace (the ID, a formatted message string, and parameter labels). diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/BaseHashHelper.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/BaseHashHelper.cs deleted file mode 100644 index cbaf4dc4de6..00000000000 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/BaseHashHelper.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// -// -// -// Description: Static class to help work around hashing-related bugs. -// - -using System; -using System.Reflection; // Assembly -using System.Collections.Specialized; // HybridDictionary - -namespace MS.Internal -{ - internal static class BaseHashHelper - { - static BaseHashHelper() - { - // register bad types from WindowsBase - MS.Internal.Hashing.WindowsBase.HashHelper.Initialize(); - } - - internal static void RegisterTypes(Assembly assembly, Type[] types) - { - HybridDictionary dictionary = DictionaryFromList(types); - - lock(_table) - { - _table[assembly] = dictionary; - } - } - - // Some types don't have reliable hash codes - the hashcode can change - // during the lifetime of an object of that type. Such an object cannot - // be used as the key of a hashtable or dictionary. This is where we - // detect such objects, so the caller can find some other way to cope. - internal static bool HasReliableHashCode(object item) - { - // null doesn't actually have a hashcode at all. This method can be - // called with a representative item from a collection - if the - // representative is null, we'll be pessimistic and assume the - // items in the collection should not be hashed. - if (item == null) - return false; - - Type type = item.GetType(); - Assembly assembly = type.Assembly; - HybridDictionary dictionary; - - lock(_table) - { - dictionary = (HybridDictionary)_table[assembly]; - } - - if (dictionary == null) - { - dictionary = new HybridDictionary(); - - lock(_table) - { - _table[assembly] = dictionary; - } - } - - return !dictionary.Contains(type); - } - - // populate a dictionary from the given list - private static HybridDictionary DictionaryFromList(Type[] types) - { - HybridDictionary dictionary = new HybridDictionary(types.Length); - for (int i=0; i -using System.Collections.Specialized; // HybridDictionary -using System.Runtime.CompilerServices; // RuntimeHelpers -using System.Security; // -using System.Threading; // [ThreadStatic] -using System.Windows; // WeakEventManager -using System.Windows.Threading; // DispatcherObject -using MS.Utility; // FrugalList + +using System.Threading; +using System.Windows.Threading; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/APCustomTypeDescriptor.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/APCustomTypeDescriptor.cs index 40f83a1614c..a2cc9622fb8 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/APCustomTypeDescriptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/APCustomTypeDescriptor.cs @@ -2,20 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.ComponentModel; +using System.Windows; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Reflection; - using System.Windows; - using System.Windows.Markup; - using System.Text; - - /// /// This class is a custom type descriptor for attached dependency properties. We /// could just inherit from the CustomTypeDescriptor class, which does most of the forwarding diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/AttachInfo.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/AttachInfo.cs index 01897f44966..193be0a49c9 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/AttachInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/AttachInfo.cs @@ -2,17 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.ComponentModel; +using System.Reflection; +using System.Windows; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Reflection; - using System.Windows; - - /// /// This class contains information about an attached property. It can /// tell you if the property can be attached to a given object. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/AttachedPropertyMethodSelector.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/AttachedPropertyMethodSelector.cs index cc3736c9b1f..24cb671ad08 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/AttachedPropertyMethodSelector.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/AttachedPropertyMethodSelector.cs @@ -2,17 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Globalization; +using System.Reflection; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Globalization; - using System.Reflection; - using System.Windows; - /// /// This is a reflection binder that is used to /// find the right method match for attached properties. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DPCustomTypeDescriptor.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DPCustomTypeDescriptor.cs index be1f5ed3727..970276ad2f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DPCustomTypeDescriptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DPCustomTypeDescriptor.cs @@ -2,20 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; +using System.ComponentModel; +using System.Windows; +using System.Windows.Markup; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Reflection; - using System.Windows; - using System.Windows.Markup; - using System.Text; - - /// /// This class is a custom type descriptor for dependency properties. We could simply /// derive from the CustomTypeDescriptor class, but because these are allocated a lot diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyObjectPropertyDescriptor.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyObjectPropertyDescriptor.cs index 6c428e3bda2..2545abbca9d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyObjectPropertyDescriptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyObjectPropertyDescriptor.cs @@ -2,21 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; +using System.ComponentModel; +using System.Reflection; +using System.Windows; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Globalization; - using System.Reflection; - using System.Windows; - using System.Security; - using MS.Internal.WindowsBase; - - /// /// An inplementation of a property descriptor for DependencyProperties. /// This supports both normal and attached properties. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyObjectProvider.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyObjectProvider.cs index db847a96dde..c157123984d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyObjectProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyObjectProvider.cs @@ -2,20 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections; +using System.ComponentModel; +using System.Windows; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using MS.Internal.ComponentModel; - using System; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Reflection; - using System.Windows; - using System.Windows.Markup; - using System.Text; - /// /// A type description provider provides metadata for types. It allows a type /// to define its own semantic layer for properties, events and attributes. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyPropertyAttribute.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyPropertyAttribute.cs index 924935cad3b..51ae8f9d290 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyPropertyAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyPropertyAttribute.cs @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows; namespace MS.Internal.ComponentModel { - using System; - using System.Windows; - /// /// This attribute is synthesized by our DependencyObjectProvider /// to relate a property descriptor back to a dependency property. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyPropertyKind.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyPropertyKind.cs index 53b85e9dcce..31e3cafd8c5 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyPropertyKind.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/DependencyPropertyKind.cs @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Windows; - // // Determines what kind of DP we are dealing with. DependencyPropertyKind // is associated with a target type and a DP. It calculates IsAttached diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyChangeTracker.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyChangeTracker.cs index a6a0fd627a6..eca84d0b169 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyChangeTracker.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyChangeTracker.cs @@ -2,17 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics; - using System.Globalization; - using System.Reflection; - using System.Windows; - /// /// A change tracking expression that is used to raise property change events. /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyDescriptorComparer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyDescriptorComparer.cs index dd11e982f98..ed41d94adfc 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyDescriptorComparer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyDescriptorComparer.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.ComponentModel; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Collections.Generic; - using System.ComponentModel; - // This is a hashcode comparer we use to key property descriptors. We // want property descriptors keyed off of reference equality. // diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyKey.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyKey.cs index 2e3fb42217f..985c268986f 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ComponentModel/PropertyKey.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Windows; -namespace MS.Internal.ComponentModel +namespace MS.Internal.ComponentModel { - using System; - using System.Collections.Generic; - using System.Windows; - // This structure is used as a key in a dictionary of property key -> property descriptor // The key is unique based on the type the property is attached to, and the property // itself. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ContentType.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ContentType.cs index b46b1c5a53b..ca8e843bf86 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ContentType.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ContentType.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // ContentType class parses and validates the content-type string. // It provides functionality to compare the type/subtype values. @@ -41,17 +39,8 @@ // CRLF = CR LF // Linear white space (LWS) MUST NOT be used between the type and subtype, nor // between an attribute and its value. Leading and trailing LWS are prohibited. -// -// -// -// -using System; -using System.Collections.Generic; // For Dictionary -using System.Text; // For StringBuilder -using System.Windows; // For Exception strings - SR -using MS.Internal.WindowsBase; -using System.Diagnostics; // For Debug.Assert +using System.Text; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/DefaultValueFactory.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/DefaultValueFactory.cs index 9d478ccb19f..1ac71e5f46c 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/DefaultValueFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/DefaultValueFactory.cs @@ -1,44 +1,39 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// -// -// Description: Abstract base class for all default value factories -// - -using System; -using System.Windows; - -namespace MS.Internal -{ - // - // Abstract base class for all DefaultValueFactory implementations. Default - // value factories may be registered with the property metadata in place of - // a default value instance. When the property system resolve the default - // value for a DP on a DO the factory’s CreateDefaultValue() method will be - // invoked. The result will be cached per DP per DO. Part of this pattern - // is to get past the requirement that all DefaultValues be free-threaded. - // For example, this allows using unfrozen Freezables as default values. - // - // For this to work it is expected that CreateDefaultValue returns a default - // value with either no thread affinity or (if it derives from DispatcherObject) - // with thread affinity to the currently executing thread. - // This is done by simply creating a new instance of the default value type in - // the call to CreateDefaultValue. - // - internal abstract class DefaultValueFactory - { - /// - /// See PropertyMetadata.DefaultValue - /// - internal abstract object DefaultValue - { - get; } - - /// - /// See PropertyMetadata.CreateDefaultValue - /// - internal abstract object CreateDefaultValue(DependencyObject owner, DependencyProperty property); - } -} +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Windows; + +namespace MS.Internal +{ + // + // Abstract base class for all DefaultValueFactory implementations. Default + // value factories may be registered with the property metadata in place of + // a default value instance. When the property system resolve the default + // value for a DP on a DO the factory’s CreateDefaultValue() method will be + // invoked. The result will be cached per DP per DO. Part of this pattern + // is to get past the requirement that all DefaultValues be free-threaded. + // For example, this allows using unfrozen Freezables as default values. + // + // For this to work it is expected that CreateDefaultValue returns a default + // value with either no thread affinity or (if it derives from DispatcherObject) + // with thread affinity to the currently executing thread. + // This is done by simply creating a new instance of the default value type in + // the call to CreateDefaultValue. + // + internal abstract class DefaultValueFactory + { + /// + /// See PropertyMetadata.DefaultValue + /// + internal abstract object DefaultValue + { + get; +} + + /// + /// See PropertyMetadata.CreateDefaultValue + /// + internal abstract object CreateDefaultValue(DependencyObject owner, DependencyProperty property); + } +} diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/FreezableDefaultValueFactory.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/FreezableDefaultValueFactory.cs index 9991531151a..3ad6f21d37f 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/FreezableDefaultValueFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/FreezableDefaultValueFactory.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: DefaultvalueFactory for Freezables -// - -using System; -using System.Diagnostics; using System.Windows; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Generated/AvTraceMessages.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Generated/AvTraceMessages.cs index b5d51133c8c..7f407657512 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Generated/AvTraceMessages.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Generated/AvTraceMessages.cs @@ -5,9 +5,6 @@ // NOTE: This file was generated by $(WpfCodeGenDir)AvTrace\AvTraceMessages.tt. // Any manual updates to this file will overwritten. -using System; -using System.Diagnostics; - namespace MS.Internal { static internal partial class TraceDependencyProperty diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/GenericsInstances.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/GenericsInstances.cs index 53b291f40db..b07b9b458da 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/GenericsInstances.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/GenericsInstances.cs @@ -2,20 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: defining types with Generics in WindowsBase.dll that are only // instantiated in PresentationCore/-Framework assemblies need a dummy // instantiation in this assembly to trigger proper ngen when WB.dll // is installed. // This prevents JIT-ing when WB.dll is loaded. -// -using System; -using System.Collections; using System.Collections.ObjectModel; -using System.ComponentModel; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/Certificate.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/Certificate.cs index 84747a37c2c..a6d1c472406 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/Certificate.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/Certificate.cs @@ -2,23 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Handles serialization to/from X509 Certificate part (X509v3 = ASN.1 DER format) -// -// -// -// -using System; -using System.Diagnostics; // for Assert using System.Security.Cryptography.X509Certificates; -using System.Windows; // For Exception strings - SR -using System.IO.Packaging; +using System.IO.Packaging; using System.IO; // for Stream -using MS.Internal; // For ContentType -using MS.Internal.WindowsBase; using MS.Internal.IO.Packaging.Extensions; namespace MS.Internal.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CFStream.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CFStream.cs index 4d87eb1f0d2..9ec4a1919b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CFStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CFStream.cs @@ -2,31 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Stream interface for manipulating data within a container stream. -// -// -// -// -// -// - -using System; + using System.IO; -using System.Runtime.InteropServices; using System.IO.Packaging; -using MS.Internal.WindowsBase; - -using System.Windows; namespace MS.Internal.IO.Packaging.CompoundFile { -/// -/// Class for manipulating data within container streams -/// -internal class CFStream : Stream + /// + /// Class for manipulating data within container streams + /// + internal class CFStream : Stream { //------------------------------------------------------ // diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileDeflateTransform.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileDeflateTransform.cs index 93ec5ac2bee..856db6e2e88 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileDeflateTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileDeflateTransform.cs @@ -2,27 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Implementation of a helper class that provides a fully functional Stream on unmanaged ZLib in a fashion // consistent with Office and RMA (see Creating Rights-Managed HTML Files at // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rma/introduction.asp). -// -// #pragma warning disable 1634, 1691 -using System; using System.IO; -using System.Diagnostics; using System.IO.Compression; -using System.IO.Packaging; -using System.Windows; using System.Runtime.InteropServices; // for Marshal class -using MS.Internal.IO.Packaging; // for PackagingUtilities -using System.Security; // for SecurityCritical and SecurityTreatAsSafe -using MS.Internal.WindowsBase; using static Interop.Zlib; // workaround namespace collision with MS.Internal.interop namespace MS.Internal.IO.Packaging.CompoundFile diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileReference.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileReference.cs index edbe540d0c2..f68e00213cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileReference.cs @@ -2,25 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Implementation of the CompoundFileReference base class. -// - // Notes: // Persistence of specific classes is mostly hard-coded in this base class because // the persistence must follow a shared binary implementation with Office. It is // also intentionally not polymorphic because we don't allow arbitrary subclasses // to participate. -using System; -using System.Collections.Specialized; // for StringCollection class +using System.Collections.Specialized; using System.IO; -using System.Diagnostics; // for Debug.Assert -using System.Windows; // for SR error message lookup - -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging.CompoundFile { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileStorageReference.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileStorageReference.cs index bbc7aa89e3d..9a9c585c611 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileStorageReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileStorageReference.cs @@ -2,25 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Implementation of the CompoundFileStorageReference class. - -using System; -using System.Collections; -using System.Collections.Specialized; -using System.Globalization; -using System.IO; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Text; - -using System.IO.Packaging; - -using System.Windows; -using MS.Internal.WindowsBase; - namespace MS.Internal.IO.Packaging.CompoundFile { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileStreamReference.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileStreamReference.cs index de611a27b6d..1dd7a7afcab 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileStreamReference.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompoundFileStreamReference.cs @@ -2,19 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Definition of the CompoundFileStreamReference class. - - -using System; -using System.IO; -using System.Text; // for StringBuilder - -using System.Windows; -using MS.Internal.WindowsBase; - namespace MS.Internal.IO.Packaging.CompoundFile { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompressionTransform.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompressionTransform.cs index cb48e448267..7bc5e8eb1ad 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompressionTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/CompressionTransform.cs @@ -2,30 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class implements IDataTransform for the Compression transform. -// -// -// -// -// -// -// -// - -using System; -using System.Collections; // for IDictionary -using System.IO; // for Stream +using System.Collections; +using System.IO; using System.IO.Packaging; -using System.Globalization; // for CultureInfo -using System.Windows; // ExceptionStringTable - -using MS.Internal.IO.Packaging; // CompoundFileEmulationStream -using MS.Internal.IO.Packaging.CompoundFile; - -//using System.Windows; namespace MS.Internal.IO.Packaging.CompoundFile { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/ContainerUtilities.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/ContainerUtilities.cs index 4fee4453460..712c1e1f646 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/ContainerUtilities.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/ContainerUtilities.cs @@ -2,21 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// // Description: // Common container-related operations that can be shared among internal // components. -// using System; using System.Collections; // for IList -using System.Globalization; using System.IO; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; using System.Text; // for StringBuilder using System.Diagnostics; // for Debug.Assert -using System.Security; #if PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/InternalSafeNativeCompoundFileConstants.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/InternalSafeNativeCompoundFileConstants.cs index 332eb4a8475..3a0913cad14 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/InternalSafeNativeCompoundFileConstants.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/InternalSafeNativeCompoundFileConstants.cs @@ -2,18 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // The COM and P/Invoke interop code necessary for the managed compound // file layer to call the existing APIs in OLE32.DLL. // // Constants related to CompoundFile -// - -using System; - namespace MS.Internal.IO.Packaging.CompoundFile { internal static class SafeNativeCompoundFileConstants diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/InternalSafeNativeCompoundFileInterfaces.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/InternalSafeNativeCompoundFileInterfaces.cs index 875416fd1a1..a83b8ca1816 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/InternalSafeNativeCompoundFileInterfaces.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/InternalSafeNativeCompoundFileInterfaces.cs @@ -2,23 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // The COM and P/Invoke interop code necessary for the managed compound // file layer to call the existing APIs in OLE32.DLL. // // The CF interfaces that can be used by the managed CF APis -// - -using System; - -using MS.Internal.Interop; -// For using PreserveSigAttribute Class. using System.Runtime.InteropServices; - namespace MS.Internal.IO.Packaging.CompoundFile { // Partial interface definition for existing IStorage diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/NativeCompoundFileAPIs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/NativeCompoundFileAPIs.cs index 211bd57921b..ed1a90d48b7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/NativeCompoundFileAPIs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/NativeCompoundFileAPIs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // The COM and P/Invoke interop code necessary for the managed compound // file layer to call the existing APIs in OLE32.DLL. @@ -11,16 +9,7 @@ // Note that not everything is properly ported, for example the SNB type // used in several IStorage methods is just ignored. -// - -using System; using System.IO; -using System.Runtime.InteropServices; -using System.Security; -using System.Windows; - -using MS.Internal.Interop; -using MS.Internal.WindowsBase; // for SecurityHelper using CultureInfo = System.Globalization.CultureInfo; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/PrivateUnsafeNativeCompoundFileMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/PrivateUnsafeNativeCompoundFileMethods.cs index 6b71ac8c61b..fc0d445eded 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/PrivateUnsafeNativeCompoundFileMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/PrivateUnsafeNativeCompoundFileMethods.cs @@ -2,34 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // The COM and P/Invoke interop code necessary for the managed compound // file layer to call the existing APIs in OLE32.DLL. // // Note that not everything is properly ported, for example the SNB type // used in several IStorage methods is just ignored. -// -// WARNING: This class should ONLY be access by SafeNativeCompoundFileMethods class -// although this class is marked as "internal". This is only done because -// TAS cannot be set on the individual member level if the entire class is -// marked as SecurityCritical. This class should be treated as if it is a nested -// private class of SafeNativeCompoundfileMethods. -// -// -// -// - -using System; using System.IO; using System.Runtime.InteropServices; -using System.Windows; - -using MS.Internal.Interop; // For PROPSPEC and PROPVARIANT. -using System.Security; -using MS.Internal.WindowsBase; using CultureInfo = System.Globalization.CultureInfo; @@ -37,10 +18,6 @@ namespace MS.Internal.IO.Packaging.CompoundFile { internal static class UnsafeNativeCompoundFileMethods { - ///////////////////////////////////////////////////// - // Security Suppressed APIs - ///////////////////////////////////////////////////// - [DllImport("ole32.dll")] internal static extern int StgCreateDocfileOnILockBytes( UnsafeNativeILockBytes plkbyt, diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/RightsManagementEncryptedStream.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/RightsManagementEncryptedStream.cs index 4e927a0ddbe..918373c7819 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/RightsManagementEncryptedStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/RightsManagementEncryptedStream.cs @@ -2,28 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class implements stream subclass that is responsible for actual encryption decryption -// -// -// -// - - -using System; -using System.Collections; -using System.Diagnostics; using System.IO; -using System.Collections.Generic; // for List<> -using System.IO.Packaging; -using System.Security.Cryptography; using System.Security.RightsManagement; -using MS.Internal.IO.Packaging; - -using System.Windows; -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging.CompoundFile { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/RightsManagementEncryptionTransform.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/RightsManagementEncryptionTransform.cs index a020ac9a4fb..bfa34587233 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/RightsManagementEncryptionTransform.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/RightsManagementEncryptionTransform.cs @@ -2,35 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class implements the RM data transform for a compound file. -// -// -// - - // Allow use of presharp warning numbers [6518] unknown to the compiler #pragma warning disable 1634, 1691 -using System; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Globalization; using System.IO; using System.IO.Packaging; using System.Text; -using System.Windows; using System.Security.RightsManagement; -using MS.Internal.IO.Packaging.CompoundFile; -using MS.Internal.Utility; - using CU = MS.Internal.IO.Packaging.CompoundFile.ContainerUtilities; -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging.CompoundFile { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/StreamWithDictionary.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/StreamWithDictionary.cs index fa54b56208c..da7f1e13b60 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/StreamWithDictionary.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/StreamWithDictionary.cs @@ -2,18 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // The object for wrapping a data stream and its associated context // information dictionary. -// -// -// -// -// -using System; using System.Collections; using System.IO; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/UserUseLicenseDictionaryLoader.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/UserUseLicenseDictionaryLoader.cs index 5b67c4cad57..37ee1c919f8 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/UserUseLicenseDictionaryLoader.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/UserUseLicenseDictionaryLoader.cs @@ -2,30 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This class is a helper to load a set of associations between a user and the use license // granted to that user. -// -// -// -// -// -// - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Specialized; + using System.Text; using System.IO; using System.IO.Packaging; -using System.Windows; using System.Security.RightsManagement; -using MS.Internal; - namespace MS.Internal.IO.Packaging.CompoundFile { internal class UserUseLicenseDictionaryLoader diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/VersionedStream.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/VersionedStream.cs index f8d46ba1125..6abcf140df1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/VersionedStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/VersionedStream.cs @@ -2,21 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This class provides file versioning support for streams provided by // IDataTransform implementations. -// -// -// -// -using System; -using System.IO; // for Stream -using System.Windows; // ExceptionStringTable -using System.Globalization; // for CultureInfo -using MS.Internal.WindowsBase; +using System.IO; namespace MS.Internal.IO.Packaging.CompoundFile { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/VersionedStreamOwner.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/VersionedStreamOwner.cs index 637b2cdf1f0..d2d78ac1886 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/VersionedStreamOwner.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompoundFile/VersionedStreamOwner.cs @@ -2,23 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This class provides file versioning support for streams provided by // IDataTransform implementations and any client code that needs // to store a FormatVersion at the beginning of a stream. -// -// -// -// - -using System; -using System.IO; // for Stream -using System.Windows; // ExceptionStringTable -using System.Globalization; // for CultureInfo -using System.Diagnostics; // for Debug.Assert -using MS.Internal.WindowsBase; + +using System.IO; namespace MS.Internal.IO.Packaging.CompoundFile { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompressEmulationStream.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompressEmulationStream.cs index ea8fb437042..48148be369e 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompressEmulationStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CompressEmulationStream.cs @@ -2,24 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Abstract base class that provides a fully functional Stream on top of different // various compression implementations. -// -// -// - -using System; using System.IO; -using System.IO.Compression; // for DeflateStream -using System.Diagnostics; - -using System.IO.Packaging; -using System.Windows; -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CustomSignedXml.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CustomSignedXml.cs index 76b91d9fedd..ad5b363fb42 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CustomSignedXml.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/CustomSignedXml.cs @@ -2,17 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Wrapper class for existing SignedXml class that works around - -using System; using System.Xml; -using System.Windows; // for SR using System.Security.Cryptography.Xml; -using MS.Internal.WindowsBase; using Microsoft.Win32; // for Registry and RegistryKey classes using System.Globalization; // for CultureInfo diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/DeflateEmulationStream.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/DeflateEmulationStream.cs index ef36ffc9287..77f87fd4634 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/DeflateEmulationStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/DeflateEmulationStream.cs @@ -2,22 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Implementation of a helper class that provides a fully functional Stream on a restricted functionality // Compression stream (System.IO.Compression.DeflateStream). -// -// -// -using System; using System.IO; using System.IO.Compression; // for DeflateStream -using System.Diagnostics; - -using System.IO.Packaging; -using System.Windows; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/ITrackingMemoryStreamFactory.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/ITrackingMemoryStreamFactory.cs index a332d214345..b1c7a4c1f11 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/ITrackingMemoryStreamFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/ITrackingMemoryStreamFactory.cs @@ -2,24 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This is an internal interface that enables the following channels of communications // a) provides CompressStream and FileItemStream with an ability to construct TrackingMemoryStreams // b) it used by the TrackingMemoryStreams, to report their memory usage // b) it used by the Mode Enforcing Streams to report end of operation (that might require an Auto Flush) -// -// -// -// -// -using System; using System.IO; namespace MS.Internal.IO.Packaging -{ +{ /// /// ITrackingMemoryStreamFactory interface is used to enable various modules /// to notify that more memory were possibly allocated and diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/IgnoreFlushAndCloseStream.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/IgnoreFlushAndCloseStream.cs index 3726f7b0090..3fad5672117 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/IgnoreFlushAndCloseStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/IgnoreFlushAndCloseStream.cs @@ -2,21 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: The class is used to wrap a given stream in a way that the Flush // and Close calls to the stream are Ignored. This stream class has been // created specifically for perf improvements for the ZipPackage. -// -// -using System; using System.IO; -using System.Windows; // for ExceptionStringTable -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging -{ +{ /// /// This class ignores all calls to Flush() and Close() methods /// depending on whether the IgnoreFlushAndClose property is set to true diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/InternalRelationshipCollection.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/InternalRelationshipCollection.cs index b13c95a5509..7e9dc8ee882 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/InternalRelationshipCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/InternalRelationshipCollection.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This is a class for representing a PackageRelationshipCollection. This is an internal // class for manipulating relationships associated with a part @@ -12,27 +10,9 @@ // This class handles serialization to/from relationship parts, creation of those parts // and offers methods to create, delete and enumerate relationships. This code was // moved from the PackageRelationshipCollection class. -// -// -// -// -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Xml; // for XmlReader/Writer +using System.Xml; using System.IO.Packaging; -using System.Windows; // For Exception strings - SR -using System.IO; -using System.Diagnostics; -using System.Windows.Markup; // For XMLCompatibilityReader - -using MS.Internal; // For Invariant. -using MS.Internal.WindowsBase; - -using MS.Internal.IO.Packaging.Extensions; -using PackageRelationship = MS.Internal.IO.Packaging.Extensions.PackageRelationship; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/OlePropertyStructs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/OlePropertyStructs.cs index 51e477801fc..bb0cfd4a5e4 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/OlePropertyStructs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/OlePropertyStructs.cs @@ -2,20 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// These structures and constants are managed equivalents to COM structures -// used to access OLE properties. -// -// -// - - -using System; using System.Runtime.InteropServices; - namespace MS.Internal.IO.Packaging { [StructLayout(LayoutKind.Sequential, Pack = 0)] diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PackUriHelper.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PackUriHelper.cs index 9d61276a767..83c2eee57f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PackUriHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PackUriHelper.cs @@ -2,26 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This is a helper class for pack:// Uris. This is a part of the // Metro Packaging Layer -// -// -// -// // Allow use of presharp warning numbers [6506] unknown to the compiler #pragma warning disable 1634, 1691 -using System; using System.IO; // for Path class -using System.Security; -using System.Diagnostics; -using System.Windows; // For Exception strings - SR -using System.Collections.Generic; // For IEqualityComparer<> -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PackagingExtensions.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PackagingExtensions.cs index 0b3ea319622..fd4fea80392 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PackagingExtensions.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PackagingExtensions.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.IO; using System.IO.Packaging; -using System.Text; -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging.Extensions { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PartManifestEntry.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PartManifestEntry.cs index a8086151e92..44f0a15c5fc 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PartManifestEntry.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/PartManifestEntry.cs @@ -2,25 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Simple struct for maintaining information of a Part found in an Xml signature manifest -// -// -// -// -// - -using System; -using System.Diagnostics; -using System.Collections.Generic; -using System.Security.Cryptography; -using System.Security.Cryptography.Xml; -using System.Xml; -using System.Windows; using System.IO.Packaging; -using MS.Internal; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/SparseMemoryStream.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/SparseMemoryStream.cs index 3cb9587e835..1eee09c5430 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/SparseMemoryStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/SparseMemoryStream.cs @@ -2,24 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This is an internal class that is build around ArrayList of Memory streams to enable really large (63 bit size) // virtual streams. -// -// -// -// -// - -using System; -using System.Diagnostics; -using System.Collections.Generic; + using System.IO; -using System.IO.IsolatedStorage; -using System.Windows; -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/StorageBasedPackageProperties.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/StorageBasedPackageProperties.cs index 6251972ed73..2da72ba89a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/StorageBasedPackageProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/StorageBasedPackageProperties.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This class provides access to the package properties of an RM-protected OPC // document. The "package properties" are a subset of the standard OLE property @@ -23,24 +21,13 @@ // It is the responsibility of the application to ensure that the properties in // the OLE property set streams are synchronized with the properties in the // OPC package. -// -// -// -// -// -using System; using System.IO; using System.IO.Packaging; using System.Runtime.InteropServices; -using System.Windows; -using System.Security; // SecurityCritical -using System.Text; //For UTF-8 encoding. - -using MS.Internal; -using MS.Internal.Interop; +using System.Text; using MS.Internal.IO.Packaging.CompoundFile; -using MS.Internal.WindowsBase; //for SecurityHelper. +using MS.Internal.WindowsBase; // Enable presharp pragma warning suppress directives. #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/TrackingMemoryStream.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/TrackingMemoryStream.cs index 78058c6683e..2eb7ebdb9be 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/TrackingMemoryStream.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/TrackingMemoryStream.cs @@ -2,19 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This is a stream that is capable of reporting data usage up to the registered // owner -// -// -// -// -// -using System; -using System.Diagnostics; using System.IO; namespace MS.Internal.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/TrackingMemoryStreamFactory.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/TrackingMemoryStreamFactory.cs index 8a1b0a5ea4c..cad2558bb0d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/TrackingMemoryStreamFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/TrackingMemoryStreamFactory.cs @@ -2,23 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This is a basic implementation of the ITrackingMemoryStreamFactory interface -// -// -// -// - -using System; using System.IO; -using System.Diagnostics; namespace MS.Internal.IO.Packaging -{ +{ /// - /// TrackingMemoryStreamFactory class is used in the Sparse Memory Stream to keep track of the memory Usage + /// TrackingMemoryStreamFactory class is used in the Sparse Memory Stream to keep track of the memory Usage /// internal class TrackingMemoryStreamFactory : ITrackingMemoryStreamFactory { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlDigitalSignatureProcessor.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlDigitalSignatureProcessor.cs index 01b8d38ed82..4e020b7d647 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlDigitalSignatureProcessor.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlDigitalSignatureProcessor.cs @@ -2,23 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// + // Description: // Implementation of the W3C Digital Signature Handler. // Generates and consumes XmlDSig-compliant digital signatures based on the subset // specified by the Opc file format. -// -using System; -using System.Diagnostics; using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Security; // for SecurityCritical and SecurityTreatAsSafe using System.Security.Cryptography; using System.Security.Cryptography.Xml; using System.Security.Cryptography.X509Certificates; @@ -26,9 +17,6 @@ using System.IO; using System.Windows; using System.IO.Packaging; -using Microsoft.Win32; -using MS.Internal; -using MS.Internal.WindowsBase; using MS.Internal.IO.Packaging.Extensions; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlSignatureManifest.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlSignatureManifest.cs index 6f021d37f5e..4efc2eec4ea 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlSignatureManifest.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlSignatureManifest.cs @@ -67,24 +67,11 @@ // // -// -// -// - -using System; -using System.Diagnostics; -using System.Collections; -using System.Collections.Generic; -//using System.Security; // for SecurityCritical and SecurityTreatAsSafe using System.Security.Cryptography; using System.Security.Cryptography.Xml; -using System.Security.Cryptography.X509Certificates; using System.Xml; using System.IO; -using System.Windows; using System.IO.Packaging; -using MS.Internal; -using MS.Internal.WindowsBase; using PackageRelationship = MS.Internal.IO.Packaging.Extensions.PackageRelationship; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlSignatureProperties.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlSignatureProperties.cs index d6cdbcb9d96..e76f2d263a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlSignatureProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlSignatureProperties.cs @@ -2,32 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Helper for XmlDigitalSignatureProcessor. // Generates and consumes Metro-compliant SignatureProperties element within an // XmlDSig signature. -// -// -// -// -// - -using System; -using System.Collections; + using System.Globalization; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Security.Cryptography; using System.Security.Cryptography.Xml; -using System.Security.Cryptography.X509Certificates; using System.Xml; -using System.IO; -using System.Windows; -using System.IO.Packaging; -using System.Diagnostics; -using MS.Internal.WindowsBase; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlStringTable.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlStringTable.cs index c00f0933d11..489075b6dff 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlStringTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/IO/Packaging/XmlStringTable.cs @@ -2,19 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Static helper class that serves up Xml strings used to generate and parse // XmlDigitalSignatures. -// -// -// -// - -using System; -using System.Xml; -using System.Diagnostics; namespace MS.Internal.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/InheritanceContextChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/InheritanceContextChangedEventManager.cs index a3cab42a260..0114aa46620 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/InheritanceContextChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/InheritanceContextChangedEventManager.cs @@ -2,15 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Manager for the InheritanceContextChanged event in the "weak event listener" -// pattern. See WeakEventTable.cs for an overview. -// - -using System; -using System.Diagnostics; -using System.Windows; // WeakEventManager +using System.Windows; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/InheritanceContextHelper.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/InheritanceContextHelper.cs index d01220db0ca..255fdb2eb33 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/InheritanceContextHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/InheritanceContextHelper.cs @@ -2,17 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -/***************************************************************************\ -* -* -* This file holds a helper class for DO subclasses that implement an -* inheritance context. -* -* -\***************************************************************************/ +// This file holds a helper class for DO subclasses that implement an +// inheritance context. - -using System; using System.Windows; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/ErrorCodes.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/ErrorCodes.cs index eb4543c71c6..a0f56983a74 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/ErrorCodes.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/ErrorCodes.cs @@ -2,18 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - +using System.ComponentModel; +using System.Globalization; +using System.Reflection; +using System.Runtime.InteropServices; namespace MS.Internal.Interop { - using System; - using System.ComponentModel; - using System.Diagnostics; - using System.Globalization; - using System.Reflection; - using System.Runtime.InteropServices; - using System.Security; - /// /// Wrapper for common Win32 status codes. /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/NativeStructs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/NativeStructs.cs index 4ecaa161c85..5796f7fc821 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/NativeStructs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/NativeStructs.cs @@ -2,31 +2,22 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; +using System.Runtime.InteropServices; +// Some COM interfaces and Win32 structures are already declared in the framework. +// Interesting ones to remember in System.Runtime.InteropServices.ComTypes are: +using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; -// // A consolidated file of native structures exposed for interop. // These may be structs or classes, depending on the calling requirements // // The naming should generally match the native counterparts. // The structures may be slightly thicker wrappers to make them // easier to consume correctly from .Net code (e.g. hiding resource management) -// namespace MS.Internal.Interop { - using System; - using System.IO; - using System.Runtime.InteropServices; - using System.Runtime.InteropServices.ComTypes; - using System.Security; - - // Some COM interfaces and Win32 structures are already declared in the framework. - // Interesting ones to remember in System.Runtime.InteropServices.ComTypes are: - using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; - using IPersistFile = System.Runtime.InteropServices.ComTypes.IPersistFile; - using IStream = System.Runtime.InteropServices.ComTypes.IStream; - [StructLayout(LayoutKind.Explicit)] internal class PROPVARIANT : IDisposable { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/NativeValues.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/NativeValues.cs index 91038501774..40394eec622 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/NativeValues.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Interop/NativeValues.cs @@ -3,19 +3,14 @@ // See the LICENSE file in the project root for more information. - -// // A consolidated file of native values and enums. // // The naming convention for enums is to use the native prefix of common types // as the enum name, where this makes sense to do. // One exception is WM_, which is called WindowMessage here. -// namespace MS.Internal.Interop { - using System; - /// /// APPDOCLISTTYPE. ADLT_* /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/NamedObject.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/NamedObject.cs index 356475b5f9b..71370dafe23 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/NamedObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/NamedObject.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Placeholder object, with a name that appears in the debugger -// - -using System; using System.Globalization; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ObservableCollectionDefaultValueFactory.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ObservableCollectionDefaultValueFactory.cs index be68f8cf050..eadcf98db53 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ObservableCollectionDefaultValueFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ObservableCollectionDefaultValueFactory.cs @@ -2,16 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: DefaultvalueFactory for ObservableCollection -// - -using System; -using System.Diagnostics; using System.Windows; -using System.Collections.ObjectModel; // ObservableCollection -using System.Collections.Specialized; // NotifyCollectionChangedEventHandler +using System.Collections.ObjectModel; +using System.Collections.Specialized; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PlatformCulture.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PlatformCulture.cs index dde088ca198..74c57d531e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PlatformCulture.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PlatformCulture.cs @@ -2,23 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: Internal class that exposes the culture the platform is localized to. -// -// - -using System; using System.Globalization; -using System.Windows; -using MS.Internal.WindowsBase; namespace MS.Internal { /// /// Exposes the CultureInfo for the culture the platform is localized to. - /// + /// internal static class PlatformCulture { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityChain.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityChain.cs index 4f589ea790a..6891eb1c2d0 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityChain.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityChain.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections; - namespace System.Windows.Threading { internal class PriorityChain diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityItem.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityItem.cs index c0697076bc3..4f8c386d143 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityItem.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Threading { internal class PriorityItem diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityQueue.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityQueue.cs index 449fbd11956..12f737c2a32 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityQueue.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/PriorityQueue.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; - namespace System.Windows.Threading { internal class PriorityQueue diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/AttachmentService.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/AttachmentService.cs index 5cd0fd42b0a..d136eb637f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/AttachmentService.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/AttachmentService.cs @@ -2,28 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Exposes IAttachmentExecute in a CLR friendly design. -// -// -// -// -// - -using System; using System.Runtime.InteropServices; -using System.Security; namespace MS.Internal.Security { -/// -/// Exposes IAttachmentExecute in a CLR friendly design. -/// -/// -/// Only implemented the single method we are using SaveWithUI. -/// -internal sealed class AttachmentService : IDisposable + /// + /// Exposes IAttachmentExecute in a CLR friendly design. + /// + /// + /// Only implemented the single method we are using SaveWithUI. + /// + internal sealed class AttachmentService : IDisposable { #region Constructors //-------------------------------------------------------------------------- diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/CallbackHandler.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/CallbackHandler.cs index c2bccb14d35..add7cc57097 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/CallbackHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/CallbackHandler.cs @@ -2,19 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // These are the internal helpers that used to process callbacks from RM SDK -// -// -// -// -using System; using System.Threading; using System.Runtime.InteropServices; -using System.Security; // Enable presharp pragma warning suppress directives. #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/ClientSession.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/ClientSession.cs index 3842dde1506..5488c32bcae 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/ClientSession.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/ClientSession.cs @@ -2,35 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // These are the internal helpers required to call into unmanaged // Promethium Rights Management SDK APIs -// -// -// -// -using System; using System.Collections; -using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Diagnostics; -using System.Security; using System.Security.RightsManagement; -using SecurityHelper = MS.Internal.WindowsBase.SecurityHelper; using System.Text; -using System.Globalization; // For CultureInfo -// for Invariant -using System.Windows; // for SR and SR - -using MS.Internal; -using System.Runtime.InteropServices; - -using Microsoft.Win32; // for Registry and RegistryKey classes - -using MS.Internal.WindowsBase; +using System.Globalization; +using Microsoft.Win32; namespace MS.Internal.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/Errors.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/Errors.cs index 6b470a1ec81..e21fbb06311 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/Errors.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/Errors.cs @@ -2,22 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This file contains Error Constants defined by the promethium SDK and an exception mapping mechanism -// -// -// -// -// -using System; using System.Runtime.InteropServices; -using System.Security; using System.Security.RightsManagement; -using System.Windows; -using MS.Internal.WindowsBase; // Enable presharp pragma warning suppress directives. #pragma warning disable 1634, 1691 diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/InternalSafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/InternalSafeNativeMethods.cs index 692f661676d..48d73db62b0 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/InternalSafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/InternalSafeNativeMethods.cs @@ -2,22 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This is partial class declaration of the SafeNativeMethods -// specifically this file contains the internal wrappers for the private pinvoke calls -// declared in UnsafeNativeMethods.cs -// -// -// -// - -using System; -using System.Runtime.InteropServices; using System.Text; -using System.Security; -using SecurityHelper = MS.Internal.WindowsBase.SecurityHelper; namespace MS.Internal.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/IssuanceLicense.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/IssuanceLicense.cs index 9a06fc3fb00..e5b0754067b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/IssuanceLicense.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/IssuanceLicense.cs @@ -2,28 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: -// This class wraps the issuance license publishing serveces -// -// -// -// +// This class wraps the issuance license publishing services - -using System; using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Security; using System.Security.RightsManagement; -using SecurityHelper = MS.Internal.WindowsBase.SecurityHelper; -using System.Globalization; // For CultureInfo -using MS.Internal; // for Invariant -using System.Windows; namespace MS.Internal.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/NativeRightsManagementAPIsConstants.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/NativeRightsManagementAPIsConstants.cs index b3fe1b53c04..f34446ee46b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/NativeRightsManagementAPIsConstants.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/NativeRightsManagementAPIsConstants.cs @@ -2,21 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // These are the Constant declarations for interop services required to call into unmanaged // Promethium Rights Management SDK APIs -// -// -// -// -using System; -using System.Runtime.InteropServices; -using System.Text; -using System.Security; - namespace MS.Internal.Security.RightsManagement { internal enum SecurityProviderType: uint diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/NativeRightsManagementAPIsStructures.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/NativeRightsManagementAPIsStructures.cs index 445c3bc6cce..120647c4f2a 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/NativeRightsManagementAPIsStructures.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/NativeRightsManagementAPIsStructures.cs @@ -2,25 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: +/// Description: // These are the Structure declarations for interop services required to call into unmanaged // Promethium Rights Management SDK APIs -// -// -// -// #define PRESENTATION_HOST_DLL // for "PresentationHostDLL.dll" - -using System; using System.Runtime.InteropServices; -using System.Text; -using System.Security; - + namespace MS.Internal.Security.RightsManagement { [StructLayout(LayoutKind.Sequential)] diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/PrivateUnsafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/PrivateUnsafeNativeMethods.cs index 5002219fc17..8b565601e05 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/PrivateUnsafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/PrivateUnsafeNativeMethods.cs @@ -2,17 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This is partial class declaration of the InternalSafeNativeMethods -// specifically the private sub class PrivateUnsafeNativeMethods with the PInvoke declarations -// -// -// -// - #define PRESENTATION_HOST_DLL + // We use this #ifdef to control the usage of the intermediate unmanaged // DLL that is used to satisfy requirement of the DRM DK SP1 Lock box. // SP1 Lock box requires that certain functions (DRMGetBoundLicenseObject, @@ -24,10 +15,8 @@ // debugging of the client applications) -using System; using System.Runtime.InteropServices; using System.Text; -using System.Security; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/RevocationPoint.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/RevocationPoint.cs index d4afa25908b..98f357efff6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/RevocationPoint.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/RevocationPoint.cs @@ -2,22 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // This is a structure representing a revocation point, as it is being defined by the // DRMGetRevocationPoint DRMSetRevocationPoint MS DRM SDK functions. -// -// -// -// - -using System; -using System.Runtime.InteropServices; -using System.Text; -using System.Security; - namespace MS.Internal.Security.RightsManagement { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/RightNameExpirationInfoPair.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/RightNameExpirationInfoPair.cs index b037760db15..7a9221875fe 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/RightNameExpirationInfoPair.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/RightNameExpirationInfoPair.cs @@ -2,19 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // Structure that keeps Right name as a string not as enum, so it can be used to carry // names that are not part of the ContentRights enum. -// -// -// -// - -using System; -using System.Diagnostics; -using System.Security; namespace MS.Internal.Security.RightsManagement { @@ -28,7 +18,7 @@ internal RightNameExpirationInfoPair (string rightName, DateTime validFrom, Date _validFrom = validFrom; _validUntil = validUntil; } - + /// /// We keep Right as a string for forward compatibility in case new /// rights get invented we would like be able to encrypt decrypt using them, diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementEnvironmentHandle.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementEnvironmentHandle.cs index d71cef16fde..01e02d8cdff 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementEnvironmentHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementEnvironmentHandle.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// SafeRightsManagementEnvironmentHandle class -// -// -// -// - -using System; -using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; -using System.Security; +using System.Runtime.InteropServices; namespace MS.Internal.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementHandle.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementHandle.cs index f78b7c47cdf..dab2eae3d3e 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementHandle.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// SafeRightsManagementHandle class -// -// -// -// - -using System; -using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; -using System.Security; +using System.Runtime.InteropServices; namespace MS.Internal.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementPubHandle.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementPubHandle.cs index 59769836dc5..5c247d040e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementPubHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementPubHandle.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// SafeRightsManagementPubHandle class -// -// -// -// - -using System; -using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; -using System.Security; +using System.Runtime.InteropServices; namespace MS.Internal.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementQueryHandle.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementQueryHandle.cs index 453fea29e08..e6373e4fad9 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementQueryHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementQueryHandle.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// SafeRightsManagementQueryHandle class -// -// -// -// - -using System; -using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; -using System.Security; +using System.Runtime.InteropServices; namespace MS.Internal.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementSessionHandle.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementSessionHandle.cs index 18a9d8ec964..5e897cef167 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementSessionHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Security/RightsManagement/SafeRightsManagementSessionHandle.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// SafeRightsManagementSessionHandle class -// -// -// -// - -using System; -using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; -using System.Security; +using System.Runtime.InteropServices; namespace MS.Internal.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ShutDownListener.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ShutDownListener.cs index 847938cad4b..fd49c8d4e34 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ShutDownListener.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ShutDownListener.cs @@ -2,8 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// + // Description: Listen for shut down events on behalf of a target, in a way that // does not leak the target. ShutDown events include: // AppDomain.DomainUnload @@ -28,8 +27,6 @@ // Shutdown is a "one-time" process. When the ShutDownListener receives // any one of the desired events, it stops listening to all events. -using System; -using System.Security; // using System.Threading; // Interlocked using System.Windows.Threading; // Dispatcher diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemCoreExtensionMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemCoreExtensionMethods.cs index 6c1afd561bc..8c8a5bc328d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemCoreExtensionMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemCoreExtensionMethods.cs @@ -2,15 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Helper methods for code that uses types from System.Core. -// - -using System; -using System.Security; -using MS.Win32; - namespace MS.Internal { internal abstract class SystemCoreExtensionMethods diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemDataExtensionMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemDataExtensionMethods.cs index 265e8699190..624daf8ad0d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemDataExtensionMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemDataExtensionMethods.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Helper methods for code that uses types from System.Data. -// - -using System; using System.ComponentModel; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemDrawingExtensionMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemDrawingExtensionMethods.cs index c8cec211b8c..4ed694be6e8 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemDrawingExtensionMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemDrawingExtensionMethods.cs @@ -2,14 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Helper methods for code that uses types from System.Drawing. -// - -using System; using System.IO; -using System.Security; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemXmlExtensionMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemXmlExtensionMethods.cs index f3a2a2e27c9..7d77f4a780f 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemXmlExtensionMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemXmlExtensionMethods.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Helper methods for code that uses types from System.Xml. -// - -using System; using System.Collections; using System.ComponentModel; using System.Globalization; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemXmlLinqExtensionMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemXmlLinqExtensionMethods.cs index 5c6e6d0e4c7..cc1ec3310dc 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemXmlLinqExtensionMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/SystemXmlLinqExtensionMethods.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Helper methods for code that uses types from System.Xml.Linq. -// - -using System; using System.ComponentModel; namespace MS.Internal diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionFilterHelper.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionFilterHelper.cs index 8370273e206..a04ba199126 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionFilterHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionFilterHelper.cs @@ -2,15 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Internal class replicating the functionality of the // former VB class of the same name. It's no longer used internally, but // exists solely for compat - in case anyone used private reflection. -// - -using System; -using System.Threading; namespace MS.Internal.Threading { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs index 765a4837873..67fdfae5ac3 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// - - -using Microsoft.Win32; // Registry & ComponentDispatcher & MSG -using System.Security; // CAS -using System.Runtime.InteropServices; // SEHException -using System.Diagnostics; // Debug & Debugger using System.Threading; -using MS.Internal.WindowsBase; namespace System.Windows.Threading { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/TraceLevelStore.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/TraceLevelStore.cs index 8ec088db023..d8caf22fe51 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/TraceLevelStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/TraceLevelStore.cs @@ -2,15 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Storage for the "TraceLevel" attached property. -// - -using System; -using System.Collections.Generic; -using System.Diagnostics; - namespace MS.Internal { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Utilities.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Utilities.cs index 4f019c29bbb..d790a410c9f 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Utilities.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Utilities.cs @@ -2,16 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - +using System.Runtime.InteropServices; +using Windows.Win32; +using Windows.Win32.Foundation; namespace MS.Internal { - using System; - using System.Diagnostics; - using System.Runtime.InteropServices; - using Windows.Win32; - using Windows.Win32.Foundation; - /// /// General utility class for macro-type functions. /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Verify.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Verify.cs index 941b36c82f3..479add648bd 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Verify.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Verify.cs @@ -2,17 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Threading; +using System.IO; - -namespace MS.Internal +namespace MS.Internal { - using System; - using System.Diagnostics; - using System.Security; - using System.Threading; - using System.IO; - using MS.Internal.WindowsBase; - /// /// A static class for retail validated assertions. /// Instead of breaking into the debugger an exception is thrown. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/WeakEventTable.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/WeakEventTable.cs index c13f10951de..997497163ac 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/WeakEventTable.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/WeakEventTable.cs @@ -2,23 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Storage for the "weak event listener" pattern. -// See WeakEventManager.cs for an overview. -// - -using System; -using System.Diagnostics; // Debug -using System.Collections; // Hashtable -using System.Collections.Generic; // List -using System.Collections.Specialized; // HybridDictionary -using System.Runtime.CompilerServices; // RuntimeHelpers -using System.Security; // -using System.Threading; // [ThreadStatic] -using System.Windows; // WeakEventManager -using System.Windows.Threading; // DispatcherObject -using MS.Utility; // FrugalList +using System.Collections; +using System.Runtime.CompilerServices; +using System.Threading; +using System.Windows; +using System.Windows.Threading; namespace MS.Internal { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/WeakReferenceKey.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/WeakReferenceKey.cs index 704c117da08..f2d05031f72 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/WeakReferenceKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/WeakReferenceKey.cs @@ -2,20 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This file defines a class that holds a weak reference to an object. It preserves the hashcode -// of the object and is intended to be used as a key in hashtables or dictionaries. -// - - -using System; -using MS.Internal; - namespace MS.Internal.Utility { - /// + /// /// Helper class that allows using a weak reference to an item as a key in a hash table. /// internal class WeakReferenceKey @@ -61,4 +50,4 @@ public override int GetHashCode() private WeakReference _item; private int _hashCode; } -} \ No newline at end of file +} diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/OtherAssemblyAttrs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/OtherAssemblyAttrs.cs index d741b7fa631..8b2a24e2df1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/OtherAssemblyAttrs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/OtherAssemblyAttrs.cs @@ -6,85 +6,80 @@ // This file specifies various assembly level attributes. // -using System; using MS.Internal.WindowsBase; -using System.Resources; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using System.Security; -using System.Windows.Markup; - - -[assembly:DependencyAttribute("System,", LoadHint.Always)] -[assembly:DependencyAttribute("System.Xaml,", LoadHint.Sometimes)] - -[assembly:InternalsVisibleTo(BuildInfo.DirectWriteForwarder)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationCore)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFramework)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationUI)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkRoyale)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkLuna)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkAero)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkAero2)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkAeroLite)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkClassic)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkFluent)] -[assembly:InternalsVisibleTo(BuildInfo.ReachFramework)] -[assembly:InternalsVisibleTo(BuildInfo.SystemWindowsPresentation)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemCore)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemData)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemDrawing)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemXml)] -[assembly:InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemXmlLinq)] - -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.ValueSerializer))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.ArrayExtension))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.DateTimeValueSerializer))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.IComponentConnector))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.INameScope))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.IProvideValueTarget))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.IUriContext))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.IValueSerializerContext))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.IXamlTypeResolver))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.MarkupExtension))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.NullExtension))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.StaticExtension))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.TypeExtension))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.AmbientAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.UsableDuringInitializationAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.ConstructorArgumentAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.ContentPropertyAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.ContentWrapperAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.DependsOnAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.DictionaryKeyPropertyAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.MarkupExtensionReturnTypeAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.NameScopePropertyAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.RootNamespaceAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.TrimSurroundingWhitespaceAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.UidPropertyAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.ValueSerializerAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.WhitespaceSignificantCollectionAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.XmlLangPropertyAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.XmlnsCompatibleWithAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.XmlnsDefinitionAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.XmlnsPrefixAttribute))] -[assembly:TypeForwardedTo(typeof(System.Windows.Markup.RuntimeNamePropertyAttribute))] - -[assembly:TypeForwardedTo(typeof(System.IO.FileFormatException))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.Package))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackagePart))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackageProperties))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackagePartCollection))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.TargetMode))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationship))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationshipCollection))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackUriHelper))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.ZipPackage))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.ZipPackagePart))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.CompressionOption))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.EncryptionOption))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationshipSelector))] -[assembly:TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationshipSelectorType))] + + +[assembly: DependencyAttribute("System,", LoadHint.Always)] +[assembly: DependencyAttribute("System.Xaml,", LoadHint.Sometimes)] + +[assembly: InternalsVisibleTo(BuildInfo.DirectWriteForwarder)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationCore)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFramework)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationUI)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkRoyale)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkLuna)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkAero)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkAero2)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkAeroLite)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkClassic)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkFluent)] +[assembly: InternalsVisibleTo(BuildInfo.ReachFramework)] +[assembly: InternalsVisibleTo(BuildInfo.SystemWindowsPresentation)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemCore)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemData)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemDrawing)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemXml)] +[assembly: InternalsVisibleTo(BuildInfo.PresentationFrameworkSystemXmlLinq)] + +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.ValueSerializer))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.ArrayExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.DateTimeValueSerializer))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.IComponentConnector))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.INameScope))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.IProvideValueTarget))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.IUriContext))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.IValueSerializerContext))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.IXamlTypeResolver))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.MarkupExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.NullExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.StaticExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.TypeExtension))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.AmbientAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.UsableDuringInitializationAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.ConstructorArgumentAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.ContentPropertyAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.ContentWrapperAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.DependsOnAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.DictionaryKeyPropertyAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.MarkupExtensionReturnTypeAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.NameScopePropertyAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.RootNamespaceAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.TrimSurroundingWhitespaceAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.UidPropertyAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.ValueSerializerAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.WhitespaceSignificantCollectionAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.XmlLangPropertyAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.XmlnsCompatibleWithAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.XmlnsDefinitionAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.XmlnsPrefixAttribute))] +[assembly: TypeForwardedTo(typeof(System.Windows.Markup.RuntimeNamePropertyAttribute))] + +[assembly: TypeForwardedTo(typeof(System.IO.FileFormatException))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.Package))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.PackagePart))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.PackageProperties))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.PackagePartCollection))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.TargetMode))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationship))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationshipCollection))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.PackUriHelper))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.ZipPackage))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.ZipPackagePart))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.CompressionOption))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.EncryptionOption))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationshipSelector))] +[assembly: TypeForwardedTo(typeof(System.IO.Packaging.PackageRelationshipSelectorType))] #pragma warning disable SYSLIB0003 // Type or member is obsolete [assembly: TypeForwardedTo(typeof(System.Security.Permissions.MediaPermissionAudio))] @@ -105,21 +100,21 @@ [assembly: TypeForwardedTo(typeof(System.Collections.Specialized.INotifyCollectionChanged))] // XAML namespace definitions -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Input")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Diagnostics")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "av")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Windows.Media")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "System.Diagnostics")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "av")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System.Windows.Markup")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System.Windows.Markup")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/composite-font", "System.Windows.Media")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/composite-font", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Input")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Diagnostics")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "wpf")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Windows.Media")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "System.Diagnostics")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "wpf")] [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "System.Windows")] [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "System.Windows.Input")] @@ -127,8 +122,8 @@ [assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "System.Diagnostics")] [assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "wpf")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Input")] -[assembly:System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media")] -[assembly:System.Windows.Markup.XmlnsPrefix ("http://schemas.microsoft.com/xps/2005/06", "metro")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Input")] +[assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.microsoft.com/xps/2005/06", "System.Windows.Media")] +[assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.microsoft.com/xps/2005/06", "metro")] diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/SR.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/SR.cs index 05908731ff9..9261ac9945d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/SR.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/SR.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Resources; - namespace MS.Internal.WindowsBase { internal static partial class SR diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Collections/ObjectModel/WeakReadOnlyCollection.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Collections/ObjectModel/WeakReadOnlyCollection.cs index 15708d538d9..a2765032ca1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Collections/ObjectModel/WeakReadOnlyCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Collections/ObjectModel/WeakReadOnlyCollection.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. - // This is basically copied from ReadOnlyCollection, with just enough modification // to support storage of items as WeakReferences. Use of internal BCL features // is commented out. @@ -18,13 +17,6 @@ namespace System.Collections.ObjectModel { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Windows; - using MS.Internal.WindowsBase; - [Serializable] [System.Runtime.InteropServices.ComVisible(false)] //[DebuggerTypeProxy(typeof(Mscorlib_CollectionDebugView<>))] diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Collections/Specialized/CollectionChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Collections/Specialized/CollectionChangedEventManager.cs index 2c567b2807f..7c204293ac0 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Collections/Specialized/CollectionChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Collections/Specialized/CollectionChangedEventManager.cs @@ -2,13 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Manager for the CollectionChanged event in the "weak event listener" // pattern. See WeakEventTable.cs for an overview. -// -using System; using System.Windows; // WeakEventManager namespace System.Collections.Specialized diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangedEventManager.cs index 74db1ee6c82..c261fe07c38 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangedEventManager.cs @@ -2,14 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Manager for the CurrentChanged event in the "weak event listener" // pattern. See WeakEventTable.cs for an overview. -// -using System; -using System.Windows; // WeakEventManager +using System.Windows; namespace System.ComponentModel { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangingEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangingEventArgs.cs index f51c5f34717..4af6a004afa 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangingEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangingEventArgs.cs @@ -2,15 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: CurrentChanging event arguments -// - -using System; -using System.Windows; -using MS.Internal.WindowsBase; - namespace System.ComponentModel { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangingEventManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangingEventManager.cs index 78592f7d691..875ccbc1b19 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangingEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/CurrentChangingEventManager.cs @@ -2,15 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Manager for the CurrentChanging event in the "weak event listener" // pattern. See WeakEventTable.cs for an overview. -// -using System; -using System.ComponentModel; // ICollectionView.CurrentChanging -using System.Windows; // WeakEventManager +using System.Windows; namespace System.ComponentModel { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/DependencyPropertyDescriptor.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/DependencyPropertyDescriptor.cs index d80919749b0..d21ba34f7a4 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/DependencyPropertyDescriptor.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/DependencyPropertyDescriptor.cs @@ -3,13 +3,7 @@ // See the LICENSE file in the project root for more information. using MS.Internal.ComponentModel; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; using System.Reflection; -using System.Text; -using System.Security; using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ErrorsChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ErrorsChangedEventManager.cs index 0f0122f7127..dd164a0f4d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ErrorsChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ErrorsChangedEventManager.cs @@ -2,15 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Manager for the ErrorsChanged event in the "weak event listener" // pattern. See WeakEventTable.cs for an overview. -// -using System; -using System.ComponentModel; -using System.Windows; // WeakEventManager +using System.Windows; namespace System.ComponentModel { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/GroupDescription.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/GroupDescription.cs index 1559adcf566..ec5ee8eb48d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/GroupDescription.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/GroupDescription.cs @@ -2,19 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: Base class for group descriptions. -// -// See spec at http://avalon/connecteddata/Specs/Grouping.mht -// - -using System.Collections; // IComparer -using System.Collections.ObjectModel; // ObservableCollection -using System.Collections.Specialized; // NotifyCollectionChangedEvent* -using System.Globalization; // CultureInfo -using MS.Internal; // Invariant.Assert +using System.Collections; +using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.Globalization; +using MS.Internal; namespace System.ComponentModel { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionView.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionView.cs index 79e9a11f54c..32ca19eebb5 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionView.cs @@ -2,31 +2,23 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: Manages a view of a collection of data items. // // See spec at http://avalon/connecteddata/Specs/CollectionView.mht -// -// -using System; using System.Collections; using System.Collections.Specialized; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using System.Windows; namespace System.ComponentModel { -/// -/// ICollectionView is an interface that applications writing their own -/// collections can implement to enable current record management, sorting, -/// filtering, grouping etc in a custom way. -/// -public interface ICollectionView : IEnumerable, INotifyCollectionChanged + /// + /// ICollectionView is an interface that applications writing their own + /// collections can implement to enable current record management, sorting, + /// filtering, grouping etc in a custom way. + /// + public interface ICollectionView : IEnumerable, INotifyCollectionChanged { /// /// Culture contains the CultureInfo used in any operations of the diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionViewFactory.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionViewFactory.cs index 497ed6dfe20..47914098dcc 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionViewFactory.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionViewFactory.cs @@ -2,15 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: Factory interface to create views on collections. // // See spec at http://avalon/connecteddata/Specs/CollectionView.mht -// - -using System; namespace System.ComponentModel { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionViewLiveShaping.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionViewLiveShaping.cs index 6f4eb7b1c24..5f67b750f74 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionViewLiveShaping.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/ICollectionViewLiveShaping.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: Live shaping functionality for collection views. -// - -using System; using System.Collections.ObjectModel; namespace System.ComponentModel diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IEditableCollectionView.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IEditableCollectionView.cs index 704cfffbe4d..61d9afabb04 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IEditableCollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IEditableCollectionView.cs @@ -2,23 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: Editing functionality for collection views. // // See spec at http://sharepoint/sites/wpftsv/Documents/DataGrid/DataGrid_CollectionView.mht -// - -using System; namespace System.ComponentModel { -/// -/// Describes the desired position of the new item placeholder in an -/// . -/// -public enum NewItemPlaceholderPosition + /// + /// Describes the desired position of the new item placeholder in an + /// . + /// + public enum NewItemPlaceholderPosition { /// Do not include a placeholder. None, diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IEditableCollectionViewAddNewItem.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IEditableCollectionViewAddNewItem.cs index 62a83ac5f91..a26ff910b6b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IEditableCollectionViewAddNewItem.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IEditableCollectionViewAddNewItem.cs @@ -2,22 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: AddNewItem functionality for collection views. -// - -using System; - namespace System.ComponentModel { -/// -/// IAddNewItem is an interface that a collection view -/// can implement to enable functionality for adding a user-supplied item to the -/// underlying collection. -/// -public interface IEditableCollectionViewAddNewItem : IEditableCollectionView + /// + /// IAddNewItem is an interface that a collection view + /// can implement to enable functionality for adding a user-supplied item to the + /// underlying collection. + /// + public interface IEditableCollectionViewAddNewItem : IEditableCollectionView { /// /// Return true if the view supports . diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IItemProperties.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IItemProperties.cs index 322ce4eb269..8ceae826978 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IItemProperties.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/IItemProperties.cs @@ -2,25 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: Editing functionality for collection views. // // See spec at http://sharepoint/sites/wpftsv/Documents/DataGrid/DataGrid_CollectionView.mht -// -using System; -using System.Collections.ObjectModel; // ReadOnlyCollection +using System.Collections.ObjectModel; namespace System.ComponentModel { -/// -/// IItemProperties is an interface that a collection view -/// can implement to expose information about the properties available on -/// items in the underlying collection. -/// -public interface IItemProperties + /// + /// IItemProperties is an interface that a collection view + /// can implement to expose information about the properties available on + /// items in the underlying collection. + /// + public interface IItemProperties { /// /// Returns information about the properties available on items in the diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyChangedEventManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyChangedEventManager.cs index c3668e09414..8cf735058e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyChangedEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyChangedEventManager.cs @@ -2,22 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: Manager for the PropertyChanged event in the "weak event listener" // pattern. See WeakEventTable.cs for an overview. -// - -using System; -using System.Collections; // ICollection -using System.Collections.Generic; // List -using System.Collections.Specialized; // HybridDictionary -using System.ComponentModel; // INotifyPropertyChanged -using System.Diagnostics; // Debug -using System.Reflection; // MethodInfo -using System.Windows; // WeakEventManager -using MS.Internal; // BaseAppContextSwitches -using MS.Internal.WindowsBase; // SR + +using System.Collections; +using System.Collections.Specialized; +using System.Windows; +using MS.Internal; namespace System.ComponentModel { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyFilterAttribute.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyFilterAttribute.cs index fd746caa711..3b90673f22f 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyFilterAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyFilterAttribute.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -namespace System.ComponentModel +namespace System.ComponentModel { - using System; - using System.Diagnostics.CodeAnalysis; - /// /// This attribute is a "query" attribute. It is /// an attribute that causes the type description provider diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyFilterFlags.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyFilterFlags.cs index 2101f7a9798..33ca7306d4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyFilterFlags.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/PropertyFilterFlags.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -namespace System.ComponentModel +namespace System.ComponentModel { - using System; - /// /// This set of flags can be wrapped in /// a PropertyFilterAttribute to filter diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/SortDescription.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/SortDescription.cs index 57d56a9120e..702844f20df 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/SortDescription.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/SortDescription.cs @@ -2,17 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: Defines property and direction to sort. -// - -using System; -using System.ComponentModel; -using System.Windows; // SR -using MS.Internal.WindowsBase; - namespace System.ComponentModel { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/SortDescriptionCollection.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/SortDescriptionCollection.cs index 56082b4071f..a274fdc55f4 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/SortDescriptionCollection.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/ComponentModel/SortDescriptionCollection.cs @@ -2,20 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Description: dynamic collection of SortDescriptions -// - - -using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Windows; - -using MS.Utility; namespace System.ComponentModel { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Diagnostics/Generated/PresentationTraceSources.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Diagnostics/Generated/PresentationTraceSources.cs index 1158e89908a..8b4703cdd3d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Diagnostics/Generated/PresentationTraceSources.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Diagnostics/Generated/PresentationTraceSources.cs @@ -5,8 +5,6 @@ // NOTE: This file was generated by $(WpfCodeGenDir)AvTrace\PresentationTraceSources.tt. // Any manual updates to this file will overwritten. -using MS.Internal; - namespace System.Diagnostics { /// Access point for TraceSources diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Diagnostics/PresentationTraceSources.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Diagnostics/PresentationTraceSources.cs index 35c4b709db8..2e77019db9e 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Diagnostics/PresentationTraceSources.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Diagnostics/PresentationTraceSources.cs @@ -2,20 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -/***************************************************************************\ -* -* -* This class provides a public interface to access TraceSources for -* enabling/disabling/filtering of trace messages by area. -* -* The other portion of this partial class is generated using -* genTraceSource.pl and AvTraceMessages.txt -* -* -\***************************************************************************/ - -using System.Collections.Generic; -using System.Security; +// This class provides a public interface to access TraceSources for +// enabling/disabling/filtering of trace messages by area. +// +// The other portion of this partial class is generated using +// genTraceSource.pl and AvTraceMessages.txt + using MS.Internal; using System.Windows; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/DataSpaceManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/DataSpaceManager.cs index e0cc51ee46c..495fc5f1fbb 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/DataSpaceManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/DataSpaceManager.cs @@ -2,41 +2,21 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// The object for manipulating data spaces within the WPP Package. -// -// -// -// -// -// -// - -using System; using System.Collections; -using System.Diagnostics; // For Debug.Assert using System.Globalization; -using System.IO; -using System.Reflection; // For finding transform objects & their constructor -using System.Collections.Generic; - -using System.Windows; // ExceptionStringTable using MS.Internal.IO.Packaging; using MS.Internal.IO.Packaging.CompoundFile; using CU = MS.Internal.IO.Packaging.CompoundFile.ContainerUtilities; -using MS.Internal.WindowsBase; namespace System.IO.Packaging { -/// -/// This class is used to manipulate the data spaces within a specific instance -/// of the Avalon container. This is how data transform modules are plugged -/// into the container to enable features like data compression and data -/// encryption. -/// -internal class DataSpaceManager + /// + /// This class is used to manipulate the data spaces within a specific instance + /// of the Avalon container. This is how data transform modules are plugged + /// into the container to enable features like data compression and data + /// encryption. + /// + internal class DataSpaceManager { /***********************************************************************/ // Constants diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageInfo.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageInfo.cs index 9c6a7019a4c..e3381f598a8 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageInfo.cs @@ -2,37 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Class for manipulating storages in the container file. - - - -using System; using System.Collections; -using System.ComponentModel; // For EditorBrowsable attribute -using System.Diagnostics; // For Assert -using System.Security; -using System.IO; -using System.Globalization; // CultureInfo.InvariantCulture - - -using System.Windows; // SR.[exception message] using MS.Internal.IO.Packaging.CompoundFile; using CU = MS.Internal.IO.Packaging.CompoundFile.ContainerUtilities; -using MS.Internal; // for Invariant & CriticalExceptions -using System.Runtime.InteropServices; // COMException -using MS.Internal.WindowsBase; +using MS.Internal; +using System.Runtime.InteropServices; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings namespace System.IO.Packaging { -/// -/// This class holds the core information for a StorageInfo object. -/// -internal class StorageInfoCore + /// + /// This class holds the core information for a StorageInfo object. + /// + internal class StorageInfoCore { internal StorageInfoCore( string nameStorage diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageRoot.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageRoot.cs index 9459b1f52af..382ed14556b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageRoot.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageRoot.cs @@ -2,36 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// The root object for manipulating the WPP container. -// -// -// -// -// -// -// -// -// - -using System; -using System.IO; using System.Runtime.InteropServices; - -using System.Windows; // For exception string lookup table - -using MS.Internal; // for Invariant +using MS.Internal; using MS.Internal.IO.Packaging.CompoundFile; -using MS.Internal.WindowsBase; namespace System.IO.Packaging { -/// -/// The main container class, one instance per compound file -/// -internal class StorageRoot : StorageInfo + /// + /// The main container class, one instance per compound file + /// + internal class StorageRoot : StorageInfo { /***********************************************************************/ // Default values to use for the StorageRoot.Open shortcuts diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StreamInfo.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StreamInfo.cs index b001046ed1f..2c6d4c08d95 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StreamInfo.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StreamInfo.cs @@ -2,34 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Class for manipulating streams in the container file -// -// -// -// -// -// -// -// - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; // For Debug.Assert -using System.IO; using System.Runtime.InteropServices; -using System.Security; - -using System.Windows; // SR.[exception message] using MS.Internal.IO.Packaging.CompoundFile; using CU = MS.Internal.IO.Packaging.CompoundFile.ContainerUtilities; -using System.IO.Packaging; -using MS.Internal.WindowsBase; - namespace System.IO.Packaging { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/VersionPair.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/VersionPair.cs index 21b92399f37..17e498e1c2c 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/VersionPair.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/VersionPair.cs @@ -11,7 +11,6 @@ #pragma warning disable 1634, 1691 using System; -using System.Globalization; #if PBTCOMPILER using MS.Utility; // For SR.cs diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/EncryptedPackage.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/EncryptedPackage.cs index 140ea471884..5084d437510 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/EncryptedPackage.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/EncryptedPackage.cs @@ -2,29 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class represents an OLE compound file that contains an encrypted package. -// -// -// -// - -using System; -using System.Diagnostics; -using System.IO; -using System.IO.Packaging; using System.Runtime.InteropServices; using System.Security.RightsManagement; -using System.Windows; -using System.Collections; -using System.Collections.Generic; - -using MS.Internal; // Invariant.Assert +using MS.Internal; using MS.Internal.IO.Packaging; -using MS.Internal.IO.Packaging.CompoundFile; // RightsManagementEncryptionTransform -using MS.Internal.WindowsBase; +using MS.Internal.IO.Packaging.CompoundFile; namespace System.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/PackageDigitalSignature.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/PackageDigitalSignature.cs index c51f9b67635..ffa716ec0c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/PackageDigitalSignature.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/PackageDigitalSignature.cs @@ -2,28 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class represents a PackageDigitalSignature. It is immutable. -// -// -// -// -// - -using System; -using System.Collections.Generic; -using System.Windows; // For Exception strings - SR -using System.Text; // for StringBuilder -using System.Diagnostics; // for Assert -using System.Security; // for SecurityCritical -using System.Security.Cryptography.Xml; // for Xml Signature classes +using System.Security.Cryptography.Xml; using System.Security.Cryptography.X509Certificates; -using System.Security.Cryptography; -using MS.Internal.IO.Packaging; // helper classes Certificate, HashStream -using System.Collections.ObjectModel; // for ReadOnlyCollection<> -using MS.Internal.WindowsBase; +using MS.Internal.IO.Packaging; +using System.Collections.ObjectModel; namespace System.IO.Packaging { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/PackageDigitalSignatureManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/PackageDigitalSignatureManager.cs index 3bcd7bace44..320cb9ba02f 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/PackageDigitalSignatureManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/PackageDigitalSignatureManager.cs @@ -2,32 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: -// This class provides api's to add/remove/verify signatures on an MMCF container. -// -// -// -// +// This class provides api's to add/remove/verify signatures on an MMCF container. // Allow use of presharp warning numbers [6506] unknown to the compiler #pragma warning disable 1634, 1691 -using System; -using System.Collections.Generic; -using System.Windows; // For Exception strings - SR -using System.Text; // for StringBuilder -using System.Diagnostics; // for Assert -using System.Security; // for SecurityCritical tag using System.Security.Cryptography.Xml; // for SignedXml using System.Security.Cryptography.X509Certificates; // for X509Certificate using MS.Internal.IO.Packaging; // for internal helpers using System.Collections.ObjectModel; // for ReadOnlyCollection<> using MS.Internal; // for ContentType -using MS.Internal.WindowsBase; - -using Package = System.IO.Packaging.Package; using MS.Internal.IO.Packaging.Extensions; namespace System.IO.Packaging diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/RightsManagementInformation.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/RightsManagementInformation.cs index 42153072e11..2fbc7c6f162 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/RightsManagementInformation.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/RightsManagementInformation.cs @@ -2,18 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class represents the rights-management information stored in an -// EncryptedPackageEnvelope. Specifically, it represents the PublishLicense and the -// UseLicenses stored in the compound file that embodies the RM protected Package. -// -// -// -// - -using System.Collections.Generic; using System.Security.RightsManagement; using MS.Internal.IO.Packaging.CompoundFile; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/AuthenticationType.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/AuthenticationType.cs index 63ab2feced5..169b3292aae 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/AuthenticationType.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/AuthenticationType.cs @@ -2,17 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Authentication Type enumeration is used to differentiate users. -// -// -// -// - -using System; - -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// /// Enumeration that describes various Authentication types, currently only Passport and Windows are supported. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/CryptoProvider.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/CryptoProvider.cs index 3073261df0c..e99318e3e48 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/CryptoProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/CryptoProvider.cs @@ -2,30 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Crypto provider class which is a wrapper around unmanaged DRM SDK Bound License handle -// provides ability to Encryt/Decrypt protected content, and enumerate granted rights. -// -// -// -// - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Security; -using System.Windows; using System.Collections.ObjectModel; -using MS.Internal.Security.RightsManagement; -using MS.Internal; -using SecurityHelper=MS.Internal.WindowsBase.SecurityHelper; +using MS.Internal.Security.RightsManagement; +using MS.Internal; -using MS.Internal.WindowsBase; - -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// /// CryptoProvider class is built as a result of UseLicense.Bind call. This class represents a successful RightsManagement diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Exceptions.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Exceptions.cs index cb349d3f8f2..0f41f13dda1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Exceptions.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Exceptions.cs @@ -2,29 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: RightsManagement exceptions -// -// -// -// - -using System; using System.Runtime.Serialization; -using System.Security; -using System.Windows; using MS.Internal.Security.RightsManagement; -using MS.Internal.WindowsBase; - -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { - /// + /// /// Rights Management exception class is thrown when an RM Operation can not be completed for a variety of reasons. /// Some of the failure codes codes application, can potentially, mitigate automatically. Some failure codes can be /// mitigated by coordinated action of the user and the application. - /// + /// [Serializable()] public class RightsManagementException : Exception { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Grant.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Grant.cs index c00cc0de396..a887c4bab59 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Grant.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Grant.cs @@ -2,23 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: This class represents a (ContentUser , ContentRight) pair. -// -// -// -// - -using System; -using System.Collections; -using System.Diagnostics; -using System.Globalization; -using System.Windows; -using MS.Internal.Security.RightsManagement; -using SecurityHelper=MS.Internal.WindowsBase.SecurityHelper; - -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// /// ContentGrant class represent a (ContentUser , ContentRight) pair this is diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/LocalizedNameDescriptionPair.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/LocalizedNameDescriptionPair.cs index a2cdb77e81b..4b1696aed85 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/LocalizedNameDescriptionPair.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/LocalizedNameDescriptionPair.cs @@ -2,30 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: This class represents an immutable pair of Strings (Name, Description) -// That are generally used to represent name and description of an unsigned publish license -// (a.k.a. template). Unsigned Publish License has property called LocalizedNameDescriptionDictionary -// which holds a map of a local Id to a Name Description pair, in order to support scenarios of -// building locale specific template browsing applications. -// -// -// -// - -using System; -using System.Collections; -using System.Diagnostics; -using System.Globalization; -using System.Windows; -using MS.Internal.Security.RightsManagement; -using SecurityHelper=MS.Internal.WindowsBase.SecurityHelper; - // Allow use of presharp warning numbers [6506] and [6518] unknown to the compiler #pragma warning disable 1634, 1691 -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// /// LocalizedNameDescriptionPair class represent an immutable (Name, Description) pair of strings. This is diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/PublishLicense.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/PublishLicense.cs index 77a59dd8052..c204ae3c9d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/PublishLicense.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/PublishLicense.cs @@ -2,31 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class implements the UnsignedPublishLicense class -// this class is the first step in the RightsManagement publishing process -// -// -// -// - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows; using MS.Internal.Security.RightsManagement; -using SecurityHelper=MS.Internal.WindowsBase.SecurityHelper; // Disable message about unknown message numbers so as to allow the suppression // of PreSharp warnings (whose numbers are unknown to the compiler). #pragma warning disable 1634, 1691 -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// /// A Publish License is a list of rights, users, metadata, and other information that specifies how a specific user on diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Right.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Right.cs index 78fd30f5a6a..d2780b2561c 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Right.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/Right.cs @@ -2,21 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Enumeration of content right that represents the list of -// supported XrML rights -// -// -// -// - -using System; - -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// - /// Right enumeration represents the list of supported XrML rights. + /// Right enumeration represents the list of supported XrML rights. /// public enum ContentRight : int { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/RightsManagementFailureCode.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/RightsManagementFailureCode.cs index d5fe07761b8..890fe396811 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/RightsManagementFailureCode.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/RightsManagementFailureCode.cs @@ -2,20 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Error Code used by Rights Management RightsManagement exceptions -// -// -// -// - -using System; - -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// - /// This error code is used to communicate reasons for failure from the UseLicense.Bind call + /// This error code is used to communicate reasons for failure from the UseLicense.Bind call /// public enum RightsManagementFailureCode : int { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/SecureEnvironment.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/SecureEnvironment.cs index cbf7814c1f9..9a033b143e3 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/SecureEnvironment.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/SecureEnvironment.cs @@ -2,28 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Secure Environment class is a starting point for Managed RM APIs -// It provides basic services of enumerating User Certificates, Initializing Environment -// -// -// -// - -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows; using MS.Internal.Security.RightsManagement; -using SecurityHelper=MS.Internal.WindowsBase.SecurityHelper; using MS.Internal; -using MS.Internal.WindowsBase; -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// /// This class represent a client session, which used in activation, binding and other function calls. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UnsignedPublishLicense.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UnsignedPublishLicense.cs index 7e8ce203fa8..460ece532fd 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UnsignedPublishLicense.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UnsignedPublishLicense.cs @@ -2,32 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class implements the UnsignedPublishLicense class -// this class is the first step in the RightsManagement publishing process -// -// -// -// - -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows; using MS.Internal.Security.RightsManagement; using MS.Internal; -using SecurityHelper=MS.Internal.WindowsBase.SecurityHelper; // Disable message about unknown message numbers so as to allow the suppression // of PreSharp warnings (whose numbers are unknown to the compiler). #pragma warning disable 1634, 1691 -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// /// UnsignedPublishLicense class is used to represent publish license information before it was signed. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UseLicense.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UseLicense.cs index 4dff85e9b63..e5208eee50b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UseLicense.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UseLicense.cs @@ -2,26 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: This class represents the Use Lciense which enables end users to -// consume protected content. -// -// -// -// - -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Globalization; -using System.Windows; -using SecurityHelper=MS.Internal.WindowsBase.SecurityHelper; using MS.Internal.Security.RightsManagement; -using MS.Internal.Utility; // Disable message about unknown message numbers so as to allow the suppression // of PreSharp warnings (whose numbers are unknown to the compiler). @@ -30,7 +13,7 @@ namespace System.Security.RightsManagement { /// - /// This class represents the Use Lciense which enables end users to consume protected content. + /// This class represents the Use License which enables end users to consume protected content. /// public class UseLicense { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/User.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/User.cs index 0ecc092dd7a..151f45bc7a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/User.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/User.cs @@ -2,27 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// This class implements the UnsignedPublishLicense class -// this class is the first step in the RightsManagement publishing process -// -// -// -// - -using System; -using System.Collections; -using System.Collections.Generic; // for IEqualityComparer generic interface. -using System.Diagnostics; -using System.Globalization; -using System.Text; -using System.Windows; - -using MS.Internal; // for Invariant +using MS.Internal; using MS.Internal.Security.RightsManagement; -using SecurityHelper = MS.Internal.WindowsBase.SecurityHelper; namespace System.Security.RightsManagement { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UserActivationMode.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UserActivationMode.cs index 69c1f0e4f5b..1775eac5b43 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UserActivationMode.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Security/RightsManagement/UserActivationMode.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: This enumeration is used as a parameter in SecureEnvironment.Create to -// indicate whether permanent or temporary certificate request needs to be issued. -// -// -// -// - -using System; - -namespace System.Security.RightsManagement +namespace System.Security.RightsManagement { /// /// This enumeration is used to indicate whether we are going to request temporary or permanent User Certificate from RM server diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AccessibilitySwitches.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AccessibilitySwitches.cs index e39a24d242d..1d54a97ab3b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AccessibilitySwitches.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AccessibilitySwitches.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Internal.WindowsBase; -using System; -using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; -using System.Security; using System.Threading; using System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableAttribute.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableAttribute.cs index 2217dd23e59..a29de6d3ec0 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableAttribute.cs @@ -3,10 +3,8 @@ // See the LICENSE file in the project root for more information. -namespace System.Windows +namespace System.Windows { - using System; - /// /// This is the base class for all attached property browsable attributes. /// TypeDescriptor will call IsBrowsable for each attribute it discovers diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableForTypeAttribute.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableForTypeAttribute.cs index 195b3fdacf7..7389329c5ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableForTypeAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableForTypeAttribute.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -namespace System.Windows +namespace System.Windows { - using System; - /// /// This class declares that an attached property is browsable only /// for dependency objects that derive from the given type. If more diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableWhenAttributePresentAttribute.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableWhenAttributePresentAttribute.cs index 8f9de2253ae..0779fa0023c 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableWhenAttributePresentAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/AttachedPropertyBrowsableWhenAttributePresentAttribute.cs @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.ComponentModel; -namespace System.Windows +namespace System.Windows { - using System; - using System.ComponentModel; - /// /// This attribute declares that an attached property can only be attached /// to an object that defines the given attribute on its class. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/BaseCompatibilityPreferences.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/BaseCompatibilityPreferences.cs index ac00df5b7f7..9d05a3b8288 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/BaseCompatibilityPreferences.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/BaseCompatibilityPreferences.cs @@ -2,14 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MS.Internal.WindowsBase; using Microsoft.Win32; -using System; -using System.Collections.Specialized; // NameValueCollection -using System.Configuration; // ConfigurationManager -using System.Runtime.Versioning; -using System.Security; - +using System.Collections.Specialized; +using System.Configuration; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/Int32RectValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/Int32RectValueSerializer.cs index dfd573ab5e9..06c71031569 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/Int32RectValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/Int32RectValueSerializer.cs @@ -9,19 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/PointValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/PointValueSerializer.cs index 2cf640141b0..8226d1f2280 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/PointValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/PointValueSerializer.cs @@ -9,19 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/RectValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/RectValueSerializer.cs index 09f9ea7bf3e..968868bd9ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/RectValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/RectValueSerializer.cs @@ -9,19 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/SizeValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/SizeValueSerializer.cs index 621b52f9101..74995476195 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/SizeValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/SizeValueSerializer.cs @@ -9,19 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/VectorValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/VectorValueSerializer.cs index b4720105b65..0612fd64043 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/VectorValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Converters/Generated/VectorValueSerializer.cs @@ -9,19 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Data/DataSourceProvider.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Data/DataSourceProvider.cs index dc9acdda034..3bafc93f5c1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Data/DataSourceProvider.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Data/DataSourceProvider.cs @@ -2,17 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: common base class and contract for data source provider objects // // Specs: http://avalon/connecteddata/Specs/Avalon%20DataProviders.mht -// -using System; -using System.Diagnostics; using System.ComponentModel; -using System.Threading; using System.Windows.Threading; // Dispatcher* using MS.Internal; // Invariant diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs index 0584f75b4aa..1923e998bbd 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs @@ -4,18 +4,9 @@ // #define NESTED_OPERATIONS_CHECK -using System; -using System.Collections; -using System.Diagnostics; -using System.Globalization; // For CultureInfo.InvariantCulture -using System.Reflection; - using System.Windows.Threading; - using MS.Utility; using MS.Internal; -using MS.Internal.WindowsBase; -using System.Windows.Markup; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObjectType.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObjectType.cs index 92ad7d7b14b..1bc54d9e66a 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObjectType.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObjectType.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Windows.Threading; -using MS.Utility; -using MS.Internal.WindowsBase; - #pragma warning disable 1634, 1691 // suppressing PreSharp warnings namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyProperty.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyProperty.cs index 15e37f49943..0a10e8b830c 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyProperty.cs @@ -6,12 +6,10 @@ using MS.Internal; using System.Threading; using System.Collections; -using System.Diagnostics; using System.ComponentModel; using System.Windows.Markup; // For ValueSerializerAttribute using MS.Internal.WindowsBase; using System.Windows.Threading; // For DispatcherObject -using System.Collections.Generic; using System.Runtime.CompilerServices; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyChangedEventArgs.cs index 6a94c2814a7..8524e4f242d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyChangedEventArgs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyChangedEventHandler.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyChangedEventHandler.cs index 6f7ca3d92f2..27a75cbc073 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyChangedEventHandler.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyChangedEventHandler.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyKey.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyKey.cs index 1b657b38cfe..09b9198be91 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyKey.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyKey.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; // For Assert - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyValueSerializer.cs index 0279ec06c2d..226051812c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyPropertyValueSerializer.cs @@ -2,16 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Contents: ValueSerializer for DependencyProperty -// -// -using System; -using System.Collections.Generic; -using System.Text; using System.Windows.Markup; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencySource.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencySource.cs index d24dce690b4..3b7cdb999cf 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencySource.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencySource.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Threading; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependentList.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependentList.cs index 422412ac6ef..bf4f46e9b14 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependentList.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependentList.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using MS.Utility; -using MS.Internal; - namespace System.Windows { // diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DesignerSerializationOptions.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DesignerSerializationOptions.cs index 631454f3dcb..679bb3bd91b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DesignerSerializationOptions.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DesignerSerializationOptions.cs @@ -2,16 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Specifies the serialization flags per property -// -// - -using System; -using System.ComponentModel; - namespace System.Windows.Markup { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DesignerSerializationOptionsAttribute.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DesignerSerializationOptionsAttribute.cs index 4bcee1bd42e..46dc68e861e 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DesignerSerializationOptionsAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DesignerSerializationOptionsAttribute.cs @@ -2,16 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Specifies the serialization flags per property -// -// - -using System; using System.ComponentModel; -using MS.Internal.WindowsBase; namespace System.Windows.Markup { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/EffectiveValueEntry.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/EffectiveValueEntry.cs index 1f6f7768684..1dc6cbf7a31 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/EffectiveValueEntry.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/EffectiveValueEntry.cs @@ -11,9 +11,6 @@ * \***************************************************************************/ -using System.Collections; // IDictionary -using System.Diagnostics; // Debug.Assert - namespace System.Windows { internal struct EffectiveValueEntry diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Expression.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Expression.cs index 6c34ab5e305..91c867927d2 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Expression.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Expression.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; -using MS.Internal.WindowsBase; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/ExpressionConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/ExpressionConverter.cs index 4f9f08a585b..a3026d78ff9 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/ExpressionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/ExpressionConverter.cs @@ -2,17 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// // Description: // TypeConverter for a generic property value expression -// -// -using System; using System.ComponentModel; using System.Globalization; -using System.ComponentModel.Design.Serialization; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Freezable.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Freezable.cs index a97f620ecf3..8e53634f261 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Freezable.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Freezable.cs @@ -2,25 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // Description: The Freezable class (plus the FreezableHelper class) // encompasses all of the Freezable pattern. - -using System; -using System.Diagnostics; using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Windows.Threading; - -using MS.Internal; // for Invariant -using MS.Internal.WindowsBase; -using MS.Utility; // FrugalList +using MS.Internal; +using MS.Utility; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Int32Rect.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Int32Rect.cs index ac6c13bae6a..d7eb6c2ffc2 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Int32Rect.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Int32Rect.cs @@ -10,22 +10,10 @@ // using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Converters; -using System.Windows; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Int32RectConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Int32RectConverter.cs index 5235f1f3849..821342b8d0b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Int32RectConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Int32RectConverter.cs @@ -9,19 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Point.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Point.cs index 9ebf086fdfc..2013295c148 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Point.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Point.cs @@ -10,22 +10,10 @@ // using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Converters; -using System.Windows; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/PointConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/PointConverter.cs index 68273b2f4ff..0c3153bd01b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/PointConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/PointConverter.cs @@ -9,19 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Rect.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Rect.cs index b0d4b483827..81c7a5849ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Rect.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Rect.cs @@ -10,22 +10,10 @@ // using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Converters; -using System.Windows; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/RectConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/RectConverter.cs index b9888a29838..b2c86d81dc6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/RectConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/RectConverter.cs @@ -9,19 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Size.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Size.cs index 41a044ef19f..3735acc0063 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Size.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Size.cs @@ -10,22 +10,10 @@ // using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Converters; -using System.Windows; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/SizeConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/SizeConverter.cs index 0c471b3a008..d5e380a4564 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/SizeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/SizeConverter.cs @@ -9,19 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Vector.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Vector.cs index 75f44160161..d2c3cda82c2 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Vector.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/Vector.cs @@ -10,22 +10,10 @@ // using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Converters; -using System.Windows; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/VectorConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/VectorConverter.cs index 6e5e8e087ae..ecf735fc7cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/VectorConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Generated/VectorConverter.cs @@ -9,19 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using System.Windows.Converters; -using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/IWeakEventListener.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/IWeakEventListener.cs index 244b992926f..a1c5d7d75e4 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/IWeakEventListener.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/IWeakEventListener.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// - -using System; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/Key.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/Key.cs index d7465c9bcff..42b51ea5abd 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/Key.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/Key.cs @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; using System.ComponentModel; using System.Windows.Markup; -namespace System.Windows.Input +namespace System.Windows.Input { /// /// An enumeration of all of the possible key values on a keyboard. diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyConverter.cs index 7faa62b1f36..7042ba7af49 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyConverter.cs @@ -2,34 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// -// KeyConverter : Converts a key string to the *Type* that the string represents and vice-versa -// -// Features: -// -// -// -// - -using System; -using System.ComponentModel; // for TypeConverter -using System.Globalization; // for CultureInfo -using System.Reflection; -using System.Windows; -using System.Windows.Input; -using System.Windows.Markup; -using MS.Utility; -using MS.Internal.WindowsBase; +using System.ComponentModel; +using System.Globalization; namespace System.Windows.Input { /// /// Key Converter class for converting between a string and the Type of a Key /// - /// + /// public class KeyConverter : TypeConverter { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyInterop.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyInterop.cs index 3b901f050fb..08feb930bc5 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyInterop.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyInterop.cs @@ -2,12 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using MS.Win32; - using MS.Win32; - -using System; - -namespace System.Windows.Input +namespace System.Windows.Input { /// /// Provides static methods to convert between Win32 VirtualKeys diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyValueSerializer.cs index 63bbf37a696..3c5caefc2b3 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyValueSerializer.cs @@ -2,33 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// -// KeyValueSerializer: Serializes a key string to a string and vice-versa -// -// Features: -// -// -// -// - -using System; -using System.ComponentModel; // for TypeConverter -using System.Globalization; // for CultureInfo -using System.Reflection; -using System.Windows; -using System.Windows.Input; +using System.ComponentModel; using System.Windows.Markup; -using MS.Utility; namespace System.Windows.Input { /// /// Key Serializer class for serializing a Key /// - /// + /// public class KeyValueSerializer : ValueSerializer { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeys.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeys.cs index 5c45f83d547..50b26bd33e9 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeys.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeys.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; using System.ComponentModel; using System.Windows.Markup; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeysConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeysConverter.cs index df41a3ea138..c1b6b4e1550 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeysConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeysConverter.cs @@ -2,28 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - // -// -// Description: -// -// ModifierKeysConverter : Converts a Modifier string to the *Type* that the string represents and vice-versa. -// -// Features: -// -// -// -// - -using System; -using System.ComponentModel; // for TypeConverter -using System.Globalization; // for CultureInfo -using System.Reflection; -using MS.Internal; -using System.Windows; -using System.Windows.Input; -using System.Windows.Markup; -using MS.Utility; -using MS.Internal.WindowsBase; +using System.ComponentModel; +using System.Globalization; namespace System.Windows.Input { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeysValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeysValueSerializer.cs index b4d3e5860d3..e696690162f 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeysValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/ModifierKeysValueSerializer.cs @@ -2,34 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// -// ModifierKeysValueSerializer : Serializes a Modifier to and from a string. -// -// Features: -// -// -// -// - -using System; -using System.ComponentModel; // for TypeConverter -using System.Globalization; // for CultureInfo -using System.Reflection; -using MS.Internal; -using System.Windows; -using System.Windows.Input; +using System.ComponentModel; using System.Windows.Markup; -using MS.Utility; namespace System.Windows.Input { /// /// Key Converter class for converting between a string and the Type of a Modifiers /// - /// + /// public class ModifierKeysValueSerializer : ValueSerializer { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/TraversalRequest.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/TraversalRequest.cs index 86d56b6009a..cb88cf0e09a 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/TraversalRequest.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/TraversalRequest.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; - namespace System.Windows.Input { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Int32Rect.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Int32Rect.cs index 05154da4654..3b99d4d3396 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Int32Rect.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Int32Rect.cs @@ -2,23 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.Diagnostics; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Text; -using System.Collections; -using System.Globalization; -using MS.Internal; -using System.Windows; -using System.Windows.Media; -using System.Runtime.InteropServices; -using System.Security; -using MS.Internal.WindowsBase; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcher.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcher.cs index 791e1d4cfd7..f20321d1afa 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcher.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcher.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Threading; using System.Diagnostics.CodeAnalysis; -using System.Security; -using MS.Internal; -using MS.Win32; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcherThread.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcherThread.cs index eaaa121a5ce..6e80e818db1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcherThread.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcherThread.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using MS.Win32; -using System.Globalization; -using System.Security; -using MS.Internal.WindowsBase; - namespace System.Windows.Interop { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/IKeyboardInputSink.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/IKeyboardInputSink.cs index b2688608d8d..597ae093afb 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/IKeyboardInputSink.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/IKeyboardInputSink.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; using System.Windows.Input; namespace System.Windows.Interop diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/IKeyboardInputSite.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/IKeyboardInputSite.cs index 137e2c33b2d..775a5c2f1b8 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/IKeyboardInputSite.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/IKeyboardInputSite.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; using System.Windows.Input; namespace System.Windows.Interop diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/MSG.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/MSG.cs index d8d174765fc..24c29446c8b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/MSG.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/MSG.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; using System.Runtime.InteropServices; using System.Diagnostics.CodeAnalysis; -using System.Security; namespace System.Windows.Interop { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/LocalValueEnumerator.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/LocalValueEnumerator.cs index 83b82d7f552..08f1b423e58 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/LocalValueEnumerator.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/LocalValueEnumerator.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections; -using System.Diagnostics; -using MS.Internal.WindowsBase; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/IReceiveMarkupExtension.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/IReceiveMarkupExtension.cs index c3f80f3155a..d6658f0f7e7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/IReceiveMarkupExtension.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/IReceiveMarkupExtension.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.ComponentModel; -using System.Globalization; - namespace System.Windows.Markup { [Obsolete("IReceiveMarkupExtension has been deprecated. This interface is no longer in use.")] diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/InternalTypeHelper.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/InternalTypeHelper.cs index 79cae9001b3..34b252db5ef 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/InternalTypeHelper.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/InternalTypeHelper.cs @@ -2,18 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Defines a class that Provides methods used internally by the BamlReader to access -// allowed internal types, properties and events in Partial Trust. The markup compiler -// will generate a subclass of this class that provides an appropriate implementation -// in the user's code context. -// -// - -using System; -using System.Windows; using System.Reflection; using System.ComponentModel; using System.Globalization; @@ -24,7 +12,7 @@ namespace System.Windows.Markup /// Class that provides methods used internally by the BamlReader to access allowed /// internal types, properties and events in Partial Trust. The markup compiler /// will generate a subclass of this class that provides an appropriate implementation - /// in the user's code context. + /// in the user's code context. /// [EditorBrowsable(EditorBrowsableState.Never)] public abstract class InternalTypeHelper diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/Primitives/MarkupObject.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/Primitives/MarkupObject.cs index f98ccf27018..a3ca3e92e1c 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/Primitives/MarkupObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/Primitives/MarkupObject.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: API for iterating a tree of objects for serialization -// -// - -using System; using System.ComponentModel; -using System.Collections.Generic; -using System.Reflection; -using System.Text; -using System.Windows.Markup; namespace System.Windows.Markup.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/Primitives/MarkupProperty.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/Primitives/MarkupProperty.cs index ac71a281fb5..30b673ee8d1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/Primitives/MarkupProperty.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/Primitives/MarkupProperty.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// -// Contents: API for iterating a tree of objects for serialization -// -// - -using System; using System.ComponentModel; -using System.Collections.Generic; using System.Collections; -using System.Reflection; -using System.Text; - -using System.Windows; namespace System.Windows.Markup.Primitives { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/ServiceProviders.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/ServiceProviders.cs index 5155330b0ed..53bbcf999f7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/ServiceProviders.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/ServiceProviders.cs @@ -2,20 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: -// Proivde a implementation for IServiceProvider and method to add services -// -// - -using System; -using System.ComponentModel; -using System.Collections.Generic; -using MS.Internal.WindowsBase; - -///////////////////////////////////////////////////////////////////////////////////////// - namespace System.Windows.Markup { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/TypeTypeConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/TypeTypeConverter.cs index afa84668952..70d2c23b14b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/TypeTypeConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Markup/TypeTypeConverter.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.ComponentModel; #if PBTCOMPILER diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Converters/Generated/MatrixValueSerializer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Converters/Generated/MatrixValueSerializer.cs index c59f3f9558e..8b76c88bc19 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Converters/Generated/MatrixValueSerializer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Converters/Generated/MatrixValueSerializer.cs @@ -9,20 +9,7 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Windows; -using System.Windows.Media; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/DisableDpiAwarenessAttribute.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/DisableDpiAwarenessAttribute.cs index 700926088c6..0265a37dd5e 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/DisableDpiAwarenessAttribute.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/DisableDpiAwarenessAttribute.cs @@ -2,19 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// // By default, WPF application is Dpi-Aware when the UI layout is calculated. // But if in any case, an application wants to host WPF control and doesn't // want to support Dpi aware, the way to achieve it is to add below attribute // value in its application assembly. // // [assembly:System.Windows.Media.DisableDpiAwareness] -// -// - -using System; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Generated/Matrix.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Generated/Matrix.cs index 17d695c3fad..c09a7fbb3e7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Generated/Matrix.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Generated/Matrix.cs @@ -10,23 +10,10 @@ // using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Media.Converters; -using System.Windows; -using System.Windows.Media; // These types are aliased to match the unamanaged names used in interop -using BOOL = System.UInt32; -using WORD = System.UInt16; -using Float = System.Single; namespace System.Windows.Media { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Generated/MatrixConverter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Generated/MatrixConverter.cs index 35e54946684..2bd16379913 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Generated/MatrixConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Generated/MatrixConverter.cs @@ -9,20 +9,8 @@ // Please see MilCodeGen.html for more information. // -using MS.Internal; -using MS.Internal.WindowsBase; -using System; -using System.Collections; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.ComponentModel.Design.Serialization; -using System.Windows.Markup; -using System.Windows.Media.Converters; -using System.Windows; -using System.Windows.Media; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Matrix.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Matrix.cs index 2d04309ec0e..d0f483aaf64 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Matrix.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Media/Matrix.cs @@ -2,22 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.Diagnostics; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; using MS.Internal; -using MS.Internal.WindowsBase; -using System.Text; -using System.Collections; -using System.Globalization; -using System.Windows; -using System.Windows.Media; -using System.Runtime.InteropServices; -using System.Security; // IMPORTANT // diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/NameScope.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/NameScope.cs index 8f87b633bfd..ab1e9298e01 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/NameScope.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/NameScope.cs @@ -11,16 +11,11 @@ * \***************************************************************************/ -using System; -using System.Windows; using System.Collections; using System.Collections.Specialized; -using System.Globalization; using System.Windows.Markup; using System.ComponentModel; -using System.Collections.Generic; using MS.Internal; -using MS.Internal.WindowsBase; using System.Runtime.CompilerServices; namespace System.Windows diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Point.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Point.cs index 585a014c847..fc13ef5ae29 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Point.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Point.cs @@ -2,18 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Text; -using System.Collections; -using System.Globalization; -using System.Windows; using System.Windows.Media; -using System.Runtime.InteropServices; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/PropertyMetadata.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/PropertyMetadata.cs index a357b5bd001..dbbe971e83b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/PropertyMetadata.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/PropertyMetadata.cs @@ -4,14 +4,9 @@ using MS.Internal; using MS.Utility; -using System; -using System.Diagnostics; -using System.Collections.Generic; using System.Collections; using System.Windows.Threading; // for DispatcherObject -using MS.Internal.WindowsBase; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Rect.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Rect.cs index c9a5c5c06d5..78a84564b94 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Rect.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Rect.cs @@ -2,22 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.Diagnostics; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Text; -using System.Collections; -using System.Globalization; using MS.Internal; -using System.Windows; using System.Windows.Media; -using System.Runtime.InteropServices; -using System.Security; -using MS.Internal.WindowsBase; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Size.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Size.cs index 5b4757c273c..1cd6a657492 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Size.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Size.cs @@ -2,20 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using System.Text; -using System.Collections; -using System.Globalization; -using System.Windows; -using System.Windows.Media; -using System.Runtime.InteropServices; -using MS.Internal.WindowsBase; - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/SplashScreen.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/SplashScreen.cs index 75387f3a995..48f0eb8fdde 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/SplashScreen.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/SplashScreen.cs @@ -12,6 +12,7 @@ using System.Windows.Threading; using MS.Internal; using MS.Internal.KnownBoxes; +using MS.Win32; using MS.Internal.WindowsBase; using Windows.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs index acff8b95a56..6f7ccd53ba2 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs @@ -2,21 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; // Console -using System.Collections.Generic; // List -using MS.Win32; // win32 interop -using System.Windows.Interop; // ComponentDispatcher & MSG -using Microsoft.Win32; // Registry -using System.Security; // CAS -using System.Diagnostics; // Debug -using MS.Utility; // EventTrace -using System.Reflection; // Assembly -using System.Runtime.InteropServices; // SEHException -using MS.Internal; // SecurityCriticalData, TextServicesInterop -using MS.Internal.Interop; // WM -using MS.Internal.WindowsBase; // SecurityHelper +using MS.Win32; +using System.Windows.Interop; +using MS.Utility; +using System.Runtime.InteropServices; +using MS.Internal; +using MS.Internal.Interop; using System.Threading; -using System.ComponentModel; // EditorBrowsableAttribute, BrowsableAttribute +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherEventArgs.cs index 66ede39b89e..30031dd8dd0 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherEventArgs.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - -namespace System.Windows.Threading +namespace System.Windows.Threading { /// /// Base class for all event arguments associated with a . diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherExceptionEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherExceptionEventArgs.cs index f8440e547ed..2ff01e7e0ce 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherExceptionEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherExceptionEventArgs.cs @@ -2,19 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Arguments for the events that convey an exception that was -// raised while executing code via the Dispatcher. -// -// -// -// -// - -using System.Diagnostics; -using System; - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherExceptionFilterEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherExceptionFilterEventArgs.cs index 48546618f16..8786d844ee3 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherExceptionFilterEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherExceptionFilterEventArgs.cs @@ -2,21 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// -// -// Description: Arguments for the ExceptionFilter event. The event is raised -// when a dispatcher exception has occured. This event is raised -// before the callstack is unwound. -// -// -// -// - -using System.Diagnostics; - -using System; - -namespace System.Windows.Threading +namespace System.Windows.Threading { /// /// Arguments for the ExceptionFilter event. The event is raised when diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherFrame.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherFrame.cs index 8e7d8319b14..9eba34a7944 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherFrame.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherFrame.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherHookEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherHookEventArgs.cs index 565b6be8fb8..d63d1045ec5 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherHookEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherHookEventArgs.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherHooks.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherHooks.cs index 95136e0f2bf..83e49acf846 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherHooks.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherHooks.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Security; - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherObject.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherObject.cs index c9da2d95cab..bc91d3394ed 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherObject.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherObject.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows; using System.Threading; namespace System.Windows.Threading diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperation.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperation.cs index 48a752e33e9..3dcdd440808 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperation.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperation.cs @@ -2,15 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Security; using System.Threading; using System.ComponentModel; using System.Threading.Tasks; -using System.Collections.Generic; -using System.Diagnostics; using System.Runtime.CompilerServices; -using MS.Internal.WindowsBase; using MS.Internal; namespace System.Windows.Threading diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationStatus.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationStatus.cs index 85ef9a74951..aeaa5a27550 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationStatus.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationStatus.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationTaskMapping.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationTaskMapping.cs index 84ede68f20d..7a8d67a38ae 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationTaskMapping.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationTaskMapping.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Threading; -using System.Threading.Tasks; - namespace System.Windows.Threading { // An internal class used to store the operation that a task is diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationTaskSource.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationTaskSource.cs index 8db34039168..b17175bd3c7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationTaskSource.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperationTaskSource.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Windows.Threading; using System.Threading.Tasks; namespace System.Windows.Threading diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriority.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriority.cs index 90fe4c67a35..646e6924f43 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriority.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriority.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Runtime.InteropServices; - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriorityAwaitable.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriorityAwaitable.cs index 24cdf8c28e5..85c47a66632 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriorityAwaitable.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriorityAwaitable.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Threading; -using System.Threading.Tasks; -using MS.Internal.WindowsBase; - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriorityAwaiter.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriorityAwaiter.cs index a6fe73a42b4..f8786ae1d81 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriorityAwaiter.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherPriorityAwaiter.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Threading; -using System.Threading.Tasks; using System.Runtime.CompilerServices; -using MS.Internal.WindowsBase; namespace System.Windows.Threading { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherProcessingDisabled.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherProcessingDisabled.cs index c289caed3a0..8bb6c8ecc89 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherProcessingDisabled.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherProcessingDisabled.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherSynchronizationContext.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherSynchronizationContext.cs index 059ff606c85..62e83fd9726 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherSynchronizationContext.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherSynchronizationContext.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Threading; -using System.Diagnostics; -using System.ComponentModel; -using System.Security; // CAS -using System.Runtime.ConstrainedExecution; -using System.Windows; // BaseCompatibilityPreferences namespace System.Windows.Threading { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherTimer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherTimer.cs index c37d0858fa6..54246e21473 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherTimer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherTimer.cs @@ -2,14 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Threading; -using System.Windows; -using System.Diagnostics; -using System.Collections.Generic; -using MS.Internal.WindowsBase; - -namespace System.Windows.Threading +namespace System.Windows.Threading { /// /// A timer that is integrated into the Dispatcher queues, and will diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/PriorityRange.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/PriorityRange.cs index 3be6e754556..54c67b56a52 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/PriorityRange.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/PriorityRange.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using MS.Internal.WindowsBase; - namespace System.Windows.Threading { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/UncommonField.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/UncommonField.cs index 21355788225..e004eeab8e1 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/UncommonField.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/UncommonField.cs @@ -2,16 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Diagnostics; using System.Runtime.CompilerServices; using MS.Internal.KnownBoxes; namespace System.Windows { - /// - /// - /// internal class UncommonField { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/ValidateValueCallback.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/ValidateValueCallback.cs index 980dd89c29c..6bd183c05a3 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/ValidateValueCallback.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/ValidateValueCallback.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - namespace System.Windows { /// diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Vector.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Vector.cs index 4f48d9b3431..b09c6e53fcc 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Vector.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Vector.cs @@ -2,19 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// - -using System; -using System.ComponentModel; -using System.ComponentModel.Design.Serialization; -using System.Reflection; -using MS.Internal; -using System.Text; -using System.Collections; -using System.Globalization; -using System.Windows; using System.Windows.Media; -using System.Runtime.InteropServices; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/WeakEventManager.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/WeakEventManager.cs index 56e92583742..62bd3f9543d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/WeakEventManager.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/WeakEventManager.cs @@ -59,18 +59,11 @@ derived class and implementing a few simple methods. \***************************************************************************/ -using System; -using System.Diagnostics; // Debug -using System.Collections; // Hashtable -using System.Collections.Generic; // List using System.Reflection; // MethodInfo using System.Threading; // Interlocked -using System.Security; // -using System.Windows; // SR using System.Windows.Threading; // DispatcherObject using MS.Utility; // FrugalList using MS.Internal; // Invariant -using MS.Internal.WindowsBase; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/WeakEventManagerT.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/WeakEventManagerT.cs index 634d45e3181..7b7764d8653 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/WeakEventManagerT.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/WeakEventManagerT.cs @@ -7,9 +7,7 @@ // Description: Generic weak event manager. // -using System; using System.Reflection; -using MS.Internal.WindowsBase; namespace System.Windows { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/WindowsBase.csproj b/src/Microsoft.DotNet.Wpf/src/WindowsBase/WindowsBase.csproj index 6e819ddcde1..9910284e9b2 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/WindowsBase.csproj +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/WindowsBase.csproj @@ -25,6 +25,7 @@ Common\System\LocalAppContext.cs + @@ -38,7 +39,6 @@ - @@ -76,7 +76,6 @@ - diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/DCSafeHandle.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/DCSafeHandle.cs index 2c01658c4a1..cd97f7e46cb 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/DCSafeHandle.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/DCSafeHandle.cs @@ -1,10 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using Microsoft.Win32.SafeHandles; -using System.Runtime.InteropServices; -using System; namespace MS.Win32 { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/ExternDll.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/ExternDll.cs index 23c14c313d5..8d5e01c0a5b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/ExternDll.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/ExternDll.cs @@ -1,9 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; + namespace MS.Win32 { internal static class ExternDll diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/NativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/NativeMethods.cs index 48acae48cd7..a0c5dd7829c 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/NativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/NativeMethods.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; + //*************************************************************************** // DO NOT adjust the visibility of anything in these files. They are marked // internal on purpose. @@ -9,8 +11,6 @@ namespace MS.Win32 { - using System; - internal static class NativeMethods { public static IntPtr HWND_TOP = IntPtr.Zero; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/SafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/SafeNativeMethods.cs index 30c8ad0bb85..247d72a07a6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/SafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/SafeNativeMethods.cs @@ -1,7 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + +using System; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; + //*************************************************************************** // HOW TO USE THIS FILE // @@ -20,10 +24,6 @@ namespace MS.Win32 { - using System; - using System.Runtime.InteropServices; - using System.Runtime.Versioning; - internal static class SafeNativeMethods { [DllImport(ExternDll.User32, ExactSpelling = true, CharSet = System.Runtime.InteropServices.CharSet.Auto)] diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/UnsafeNativeMethods.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/UnsafeNativeMethods.cs index e019bca180d..802fea205f6 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/UnsafeNativeMethods.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/MS/Win32/UnsafeNativeMethods.cs @@ -1,11 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System; -using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; -using System.Security; using System.Runtime.Versioning; namespace MS.Win32 diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/OtherAssemblyAttrs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/OtherAssemblyAttrs.cs index ddae8f133fa..cfd0e7a2d75 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/OtherAssemblyAttrs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/OtherAssemblyAttrs.cs @@ -1,11 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Resources; -using System.Runtime.InteropServices; [assembly: System.Windows.Markup.XmlnsDefinition( diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Automation/Peers/WindowsFormsHostAutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Automation/Peers/WindowsFormsHostAutomationPeer.cs index e069df34bb1..6c351c77c39 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Automation/Peers/WindowsFormsHostAutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Automation/Peers/WindowsFormsHostAutomationPeer.cs @@ -1,11 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Automation; + using System.Windows.Automation.Provider; using System.Windows.Forms.Integration; -using System.Security; namespace System.Windows.Automation.Peers { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ApplicationInterop.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ApplicationInterop.cs index c06ac94025a..912b564a228 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ApplicationInterop.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ApplicationInterop.cs @@ -1,11 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Collections; + using System.Collections.Generic; using System.Diagnostics; -using System.Globalization; using System.Windows.Interop; using MS.Win32; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ChildChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ChildChangedEventArgs.cs index 74458e8f2b5..6234fbaad5b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ChildChangedEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ChildChangedEventArgs.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Diagnostics.CodeAnalysis; -using System.Globalization; namespace System.Windows.Forms.Integration { diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/Convert.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/Convert.cs index c2bc47065e4..c28bfe93e22 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/Convert.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/Convert.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using MS.Win32; -using System; + using System.Collections.Generic; -using System.Diagnostics; using SD = System.Drawing; using SDI = System.Drawing.Imaging; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ElementHost.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ElementHost.cs index a5f567896cf..d105958d707 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ElementHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ElementHost.cs @@ -1,8 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Collections.Generic; + using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; @@ -13,7 +12,6 @@ using System.Windows.Interop; using System.Windows.Markup; using System.Windows.Media; -using System.Security; using MS.Win32; using MS.Internal; using System.Runtime.Versioning; @@ -24,7 +22,6 @@ using SW = System.Windows; using SWC = System.Windows.Controls; -using SWM = System.Windows.Media; using SWMI = System.Windows.Media.Imaging; using SWI = System.Windows.Input; using SWT = System.Windows.Threading; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ElementHostPropertyMap.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ElementHostPropertyMap.cs index 6873bba4d78..02684c6343b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ElementHostPropertyMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/ElementHostPropertyMap.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Windows.Forms.Integration; -using System.Runtime.Serialization; + using System.Runtime.Versioning; using SWC = System.Windows.Controls; diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/HostUtils.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/HostUtils.cs index a1e6e48ac1a..f14b2359681 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/HostUtils.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/HostUtils.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; -using System.Globalization; + using System.IO; using System.Diagnostics; using System.Windows.Media; @@ -11,10 +9,8 @@ using System.Runtime.Versioning; using SD = System.Drawing; -using SDI = System.Drawing.Imaging; using SW = System.Windows; using SWM = System.Windows.Media; -using SWC = System.Windows.Controls; using MS.Win32; namespace System.Windows.Forms.Integration diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/IntegrationExceptionEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/IntegrationExceptionEventArgs.cs index a76c59827ff..460bc8a1c4b 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/IntegrationExceptionEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/IntegrationExceptionEventArgs.cs @@ -1,8 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Diagnostics.CodeAnalysis; + using System.Globalization; namespace System.Windows.Forms.Integration diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/PropertyMap.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/PropertyMap.cs index 2b5a4a9fbd8..f8e99c5ef0d 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/PropertyMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/PropertyMap.cs @@ -1,30 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System; + using System.Collections; using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Diagnostics; using System.Globalization; -using System.Data; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Windows.Interop; - -using MS.Win32; - -using SD = System.Drawing; -using SWF = System.Windows.Forms; - -using SW = System.Windows; -using SWC = System.Windows.Controls; -using SWM = System.Windows.Media; -using SWMI = System.Windows.Media.Imaging; -using SWS = System.Windows.Markup; -using SWI = System.Windows.Input; using System.Reflection; namespace System.Windows.Forms.Integration diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/PropertyMappingExceptionEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/PropertyMappingExceptionEventArgs.cs index 4207354b248..a491d960b5e 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/PropertyMappingExceptionEventArgs.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/PropertyMappingExceptionEventArgs.cs @@ -1,8 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - -using System.Diagnostics.CodeAnalysis; + using System.Globalization; namespace System.Windows.Forms.Integration diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/WindowsFormsHost.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/WindowsFormsHost.cs index 6392d0e839c..1145de6bc4c 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/WindowsFormsHost.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/WindowsFormsHost.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using MS.Win32; using System.ComponentModel; using System.Diagnostics; @@ -9,7 +9,6 @@ using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; -using System.Security; using System.Windows.Interop; using System.Windows.Markup; using System.Windows.Media; @@ -22,7 +21,6 @@ using SWF = System.Windows.Forms; using SWM = System.Windows.Media; using SWI = System.Windows.Input; -using System.Collections.Generic; using System.Windows.Input; namespace System.Windows.Forms.Integration diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/WindowsFormsHostPropertyMap.cs b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/WindowsFormsHostPropertyMap.cs index 93d24f9840c..b7ecdd683a7 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/WindowsFormsHostPropertyMap.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsFormsIntegration/System/Windows/Integration/WindowsFormsHostPropertyMap.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - + using System.Windows.Media; using System.Reflection; using System.Runtime.Versioning; @@ -10,7 +10,6 @@ using SD = System.Drawing; using SW = System.Windows; using SWM = System.Windows.Media; -using SWI = System.Windows.Input; using SWC = System.Windows.Controls; namespace System.Windows.Forms.Integration