diff --git a/Directory.Build.props b/Directory.Build.props
index 3b3c53502e5..e186a4b28c7 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -2,8 +2,8 @@
wpf
true
- net9.0
- 9.0
+ net10.0
+ 10.0
diff --git a/Microsoft.Dotnet.Wpf.sln b/Microsoft.Dotnet.Wpf.sln
index c3d86130ea5..8e9ef4410f3 100644
--- a/Microsoft.Dotnet.Wpf.sln
+++ b/Microsoft.Dotnet.Wpf.sln
@@ -381,6 +381,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Windows.Primitives-r
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PresentationFramework.Fluent.Tests", "src\Microsoft.DotNet.Wpf\tests\UnitTests\PresentationFramework.Fluent.Tests\PresentationFramework.Fluent.Tests.csproj", "{56833D74-2D0B-5516-C1D6-B93D4FFF7612}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Printing.Tests", "src\Microsoft.DotNet.Wpf\tests\UnitTests\System.Printing.Tests\System.Printing.Tests.csproj", "{762F6671-44CA-672D-B9C5-CFB69999F152}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|arm64 = Debug|arm64
@@ -1653,6 +1655,18 @@ Global
{56833D74-2D0B-5516-C1D6-B93D4FFF7612}.Release|x64.Build.0 = Release|x64
{56833D74-2D0B-5516-C1D6-B93D4FFF7612}.Release|x86.ActiveCfg = Release|x86
{56833D74-2D0B-5516-C1D6-B93D4FFF7612}.Release|x86.Build.0 = Release|x86
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Debug|arm64.ActiveCfg = Debug|arm64
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Debug|arm64.Build.0 = Debug|arm64
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Debug|x64.ActiveCfg = Debug|x64
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Debug|x64.Build.0 = Debug|x64
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Debug|x86.ActiveCfg = Debug|x86
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Debug|x86.Build.0 = Debug|x86
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Release|arm64.ActiveCfg = Release|arm64
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Release|arm64.Build.0 = Release|arm64
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Release|x64.ActiveCfg = Release|x64
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Release|x64.Build.0 = Release|x64
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Release|x86.ActiveCfg = Release|x86
+ {762F6671-44CA-672D-B9C5-CFB69999F152}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -1780,6 +1794,7 @@ Global
{5306FA93-178C-4535-ADEE-86B1DE1B68CB} = {2EE4A2DA-70B3-4767-9D18-618DA0FE3105}
{0EFFC7C4-B486-4852-8CED-EDEB46E02C42} = {D0AED517-9972-41CB-8751-983E4EB8F511}
{56833D74-2D0B-5516-C1D6-B93D4FFF7612} = {A48B585E-6AB0-4F8D-8484-77F37CB44437}
+ {762F6671-44CA-672D-B9C5-CFB69999F152} = {A48B585E-6AB0-4F8D-8484-77F37CB44437}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B4340004-DAC0-497D-B69D-CFA7CD93F567}
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index f19af284d60..238ba5fa9e5 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -1,189 +1,189 @@
-
+
https://github.com/dotnet/winforms
- 15ad0c1c6c9211af46f10f5f28501957e95c0bb3
+ 3b08ae7aa57fd1c9b8405a3d86620cb856e433dd
-
+
https://github.com/dotnet/winforms
- 15ad0c1c6c9211af46f10f5f28501957e95c0bb3
+ 3b08ae7aa57fd1c9b8405a3d86620cb856e433dd
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
https://dev.azure.com/dnceng/internal/_git/dotnet-wpf-int
726c62718af03d61fba006a54ad8d87c8abc64de
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/runtime
- 354ec46a63440608bda18e2203bb5538e2f8eae6
+ 670db5c71851946b9ec3f669f4a67d4339836a0e
-
+
https://github.com/dotnet/winforms
- 15ad0c1c6c9211af46f10f5f28501957e95c0bb3
+ 3b08ae7aa57fd1c9b8405a3d86620cb856e433dd
-
+
https://github.com/dotnet/arcade
- 2a3bf4e3a4c473135d058adcd7193a5a4bcd38a7
+ ae8d2a08f1021624ae37cdd5b65f6c05e58a051b
-
+
https://github.com/dotnet/arcade
- 2a3bf4e3a4c473135d058adcd7193a5a4bcd38a7
+ ae8d2a08f1021624ae37cdd5b65f6c05e58a051b
-
+
https://github.com/dotnet/arcade
- 2a3bf4e3a4c473135d058adcd7193a5a4bcd38a7
+ ae8d2a08f1021624ae37cdd5b65f6c05e58a051b
https://github.com/dotnet/arcade
f4e11a15c7b8a949d4a366e792a9843ff6e88cd5
-
+
https://github.com/dotnet/arcade
- 2a3bf4e3a4c473135d058adcd7193a5a4bcd38a7
+ ae8d2a08f1021624ae37cdd5b65f6c05e58a051b
https://github.com/dotnet/sourcelink
diff --git a/eng/Versions.props b/eng/Versions.props
index e324c2736e2..50901ba70ef 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -21,28 +21,28 @@
- 10.0.0-alpha.1.24576.6
+ 10.0.0-alpha.1.24628.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.6
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
4.6.0-preview4.19176.11
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
- 10.0.0-alpha.1.24576.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
+ 10.0.0-alpha.1.24628.1
6.0.0
diff --git a/eng/WpfArcadeSdk/tools/SdkReferences.targets b/eng/WpfArcadeSdk/tools/SdkReferences.targets
index 6bbded2bc68..8a8ef081d4b 100644
--- a/eng/WpfArcadeSdk/tools/SdkReferences.targets
+++ b/eng/WpfArcadeSdk/tools/SdkReferences.targets
@@ -125,6 +125,7 @@
And $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '3.0')) ">
+ <_WinFormsTargetFrameworkVersion Condition="'$(_WinFormsTargetFrameworkVersion)' == '' and '$(DotNetBuildOrchestrator)' == 'true'">$(NetCurrent)
<_WinFormsTargetFrameworkVersion Condition="'$(_WinFormsTargetFrameworkVersion)' == ''">$(_targetFrameworkRoot)
diff --git a/eng/common/core-templates/steps/install-microbuild.yml b/eng/common/core-templates/steps/install-microbuild.yml
index 9abe726e54b..2a6a529482b 100644
--- a/eng/common/core-templates/steps/install-microbuild.yml
+++ b/eng/common/core-templates/steps/install-microbuild.yml
@@ -1,19 +1,49 @@
parameters:
- # Enable cleanup tasks for MicroBuild
+ # Enable install tasks for MicroBuild
enableMicrobuild: false
- # Enable cleanup tasks for MicroBuild on Mac and Linux
+ # Enable install tasks for MicroBuild on Mac and Linux
# Will be ignored if 'enableMicrobuild' is false or 'Agent.Os' is 'Windows_NT'
enableMicrobuildForMacAndLinux: false
+ # Location of the MicroBuild output folder
+ microBuildOutputFolder: '$(Agent.TempDirectory)'
continueOnError: false
steps:
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
- # Remove Python downgrade with https://github.com/dotnet/arcade/issues/15151
- - ${{ if and(eq(parameters.enableMicrobuildForMacAndLinux, 'true'), ne(variables['Agent.Os'], 'Windows_NT')) }}:
+ - ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }}:
+ # Install Python 3.12.x on when Python > 3.12.x is installed - https://github.com/dotnet/source-build/issues/4802
+ - script: |
+ version=$(python3 --version | awk '{print $2}')
+ major=$(echo $version | cut -d. -f1)
+ minor=$(echo $version | cut -d. -f2)
+
+ installPython=false
+ if [ "$major" -gt 3 ] || { [ "$major" -eq 3 ] && [ "$minor" -gt 12 ]; }; then
+ installPython=true
+ fi
+
+ echo "Python version: $version."
+ echo "Install Python 3.12.x: $installPython."
+ echo "##vso[task.setvariable variable=installPython;isOutput=true]$installPython"
+ name: InstallPython
+ displayName: 'Determine Python installation'
+ condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
+
- task: UsePythonVersion@0
- displayName: 'Use Python 3.11.x'
inputs:
- versionSpec: '3.11.x'
+ versionSpec: '3.12.x'
+ displayName: 'Use Python 3.12.x'
+ condition: and(succeeded(), eq(variables['InstallPython.installPython'], 'true'), ne(variables['Agent.Os'], 'Windows_NT'))
+
+ # Needed to download the MicroBuild plugin nupkgs on Mac and Linux when nuget.exe is unavailable
+ - task: UseDotNet@2
+ displayName: Install .NET 8.0 SDK for MicroBuild Plugin
+ inputs:
+ packageType: sdk
+ version: 8.0.x
+ installationPath: ${{ parameters.microBuildOutputFolder }}/dotnet
+ workingDirectory: ${{ parameters.microBuildOutputFolder }}
+ condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
- task: MicroBuildSigningPlugin@4
displayName: Install MicroBuild plugin
@@ -25,7 +55,7 @@ steps:
azureSubscription: 'MicroBuild Signing Task (DevDiv)'
env:
TeamName: $(_TeamName)
- MicroBuildOutputFolderOverride: '$(Agent.TempDirectory)'
+ MicroBuildOutputFolderOverride: ${{ parameters.microBuildOutputFolder }}
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
continueOnError: ${{ parameters.continueOnError }}
condition: and(
diff --git a/eng/common/core-templates/steps/source-build.yml b/eng/common/core-templates/steps/source-build.yml
index 4da05afe054..f9ba1625c20 100644
--- a/eng/common/core-templates/steps/source-build.yml
+++ b/eng/common/core-templates/steps/source-build.yml
@@ -78,7 +78,7 @@ steps:
portableBuildArgs=
if [ '${{ parameters.platform.portableBuild }}' != '' ]; then
- portableBuildArgs='/p:PortabelBuild=${{ parameters.platform.portableBuild }}'
+ portableBuildArgs='/p:PortableBuild=${{ parameters.platform.portableBuild }}'
fi
${{ coalesce(parameters.platform.buildScript, './build.sh') }} --ci \
diff --git a/eng/common/cross/build-android-rootfs.sh b/eng/common/cross/build-android-rootfs.sh
index 7e9ba2b75ed..fbd8d80848a 100755
--- a/eng/common/cross/build-android-rootfs.sh
+++ b/eng/common/cross/build-android-rootfs.sh
@@ -6,10 +6,11 @@ usage()
{
echo "Creates a toolchain and sysroot used for cross-compiling for Android."
echo
- echo "Usage: $0 [BuildArch] [ApiLevel]"
+ echo "Usage: $0 [BuildArch] [ApiLevel] [--ndk NDKVersion]"
echo
echo "BuildArch is the target architecture of Android. Currently only arm64 is supported."
echo "ApiLevel is the target Android API level. API levels usually match to Android releases. See https://source.android.com/source/build-numbers.html"
+ echo "NDKVersion is the version of Android NDK. The default is r21. See https://developer.android.com/ndk/downloads/revision_history"
echo
echo "By default, the toolchain and sysroot will be generated in cross/android-rootfs/toolchain/[BuildArch]. You can change this behavior"
echo "by setting the TOOLCHAIN_DIR environment variable"
@@ -25,10 +26,15 @@ __BuildArch=arm64
__AndroidArch=aarch64
__AndroidToolchain=aarch64-linux-android
-for i in "$@"
- do
- lowerI="$(echo $i | tr "[:upper:]" "[:lower:]")"
- case $lowerI in
+while :; do
+ if [[ "$#" -le 0 ]]; then
+ break
+ fi
+
+ i=$1
+
+ lowerI="$(echo $i | tr "[:upper:]" "[:lower:]")"
+ case $lowerI in
-?|-h|--help)
usage
exit 1
@@ -43,6 +49,10 @@ for i in "$@"
__AndroidArch=arm
__AndroidToolchain=arm-linux-androideabi
;;
+ --ndk)
+ shift
+ __NDK_Version=$1
+ ;;
*[0-9])
__ApiLevel=$i
;;
@@ -50,8 +60,17 @@ for i in "$@"
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $i"
;;
esac
+ shift
done
+if [[ "$__NDK_Version" == "r21" ]] || [[ "$__NDK_Version" == "r22" ]]; then
+ __NDK_File_Arch_Spec=-x86_64
+ __SysRoot=sysroot
+else
+ __NDK_File_Arch_Spec=
+ __SysRoot=toolchains/llvm/prebuilt/linux-x86_64/sysroot
+fi
+
# Obtain the location of the bash script to figure out where the root of the repo is.
__ScriptBaseDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -78,6 +97,7 @@ fi
echo "Target API level: $__ApiLevel"
echo "Target architecture: $__BuildArch"
+echo "NDK version: $__NDK_Version"
echo "NDK location: $__NDK_Dir"
echo "Target Toolchain location: $__ToolchainDir"
@@ -85,8 +105,8 @@ echo "Target Toolchain location: $__ToolchainDir"
if [ ! -d $__NDK_Dir ]; then
echo Downloading the NDK into $__NDK_Dir
mkdir -p $__NDK_Dir
- wget -q --progress=bar:force:noscroll --show-progress https://dl.google.com/android/repository/android-ndk-$__NDK_Version-linux-x86_64.zip -O $__CrossDir/android-ndk-$__NDK_Version-linux-x86_64.zip
- unzip -q $__CrossDir/android-ndk-$__NDK_Version-linux-x86_64.zip -d $__CrossDir
+ wget -q --progress=bar:force:noscroll --show-progress https://dl.google.com/android/repository/android-ndk-$__NDK_Version-linux$__NDK_File_Arch_Spec.zip -O $__CrossDir/android-ndk-$__NDK_Version-linux.zip
+ unzip -q $__CrossDir/android-ndk-$__NDK_Version-linux.zip -d $__CrossDir
fi
if [ ! -d $__lldb_Dir ]; then
@@ -116,16 +136,11 @@ for path in $(wget -qO- https://packages.termux.dev/termux-main-21/dists/stable/
fi
done
-cp -R "$__TmpDir/data/data/com.termux/files/usr/"* "$__ToolchainDir/sysroot/usr/"
+cp -R "$__TmpDir/data/data/com.termux/files/usr/"* "$__ToolchainDir/$__SysRoot/usr/"
# Generate platform file for build.sh script to assign to __DistroRid
echo "Generating platform file..."
-echo "RID=android.${__ApiLevel}-${__BuildArch}" > $__ToolchainDir/sysroot/android_platform
-
-echo "Now to build coreclr, libraries and installers; run:"
-echo ROOTFS_DIR=\$\(realpath $__ToolchainDir/sysroot\) ./build.sh --cross --arch $__BuildArch \
- --subsetCategory coreclr
-echo ROOTFS_DIR=\$\(realpath $__ToolchainDir/sysroot\) ./build.sh --cross --arch $__BuildArch \
- --subsetCategory libraries
-echo ROOTFS_DIR=\$\(realpath $__ToolchainDir/sysroot\) ./build.sh --cross --arch $__BuildArch \
- --subsetCategory installer
+echo "RID=android.${__ApiLevel}-${__BuildArch}" > $__ToolchainDir/$__SysRoot/android_platform
+
+echo "Now to build coreclr, libraries and host; run:"
+echo ROOTFS_DIR=$(realpath $__ToolchainDir/$__SysRoot) ./build.sh clr+libs+host --cross --arch $__BuildArch
diff --git a/eng/common/cross/build-rootfs.sh b/eng/common/cross/build-rootfs.sh
index 20ae8c28687..464040aaaea 100755
--- a/eng/common/cross/build-rootfs.sh
+++ b/eng/common/cross/build-rootfs.sh
@@ -52,14 +52,12 @@ __UbuntuPackages+=" symlinks"
__UbuntuPackages+=" libicu-dev"
__UbuntuPackages+=" liblttng-ust-dev"
__UbuntuPackages+=" libunwind8-dev"
-__UbuntuPackages+=" libnuma-dev"
__AlpinePackages+=" gettext-dev"
__AlpinePackages+=" icu-dev"
__AlpinePackages+=" libunwind-dev"
__AlpinePackages+=" lttng-ust-dev"
__AlpinePackages+=" compiler-rt"
-__AlpinePackages+=" numactl-dev"
# runtime libraries' dependencies
__UbuntuPackages+=" libcurl4-openssl-dev"
@@ -73,8 +71,8 @@ __AlpinePackages+=" krb5-dev"
__AlpinePackages+=" openssl-dev"
__AlpinePackages+=" zlib-dev"
-__FreeBSDBase="13.3-RELEASE"
-__FreeBSDPkg="1.17.0"
+__FreeBSDBase="13.4-RELEASE"
+__FreeBSDPkg="1.21.3"
__FreeBSDABI="13"
__FreeBSDPackages="libunwind"
__FreeBSDPackages+=" icu"
@@ -371,7 +369,7 @@ while :; do
;;
freebsd14)
__CodeName=freebsd
- __FreeBSDBase="14.0-RELEASE"
+ __FreeBSDBase="14.2-RELEASE"
__FreeBSDABI="14"
__SkipUnmount=1
;;
@@ -424,13 +422,12 @@ case "$__AlpineVersion" in
elif [[ "$__AlpineArch" == "riscv64" ]]; then
__AlpineLlvmLibsLookup=1
__AlpineVersion=edge # minimum version with APKINDEX.tar.gz (packages archive)
+ elif [[ -n "$__AlpineMajorVersion" ]]; then
+ # use whichever alpine version is provided and select the latest toolchain libs
+ __AlpineLlvmLibsLookup=1
else
__AlpineVersion=3.13 # 3.13 to maximize compatibility
__AlpinePackages+=" llvm10-libs"
-
- if [[ "$__AlpineArch" == "armv7" ]]; then
- __AlpinePackages="${__AlpinePackages//numactl-dev/}"
- fi
fi
esac
@@ -444,11 +441,6 @@ if [[ "$__BuildArch" == "armel" ]]; then
__LLDB_Package="lldb-3.5-dev"
fi
-if [[ "$__CodeName" == "xenial" && "$__UbuntuArch" == "armhf" ]]; then
- # libnuma-dev is not available on armhf for xenial
- __UbuntuPackages="${__UbuntuPackages//libnuma-dev/}"
-fi
-
__UbuntuPackages+=" ${__LLDB_Package:-}"
if [[ -z "$__UbuntuRepo" ]]; then
@@ -574,7 +566,7 @@ elif [[ "$__CodeName" == "freebsd" ]]; then
curl -SL "https://download.freebsd.org/ftp/releases/${__FreeBSDArch}/${__FreeBSDMachineArch}/${__FreeBSDBase}/base.txz" | tar -C "$__RootfsDir" -Jxf - ./lib ./usr/lib ./usr/libdata ./usr/include ./usr/share/keys ./etc ./bin/freebsd-version
fi
echo "ABI = \"FreeBSD:${__FreeBSDABI}:${__FreeBSDMachineArch}\"; FINGERPRINTS = \"${__RootfsDir}/usr/share/keys\"; REPOS_DIR = [\"${__RootfsDir}/etc/pkg\"]; REPO_AUTOUPDATE = NO; RUN_SCRIPTS = NO;" > "${__RootfsDir}"/usr/local/etc/pkg.conf
- echo "FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly\", mirror_type: \"srv\", signature_type: \"fingerprints\", fingerprints: \"${__RootfsDir}/usr/share/keys/pkg\", enabled: yes }" > "${__RootfsDir}"/etc/pkg/FreeBSD.conf
+ echo "FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly\", mirror_type: \"srv\", signature_type: \"fingerprints\", fingerprints: \"/usr/share/keys/pkg\", enabled: yes }" > "${__RootfsDir}"/etc/pkg/FreeBSD.conf
mkdir -p "$__RootfsDir"/tmp
# get and build package manager
if [[ "$__hasWget" == 1 ]]; then
diff --git a/eng/common/cross/toolchain.cmake b/eng/common/cross/toolchain.cmake
index 9a4e285a5ae..0ff85cf0367 100644
--- a/eng/common/cross/toolchain.cmake
+++ b/eng/common/cross/toolchain.cmake
@@ -40,7 +40,7 @@ if(TARGET_ARCH_NAME STREQUAL "arm")
set(TOOLCHAIN "arm-linux-gnueabihf")
endif()
if(TIZEN)
- set(TIZEN_TOOLCHAIN "armv7hl-tizen-linux-gnueabihf/9.2.0")
+ set(TIZEN_TOOLCHAIN "armv7hl-tizen-linux-gnueabihf")
endif()
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
set(CMAKE_SYSTEM_PROCESSOR aarch64)
@@ -49,7 +49,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "arm64")
elseif(LINUX)
set(TOOLCHAIN "aarch64-linux-gnu")
if(TIZEN)
- set(TIZEN_TOOLCHAIN "aarch64-tizen-linux-gnu/9.2.0")
+ set(TIZEN_TOOLCHAIN "aarch64-tizen-linux-gnu")
endif()
elseif(FREEBSD)
set(triple "aarch64-unknown-freebsd12")
@@ -58,7 +58,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "armel")
set(CMAKE_SYSTEM_PROCESSOR armv7l)
set(TOOLCHAIN "arm-linux-gnueabi")
if(TIZEN)
- set(TIZEN_TOOLCHAIN "armv7l-tizen-linux-gnueabi/9.2.0")
+ set(TIZEN_TOOLCHAIN "armv7l-tizen-linux-gnueabi")
endif()
elseif(TARGET_ARCH_NAME STREQUAL "armv6")
set(CMAKE_SYSTEM_PROCESSOR armv6l)
@@ -67,6 +67,13 @@ elseif(TARGET_ARCH_NAME STREQUAL "armv6")
else()
set(TOOLCHAIN "arm-linux-gnueabihf")
endif()
+elseif(TARGET_ARCH_NAME STREQUAL "loongarch64")
+ set(CMAKE_SYSTEM_PROCESSOR "loongarch64")
+ if(EXISTS ${CROSS_ROOTFS}/usr/lib/gcc/loongarch64-alpine-linux-musl)
+ set(TOOLCHAIN "loongarch64-alpine-linux-musl")
+ else()
+ set(TOOLCHAIN "loongarch64-linux-gnu")
+ endif()
elseif(TARGET_ARCH_NAME STREQUAL "ppc64le")
set(CMAKE_SYSTEM_PROCESSOR ppc64le)
if(EXISTS ${CROSS_ROOTFS}/usr/lib/gcc/powerpc64le-alpine-linux-musl)
@@ -81,7 +88,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "riscv64")
else()
set(TOOLCHAIN "riscv64-linux-gnu")
if(TIZEN)
- set(TIZEN_TOOLCHAIN "riscv64-tizen-linux-gnu/13.1.0")
+ set(TIZEN_TOOLCHAIN "riscv64-tizen-linux-gnu")
endif()
endif()
elseif(TARGET_ARCH_NAME STREQUAL "s390x")
@@ -98,7 +105,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "x64")
elseif(LINUX)
set(TOOLCHAIN "x86_64-linux-gnu")
if(TIZEN)
- set(TIZEN_TOOLCHAIN "x86_64-tizen-linux-gnu/9.2.0")
+ set(TIZEN_TOOLCHAIN "x86_64-tizen-linux-gnu")
endif()
elseif(FREEBSD)
set(triple "x86_64-unknown-freebsd12")
@@ -115,10 +122,10 @@ elseif(TARGET_ARCH_NAME STREQUAL "x86")
set(TOOLCHAIN "i686-linux-gnu")
endif()
if(TIZEN)
- set(TIZEN_TOOLCHAIN "i586-tizen-linux-gnu/9.2.0")
+ set(TIZEN_TOOLCHAIN "i586-tizen-linux-gnu")
endif()
else()
- message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only arm, arm64, armel, armv6, ppc64le, riscv64, s390x, x64 and x86 are supported!")
+ message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only arm, arm64, armel, armv6, loongarch64, ppc64le, riscv64, s390x, x64 and x86 are supported!")
endif()
if(DEFINED ENV{TOOLCHAIN})
@@ -127,32 +134,46 @@ endif()
# Specify include paths
if(TIZEN)
- if(TARGET_ARCH_NAME STREQUAL "arm")
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/armv7hl-tizen-linux-gnueabihf)
- endif()
- if(TARGET_ARCH_NAME STREQUAL "armel")
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/armv7l-tizen-linux-gnueabi)
- endif()
- if(TARGET_ARCH_NAME STREQUAL "arm64")
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}/include/c++/aarch64-tizen-linux-gnu)
- endif()
- if(TARGET_ARCH_NAME STREQUAL "x86")
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/i586-tizen-linux-gnu)
- endif()
- if(TARGET_ARCH_NAME STREQUAL "x64")
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}/include/c++/x86_64-tizen-linux-gnu)
- endif()
- if(TARGET_ARCH_NAME STREQUAL "riscv64")
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
- include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}/include/c++/riscv64-tizen-linux-gnu)
+ function(find_toolchain_dir prefix)
+ # Dynamically find the version subdirectory
+ file(GLOB DIRECTORIES "${prefix}/*")
+ list(GET DIRECTORIES 0 FIRST_MATCH)
+ get_filename_component(TOOLCHAIN_VERSION ${FIRST_MATCH} NAME)
+
+ set(TIZEN_TOOLCHAIN_PATH "${prefix}/${TOOLCHAIN_VERSION}" PARENT_SCOPE)
+ endfunction()
+
+ if(TARGET_ARCH_NAME MATCHES "^(arm|armel|x86)$")
+ find_toolchain_dir("${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
+ else()
+ find_toolchain_dir("${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
endif()
+
+ message(STATUS "TIZEN_TOOLCHAIN_PATH set to: ${TIZEN_TOOLCHAIN_PATH}")
+
+ include_directories(SYSTEM ${TIZEN_TOOLCHAIN_PATH}/include/c++)
+ include_directories(SYSTEM ${TIZEN_TOOLCHAIN_PATH}/include/c++/${TIZEN_TOOLCHAIN})
endif()
+function(locate_toolchain_exec exec var)
+ set(TOOLSET_PREFIX ${TOOLCHAIN}-)
+ string(TOUPPER ${exec} EXEC_UPPERCASE)
+ if(NOT "$ENV{CLR_${EXEC_UPPERCASE}}" STREQUAL "")
+ set(${var} "$ENV{CLR_${EXEC_UPPERCASE}}" PARENT_SCOPE)
+ return()
+ endif()
+
+ find_program(EXEC_LOCATION_${exec}
+ NAMES
+ "${TOOLSET_PREFIX}${exec}${CLR_CMAKE_COMPILER_FILE_NAME_VERSION}"
+ "${TOOLSET_PREFIX}${exec}")
+
+ if (EXEC_LOCATION_${exec} STREQUAL "EXEC_LOCATION_${exec}-NOTFOUND")
+ message(FATAL_ERROR "Unable to find toolchain executable. Name: ${exec}, Prefix: ${TOOLSET_PREFIX}.")
+ endif()
+ set(${var} ${EXEC_LOCATION_${exec}} PARENT_SCOPE)
+endfunction()
+
if(ANDROID)
if(TARGET_ARCH_NAME STREQUAL "arm")
set(ANDROID_ABI armeabi-v7a)
@@ -183,66 +204,24 @@ elseif(FREEBSD)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fuse-ld=lld")
elseif(ILLUMOS)
set(CMAKE_SYSROOT "${CROSS_ROOTFS}")
+ set(CMAKE_SYSTEM_PREFIX_PATH "${CROSS_ROOTFS}")
+ set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES} -lssp")
+ set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lssp")
include_directories(SYSTEM ${CROSS_ROOTFS}/include)
- set(TOOLSET_PREFIX ${TOOLCHAIN}-)
- function(locate_toolchain_exec exec var)
- string(TOUPPER ${exec} EXEC_UPPERCASE)
- if(NOT "$ENV{CLR_${EXEC_UPPERCASE}}" STREQUAL "")
- set(${var} "$ENV{CLR_${EXEC_UPPERCASE}}" PARENT_SCOPE)
- return()
- endif()
-
- find_program(EXEC_LOCATION_${exec}
- NAMES
- "${TOOLSET_PREFIX}${exec}${CLR_CMAKE_COMPILER_FILE_NAME_VERSION}"
- "${TOOLSET_PREFIX}${exec}")
-
- if (EXEC_LOCATION_${exec} STREQUAL "EXEC_LOCATION_${exec}-NOTFOUND")
- message(FATAL_ERROR "Unable to find toolchain executable. Name: ${exec}, Prefix: ${TOOLSET_PREFIX}.")
- endif()
- set(${var} ${EXEC_LOCATION_${exec}} PARENT_SCOPE)
- endfunction()
-
- set(CMAKE_SYSTEM_PREFIX_PATH "${CROSS_ROOTFS}")
-
locate_toolchain_exec(gcc CMAKE_C_COMPILER)
locate_toolchain_exec(g++ CMAKE_CXX_COMPILER)
-
- set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES} -lssp")
- set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lssp")
elseif(HAIKU)
set(CMAKE_SYSROOT "${CROSS_ROOTFS}")
set(CMAKE_PROGRAM_PATH "${CMAKE_PROGRAM_PATH};${CROSS_ROOTFS}/cross-tools-x86_64/bin")
-
- set(TOOLSET_PREFIX ${TOOLCHAIN}-)
- function(locate_toolchain_exec exec var)
- string(TOUPPER ${exec} EXEC_UPPERCASE)
- if(NOT "$ENV{CLR_${EXEC_UPPERCASE}}" STREQUAL "")
- set(${var} "$ENV{CLR_${EXEC_UPPERCASE}}" PARENT_SCOPE)
- return()
- endif()
-
- find_program(EXEC_LOCATION_${exec}
- NAMES
- "${TOOLSET_PREFIX}${exec}${CLR_CMAKE_COMPILER_FILE_NAME_VERSION}"
- "${TOOLSET_PREFIX}${exec}")
-
- if (EXEC_LOCATION_${exec} STREQUAL "EXEC_LOCATION_${exec}-NOTFOUND")
- message(FATAL_ERROR "Unable to find toolchain executable. Name: ${exec}, Prefix: ${TOOLSET_PREFIX}.")
- endif()
- set(${var} ${EXEC_LOCATION_${exec}} PARENT_SCOPE)
- endfunction()
-
set(CMAKE_SYSTEM_PREFIX_PATH "${CROSS_ROOTFS}")
+ set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES} -lssp")
+ set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lssp")
locate_toolchain_exec(gcc CMAKE_C_COMPILER)
locate_toolchain_exec(g++ CMAKE_CXX_COMPILER)
- set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES} -lssp")
- set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lssp")
-
# let CMake set up the correct search paths
include(Platform/Haiku)
else()
@@ -272,21 +251,21 @@ endif()
if(TARGET_ARCH_NAME MATCHES "^(arm|armel)$")
if(TIZEN)
- add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
+ add_toolchain_linker_flag("-B${TIZEN_TOOLCHAIN_PATH}")
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib")
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib")
- add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
+ add_toolchain_linker_flag("-L${TIZEN_TOOLCHAIN_PATH}")
endif()
elseif(TARGET_ARCH_NAME MATCHES "^(arm64|x64|riscv64)$")
if(TIZEN)
- add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
+ add_toolchain_linker_flag("-B${TIZEN_TOOLCHAIN_PATH}")
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib64")
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib64")
- add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
+ add_toolchain_linker_flag("-L${TIZEN_TOOLCHAIN_PATH}")
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/lib64")
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib64")
- add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
+ add_toolchain_linker_flag("-Wl,--rpath-link=${TIZEN_TOOLCHAIN_PATH}")
endif()
elseif(TARGET_ARCH_NAME STREQUAL "s390x")
add_toolchain_linker_flag("--target=${TOOLCHAIN}")
@@ -297,10 +276,10 @@ elseif(TARGET_ARCH_NAME STREQUAL "x86")
endif()
add_toolchain_linker_flag(-m32)
if(TIZEN)
- add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
+ add_toolchain_linker_flag("-B${TIZEN_TOOLCHAIN_PATH}")
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib")
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib")
- add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
+ add_toolchain_linker_flag("-L${TIZEN_TOOLCHAIN_PATH}")
endif()
elseif(ILLUMOS)
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib/amd64")
@@ -312,7 +291,7 @@ endif()
# Specify compile options
-if((TARGET_ARCH_NAME MATCHES "^(arm|arm64|armel|armv6|ppc64le|riscv64|s390x|x64|x86)$" AND NOT ANDROID AND NOT FREEBSD) OR ILLUMOS OR HAIKU)
+if((TARGET_ARCH_NAME MATCHES "^(arm|arm64|armel|armv6|loongarch64|ppc64le|riscv64|s390x|x64|x86)$" AND NOT ANDROID AND NOT FREEBSD) OR ILLUMOS OR HAIKU)
set(CMAKE_C_COMPILER_TARGET ${TOOLCHAIN})
set(CMAKE_CXX_COMPILER_TARGET ${TOOLCHAIN})
set(CMAKE_ASM_COMPILER_TARGET ${TOOLCHAIN})
diff --git a/eng/common/native/install-dependencies.sh b/eng/common/native/install-dependencies.sh
index dc396a95560..71bde0e4573 100644
--- a/eng/common/native/install-dependencies.sh
+++ b/eng/common/native/install-dependencies.sh
@@ -27,7 +27,7 @@ case "$os" in
libssl-dev libkrb5-dev zlib1g-dev pigz cpio
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
- elif [ "$ID" = "fedora" ]; then
+ elif [ "$ID" = "fedora" ] || [ "$ID" = "rhel" ]; then
dnf install -y cmake llvm lld lldb clang python curl libicu-devel openssl-devel krb5-devel zlib-devel lttng-ust-devel pigz cpio
elif [ "$ID" = "alpine" ]; then
apk add build-base cmake bash curl clang llvm-dev lld lldb krb5-dev lttng-ust-dev icu-dev zlib-dev openssl-dev pigz cpio
@@ -44,15 +44,11 @@ case "$os" in
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
# Skip brew update for now, see https://github.com/actions/setup-python/issues/577
# brew update --preinstall
-
- # Temporarily uninstall pkg-config@0.29.2 to work around https://github.com/actions/runner-images/issues/10984
- brew uninstall --ignore-dependencies --force pkg-config@0.29.2
-
brew bundle --no-upgrade --no-lock --file=- <
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.WinFX.targets b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets
index 52e6026b206..c6923bce5d5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets
@@ -1,7 +1,7 @@
- <_PresentationBuildTasksTfm Condition="'$(MSBuildRuntimeType)' == 'Core'">net9.0
+ <_PresentationBuildTasksTfm Condition="'$(MSBuildRuntimeType)' == 'Core'">net10.0
<_PresentationBuildTasksTfm Condition="'$(MSBuildRuntimeType)' != 'Core'">net472
<_PresentationBuildTasksAssembly Condition="'$(_PresentationBuildTasksAssembly)'==''">$([MSBuild]::Unescape($([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\tools\$(_PresentationBuildTasksTfm)\PresentationBuildTasks.dll'))))
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/PresentationBuildTasks/PresentationBuildTasks.csproj b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/PresentationBuildTasks.csproj
index feb1f48042d..8627c32bddd 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/PresentationBuildTasks.csproj
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/PresentationBuildTasks.csproj
@@ -1,6 +1,6 @@

- net472;net9.0
+ net472;net10.0
false
true
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..a289215d26b 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;
@@ -88,7 +79,7 @@ private IList UserCompositeFonts
{
if (_userCompositeFonts == null)
{
- _userCompositeFonts = GetCompositeFontList(new FontSourceCollection(_folderUri, false, true));
+ _userCompositeFonts = GetCompositeFontList(new FontSourceCollection(_folderUri, true));
}
return _userCompositeFonts;
}
@@ -249,7 +240,6 @@ internal static CompositeFontFamily GetCompositeFontFamilyAtIndex(int index)
if (_systemCompositeFonts[index] == null)
{
FontSource fontSource = new FontSource(new Uri(Path.Combine(FamilyCollection.SxSFontsResourcePrefix, _systemCompositeFontsFileNames[index] + Util.CompositeFontExtension), UriKind.RelativeOrAbsolute),
- skipDemand:true,
isComposite:true,
isInternalCompositeFont:true);
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..795e3baa52e 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
@@ -39,7 +25,7 @@ public FontSourceFactory() { }
public IFontSource Create(string uriString)
{
- return new FontSource(new Uri(uriString), false);
+ return new FontSource(new Uri(uriString));
}
}
@@ -57,31 +43,29 @@ internal class FontSource : IFontSource
#region Constructors
- public FontSource(Uri fontUri, bool skipDemand)
+ public FontSource(Uri fontUri)
{
- Initialize(fontUri, skipDemand, false, isInternalCompositeFont: false);
+ Initialize(fontUri, false, isInternalCompositeFont: false);
}
- public FontSource(Uri fontUri, bool skipDemand, bool isComposite)
+ public FontSource(Uri fontUri, bool isComposite)
{
- Initialize(fontUri, skipDemand, isComposite, isInternalCompositeFont: false);
+ Initialize(fontUri, isComposite, isInternalCompositeFont: false);
}
///
/// Allows WPF to construct its internal CompositeFonts from resource URIs.
///
///
- ///
///
- public FontSource(Uri fontUri, bool skipDemand, bool isComposite, bool isInternalCompositeFont)
+ public FontSource(Uri fontUri, bool isComposite, bool isInternalCompositeFont)
{
- Initialize(fontUri, skipDemand, isComposite, isInternalCompositeFont);
+ Initialize(fontUri, isComposite, isInternalCompositeFont);
}
- private void Initialize(Uri fontUri, bool skipDemand, bool isComposite, bool isInternalCompositeFont)
+ private void Initialize(Uri fontUri, bool isComposite, bool isInternalCompositeFont)
{
_fontUri = fontUri;
- _skipDemand = skipDemand;
_isComposite = isComposite;
_isInternalCompositeFont = isInternalCompositeFont;
Invariant.Assert(_isInternalCompositeFont || _fontUri.IsAbsoluteUri);
@@ -101,7 +85,13 @@ private void Initialize(Uri fontUri, bool skipDemand, bool isComposite, bool isI
///
/// Use this to ensure we don't call Uri.IsFile on a relative URI.
///
- public bool IsFile { get { return !_isInternalCompositeFont && _fontUri.IsFile; } }
+ public bool IsFile
+ {
+ get
+ {
+ return !_isInternalCompositeFont && _fontUri.IsFile;
+ }
+ }
public bool IsComposite
{
@@ -433,8 +423,6 @@ protected override void Dispose(bool disposing)
private Uri _fontUri;
- private bool _skipDemand;
-
private static SizeLimitedCache _resourceCache = new SizeLimitedCache(MaximumCacheItems);
///
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..05449b5fe04 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
@@ -40,7 +21,7 @@ public FontSourceCollectionFactory() { }
public IFontSourceCollection Create(string uriString)
{
- return new FontSourceCollection(new Uri(uriString), false);
+ return new FontSourceCollection(new Uri(uriString));
}
}
@@ -49,20 +30,19 @@ public IFontSourceCollection Create(string uriString)
///
internal class FontSourceCollection : IFontSourceCollection
{
- public FontSourceCollection(Uri folderUri, bool isWindowsFonts)
+ public FontSourceCollection(Uri folderUri)
{
- Initialize(folderUri, isWindowsFonts, false);
+ Initialize(folderUri, false);
}
- public FontSourceCollection(Uri folderUri, bool isWindowsFonts, bool tryGetCompositeFontsOnly)
+ public FontSourceCollection(Uri folderUri, bool tryGetCompositeFontsOnly)
{
- Initialize(folderUri, isWindowsFonts, tryGetCompositeFontsOnly);
+ Initialize(folderUri, tryGetCompositeFontsOnly);
}
- private void Initialize(Uri folderUri, bool isWindowsFonts, bool tryGetCompositeFontsOnly)
+ private void Initialize(Uri folderUri, bool tryGetCompositeFontsOnly)
{
_uri = folderUri;
- _isWindowsFonts = isWindowsFonts;
_tryGetCompositeFontsOnly = tryGetCompositeFontsOnly;
bool isComposite = false;
@@ -74,7 +54,7 @@ private void Initialize(Uri folderUri, bool isWindowsFonts, bool tryGetComposite
if (isSingleSupportedFile || !Util.IsEnumerableFontUriScheme(_uri))
{
_fontSources = new List(1);
- _fontSources.Add(new FontSource(_uri, false, isComposite));
+ _fontSources.Add(new FontSource(_uri, isComposite));
}
else
{
@@ -88,27 +68,11 @@ private void InitializeDirectoryProperties()
if (_uri.IsFile)
{
- if (_isWindowsFonts)
- {
- if (object.ReferenceEquals(_uri, Util.WindowsFontsUriObject))
- {
- // We know the local path and that it's a folder
- _isFileSystemFolder = true;
- }
- else
- {
- // It's a file within the Windows Fonts folder
- _isFileSystemFolder = false;
- }
- }
- else
- {
- // Get the local path
- string localPath = _uri.LocalPath;
+ // Get the local path
+ string localPath = _uri.LocalPath;
- // Decide if it's a file or folder based on syntax, not contents of file system
- _isFileSystemFolder = localPath[localPath.Length - 1] == Path.DirectorySeparatorChar;
- }
+ // Decide if it's a file or folder based on syntax, not contents of file system
+ _isFileSystemFolder = localPath[localPath.Length - 1] == Path.DirectorySeparatorChar;
}
}
@@ -126,55 +90,14 @@ private void SetFontSources()
bool isOnlyCompositeFontFiles = false;
if (_isFileSystemFolder)
{
- if (_isWindowsFonts)
+ if (_tryGetCompositeFontsOnly)
{
- if (_tryGetCompositeFontsOnly)
- {
- files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension);
- isOnlyCompositeFontFiles = true;
- }
- else
- {
- // fontPaths accumulates font file paths obtained from the registry and the file system
- // This collection is a set, i.e. only keys matter, not values.
- HashSet fontPaths = new HashSet(512, StringComparer.OrdinalIgnoreCase);
-
- using (RegistryKey fontsKey = Registry.LocalMachine.OpenSubKey(InstalledWindowsFontsRegistryKey))
- {
- // The registry key should be present on a valid Windows installation.
- Invariant.Assert(fontsKey != null);
-
- foreach (string fontValue in fontsKey.GetValueNames())
- {
- string fileName = fontsKey.GetValue(fontValue) as string;
- if (fileName != null)
- {
- // See if the path doesn't contain any directory information.
- // Shell uses the same method to determine whether to prepend the path with %windir%\fonts.
- if (Path.GetFileName(fileName) == fileName)
- fileName = Path.Combine(Util.WindowsFontsLocalPath, fileName);
-
- fontPaths.Add(fileName);
- }
- }
- }
-
- fontPaths.UnionWith(Directory.EnumerateFiles(_uri.LocalPath));
-
- files = fontPaths;
- }
-}
+ files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension);
+ isOnlyCompositeFontFiles = true;
+ }
else
{
- if (_tryGetCompositeFontsOnly)
- {
- files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension);
- isOnlyCompositeFontFiles = true;
- }
- else
- {
- files = Directory.GetFiles(_uri.LocalPath);
- }
+ files = Directory.GetFiles(_uri.LocalPath);
}
}
else
@@ -187,7 +110,7 @@ private void SetFontSources()
{
foreach (string file in files)
{
- fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), _isWindowsFonts, true));
+ fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), true));
}
}
else
@@ -196,7 +119,7 @@ private void SetFontSources()
foreach (string file in files)
{
if (Util.IsSupportedFontExtension(Path.GetExtension(file), out isComposite))
- fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), _isWindowsFonts, isComposite));
+ fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), isComposite));
}
}
}
@@ -220,12 +143,12 @@ private void SetFontSources()
if (String.IsNullOrEmpty(resourceName))
{
isComposite = Util.IsCompositeFont(Path.GetExtension(_uri.AbsoluteUri));
- fontSources.Add(new FontSource(_uri, _isWindowsFonts, isComposite));
+ fontSources.Add(new FontSource(_uri, isComposite));
}
else
{
isComposite = Util.IsCompositeFont(Path.GetExtension(resourceName));
- fontSources.Add(new FontSource(new Uri(_uri, resourceName), _isWindowsFonts, isComposite));
+ fontSources.Add(new FontSource(new Uri(_uri, resourceName), isComposite));
}
}
}
@@ -259,17 +182,11 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
private Uri _uri;
- private bool _isWindowsFonts;
-
// _isFileSystemFolder flag makes sense only when _uri.IsFile is set to true.
private bool _isFileSystemFolder;
private volatile IList _fontSources;
// Flag to indicate that only composite fonts in the provided URI location should be retrieved.
private bool _tryGetCompositeFontsOnly;
-
- private const string InstalledWindowsFontsRegistryKey = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts";
- private const string InstalledWindowsFontsRegistryKeyFullPath = @"HKEY_LOCAL_MACHINE\" + InstalledWindowsFontsRegistryKey;
-}
+ }
}
-
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..a39dd8e6cb9 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;
@@ -60,7 +58,7 @@ public static CultureInfo GetSpecificCulture(CultureInfo runCulture)
try
{
CultureInfo culture = CultureInfo.CreateSpecificCulture(cultureName);
- specificCulture = SafeSecurityHelper.GetCultureInfoByIetfLanguageTag(culture.IetfLanguageTag);
+ specificCulture = CultureInfo.GetCultureInfoByIetfLanguageTag(culture.IetfLanguageTag);
}
catch (ArgumentException)
{
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..9fd06bee0ad 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
{
@@ -137,7 +131,7 @@ private InputPane(IntPtr? hwnd)
///
internal static InputPane GetForWindow(HwndSource source)
{
- return new InputPane(source?.CriticalHandle ?? null);
+ return new InputPane(source?.Handle ?? null);
}
///
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..4f1fcec9257 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj
@@ -22,6 +22,7 @@
+
@@ -47,10 +48,8 @@
-
-
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..541c601796c 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
{
@@ -276,8 +272,8 @@ internal static Point TranslatePoint(Point pt, DependencyObject from, Dependency
HwndSource sourceTo = PresentationSource.CriticalFromVisual(rootTo) as HwndSource;
- if(sourceFrom != null && sourceFrom.CriticalHandle != IntPtr.Zero && sourceFrom.CompositionTarget != null &&
- sourceTo != null && sourceTo.CriticalHandle != IntPtr.Zero && sourceTo.CompositionTarget != null)
+ if(sourceFrom != null && sourceFrom.Handle != IntPtr.Zero && sourceFrom.CompositionTarget != null &&
+ sourceTo != null && sourceTo.Handle != IntPtr.Zero && sourceTo.CompositionTarget != null)
{
// Translate the point into client coordinates.
ptTranslated = PointUtil.RootToClient(ptTranslated, sourceFrom);
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..96312159a4d 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,41 +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;
-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;
- if(hwndSource == null || IntPtr.Zero == (hwndSource).CriticalHandle)
+ if(hwndSource == null || IntPtr.Zero == (hwndSource).Handle)
{
throw new InvalidOperationException(SR.Stylus_PenContextFailure);
}
@@ -52,7 +30,7 @@ internal void Enable()
if (_contexts == null)
{
// create contexts
- _contexts = _stylusLogic.WispTabletDevices.CreateContexts(_inputSource.CriticalHandle, this);
+ _contexts = _stylusLogic.WispTabletDevices.CreateContexts(_inputSource.Handle, this);
foreach(PenContext context in _contexts)
{
@@ -224,14 +202,14 @@ internal void AddContext(uint index)
{
// We only tear down the old context when PenContexts are enabled without being
// dispose and we have a valid index. Otherwise, no-op here.
- if (_contexts is not null && index <= _contexts.Length && _inputSource.CriticalHandle != 0)
+ if (_contexts is not null && index <= _contexts.Length && _inputSource.Handle != 0)
{
PenContext[] ctxs = new PenContext[_contexts.Length + 1];
uint preCopyCount = index;
uint postCopyCount = (uint)_contexts.Length - index;
Array.Copy(_contexts, 0, ctxs, 0, preCopyCount);
- PenContext newContext = _stylusLogic.TabletDevices[(int)index].As().CreateContext(_inputSource.CriticalHandle, this);
+ PenContext newContext = _stylusLogic.TabletDevices[(int)index].As().CreateContext(_inputSource.Handle, this);
ctxs[index] = newContext;
Array.Copy(_contexts, index, ctxs, index+1, postCopyCount);
_contexts = ctxs;
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..36ed19372e4 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
{
@@ -645,7 +636,7 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
// We can only Activate the window without flashing the tray icon for it when
// we are processing an Input message. So we defer it till we see the mouse down.
HwndSource hwndSource = mouseInputReport.InputSource as HwndSource;
- IntPtr hwnd = hwndSource != null ? hwndSource.CriticalHandle : IntPtr.Zero;
+ IntPtr hwnd = hwndSource != null ? hwndSource.Handle : IntPtr.Zero;
// If we see a stylusdown and we are not the foreground window
// and there's no capture then make sure we get activated.
@@ -3163,7 +3154,7 @@ internal void RegisterHwndForInput(InputManager inputManager, PresentationSource
}
// Detect if this window is disabled. If so then let the pencontexts know.
- int style = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, hwndSource.CriticalHandle), NativeMethods.GWL_STYLE);
+ int style = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, hwndSource.Handle), NativeMethods.GWL_STYLE);
if ((style & NativeMethods.WS_DISABLED) != 0)
{
penContexts.IsWindowDisabled = true;
@@ -3201,7 +3192,7 @@ internal void UnRegisterHwndForInput(HwndSource hwndSource)
penContexts.Disable(shutdownWorkThread);
// Make sure we remember the last location of this window for mapping stylus input later.
- if (UnsafeNativeMethods.IsWindow(new HandleRef(hwndSource, hwndSource.CriticalHandle)))
+ if (UnsafeNativeMethods.IsWindow(new HandleRef(hwndSource, hwndSource.Handle)))
{
penContexts.DestroyedLocation = PointUtil.ClientToScreen(new Point(0, 0), hwndSource);
}
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..ec7e89c3131 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
{
///
@@ -747,14 +735,10 @@ private void SendPresent(object sender, EventArgs args)
///
private object SetIsFrontBufferAvailable(object isAvailableVersionPair)
{
- Pair pair = (Pair)isAvailableVersionPair;
- uint version = (uint)pair.Second;
+ (bool isFrontBufferAvailable, uint version) = (Tuple)isAvailableVersionPair;
- if (version == _version)
- {
- bool isFrontBufferAvailable = (bool)pair.First;
+ if (_version == version)
SetValue(IsFrontBufferAvailablePropertyKey, isFrontBufferAvailable);
- }
// ...just because DispatcherOperationCallback requires returning an object
return null;
@@ -771,11 +755,9 @@ private object SetIsFrontBufferAvailable(object isAvailableVersionPair)
// NOTE: Called from the render thread!We must execute the reaction on the UI thread.
private void Callback(bool isFrontBufferAvailable, uint version)
{
- Dispatcher.BeginInvoke(
- DispatcherPriority.Normal,
- new DispatcherOperationCallback(SetIsFrontBufferAvailable),
- new Pair(BooleanBoxes.Box(isFrontBufferAvailable), version)
- );
+ Tuple parameters = new(isFrontBufferAvailable, version);
+
+ Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(SetIsFrontBufferAvailable), parameters);
}
internal override void UpdateResource(DUCE.Channel channel, bool skipOnChannelCheck)
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..0f50ec60bda 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
{
@@ -68,7 +62,7 @@ bool IKeyboardInputProvider.AcquireFocus(bool checkOnly)
_restoreFocus = null;
}
- HandleRef thisWindow = new HandleRef(this, _source.CriticalHandle);
+ HandleRef thisWindow = new HandleRef(this, _source.Handle);
IntPtr focus = UnsafeNativeMethods.GetFocus();
int windowStyle = UnsafeNativeMethods.GetWindowLong(thisWindow, NativeMethods.GWL_EXSTYLE);
@@ -129,7 +123,7 @@ bool IKeyboardInputProvider.AcquireFocus(bool checkOnly)
// deactivated. Now we detect that we already have
// Win32 focus but are not activated and treat it the
// same as getting focus.
- if (!_active && focus == _source.CriticalHandle)
+ if (!_active && focus == _source.Handle)
{
OnSetFocus(focus);
}
@@ -143,7 +137,7 @@ bool IKeyboardInputProvider.AcquireFocus(bool checkOnly)
}
}
- result = (focus == _source.CriticalHandle);
+ result = (focus == _source.Handle);
}
}
catch(System.ComponentModel.Win32Exception)
@@ -331,7 +325,7 @@ internal IntPtr FilterMessage(IntPtr hwnd, WindowMessage message, IntPtr wParam,
// This is our clue that the keyboard is inactive.
case WindowMessage.WM_KILLFOCUS:
{
- if(_active && wParam != _source.CriticalHandle )
+ if(_active && wParam != _source.Handle )
{
// Console.WriteLine("WM_KILLFOCUS");
@@ -340,7 +334,7 @@ internal IntPtr FilterMessage(IntPtr hwnd, WindowMessage message, IntPtr wParam,
// when the window that's acquiring focus (wParam) is
// a descendant of our window, remember the immediate
// child so that we can restore focus to it.
- _restoreFocusWindow = GetImmediateChildFor((IntPtr)wParam, _source.CriticalHandle);
+ _restoreFocusWindow = GetImmediateChildFor((IntPtr)wParam, _source.Handle);
_restoreFocus = null;
@@ -497,7 +491,7 @@ private void OnSetFocus(IntPtr hwnd)
// this window, we do not allow the focused element to be in
// a different window.
IntPtr focus = UnsafeNativeMethods.GetFocus();
- if (focus == thisSource.CriticalHandle)
+ if (focus == thisSource.Handle)
{
restoreFocusDO = (DependencyObject)Keyboard.FocusedElement;
if (restoreFocusDO != null)
@@ -721,7 +715,7 @@ private void PossiblyDeactivate(IntPtr hwndFocus)
// Only deactivate the keyboard input stream if needed.
if(deactivate)
{
- ReportInput(_source.CriticalHandle,
+ ReportInput(_source.Handle,
InputMode.Foreground,
_msgTime,
RawKeyboardActions.Deactivate,
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..17399deeb80 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
@@ -39,7 +35,7 @@ public void Dispose()
//Console.WriteLine("Disposing");
// Cleanup the mouse tracking.
- StopTracking(_source.CriticalHandle);
+ StopTracking(_source.Handle);
// If we have capture, release it.
try
@@ -80,7 +76,7 @@ void IInputProvider.NotifyDeactivate()
{
if(_active)
{
- StopTracking(_source.CriticalHandle);
+ StopTracking(_source.Handle);
_active = false;
}
@@ -125,9 +121,9 @@ bool IMouseInputProvider.CaptureMouse()
try
{
- SafeNativeMethods.SetCapture(new HandleRef(this, _source.CriticalHandle));
+ SafeNativeMethods.SetCapture(new HandleRef(this, _source.Handle));
IntPtr capture = SafeNativeMethods.GetCapture();
- if (capture != _source.CriticalHandle)
+ if (capture != _source.Handle)
{
success = false;
}
@@ -155,7 +151,7 @@ bool IMouseInputProvider.CaptureMouse()
{
try
{
- SafeNativeMethods.ScreenToClient(new HandleRef(this, _source.CriticalHandle), ref ptCursor);
+ SafeNativeMethods.ScreenToClient(new HandleRef(this, _source.Handle), ref ptCursor);
}
catch(System.ComponentModel.Win32Exception)
{
@@ -166,7 +162,7 @@ bool IMouseInputProvider.CaptureMouse()
if(success)
{
- ReportInput(_source.CriticalHandle,
+ ReportInput(_source.Handle,
InputMode.Foreground,
_msgTime,
RawMouseActions.AbsoluteMove,
@@ -674,7 +670,7 @@ internal IntPtr FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, Int
try
{
IntPtr hwndCapture = SafeNativeMethods.GetCapture();
- IntPtr hwndCurrent = _source.CriticalHandle;
+ IntPtr hwndCurrent = _source.Handle;
if (hwndCapture != hwndCurrent)
{
PossiblyDeactivate(hwndCapture, false);
@@ -728,7 +724,7 @@ internal IntPtr FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, Int
// If someone else is taking capture, we may need
// to deactivate the mouse input stream too.
- if(lParam != _source.CriticalHandle) // Ignore odd messages that claim we are losing capture to ourselves.
+ if(lParam != _source.Handle) // Ignore odd messages that claim we are losing capture to ourselves.
{
// MITIGATION_SETCURSOR
_haveCapture = false;
@@ -939,7 +935,7 @@ private void PossiblyDeactivate(IntPtr hwndCapture, bool stillActiveIfOverSelf)
System.Diagnostics.Debug.WriteLine("HwndMouseInputProvider: WindowFromPoint failed!");
}
- if (!stillActiveIfOverSelf && hwndToCheck == _source.CriticalHandle)
+ if (!stillActiveIfOverSelf && hwndToCheck == _source.Handle)
{
hwndToCheck = IntPtr.Zero;
}
@@ -981,7 +977,7 @@ private void PossiblyDeactivate(IntPtr hwndCapture, bool stillActiveIfOverSelf)
// Only deactivate the mouse input stream if needed.
if(deactivate)
{
- ReportInput(_source.CriticalHandle,
+ ReportInput(_source.Handle,
InputMode.Foreground,
_msgTime,
RawMouseActions.Deactivate,
@@ -1389,8 +1385,8 @@ private bool ReportInput(
{
try
{
- //This has a SUC on it and accesses CriticalHandle
- int windowStyle = SafeNativeMethods.GetWindowStyle(new HandleRef(this, _source.CriticalHandle), true);
+ //This has a SUC on it and accesses Handle
+ int windowStyle = SafeNativeMethods.GetWindowStyle(new HandleRef(this, _source.Handle), true);
if((windowStyle & NativeMethods.WS_EX_LAYOUTRTL) == NativeMethods.WS_EX_LAYOUTRTL)
{
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..a4b2723b8f6 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;
@@ -49,7 +44,7 @@ private HandleRef Handle
{
if (_hwndSource != null)
{
- IntPtr handle = _hwndSource.CriticalHandle;
+ IntPtr handle = _hwndSource.Handle;
if (handle != IntPtr.Zero)
{
return new HandleRef(_hwndSource, handle);
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..89450c19737 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;
@@ -80,7 +75,7 @@ internal HwndPointerInputProvider(HwndSource source)
_pointerLogic.PlugInManagers[_source] = new PointerStylusPlugInManager(_source);
// Store if this window is enabled or disabled
- int style = MS.Win32.UnsafeNativeMethods.GetWindowLong(new HandleRef(this, source.CriticalHandle), MS.Win32.NativeMethods.GWL_STYLE);
+ int style = MS.Win32.UnsafeNativeMethods.GetWindowLong(new HandleRef(this, source.Handle), MS.Win32.NativeMethods.GWL_STYLE);
IsWindowEnabled = (style & MS.Win32.NativeMethods.WS_DISABLED) == 0;
}
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..6c18a0aaadd 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
@@ -683,7 +671,7 @@ internal static HwndSource CriticalFromHwnd(IntPtr hwnd)
foreach (PresentationSource source in PresentationSource.CriticalCurrentSources)
{
HwndSource test = source as HwndSource;
- if (test != null && test.CriticalHandle == hwnd)
+ if (test != null && test.Handle == hwnd)
{
// Don't hand out a disposed source.
if (!test.IsDisposed)
@@ -860,7 +848,7 @@ internal void ShowSystemMenu()
{
// Find the topmost window. This will handle the case where the HwndSource
// is a child window.
- IntPtr hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, CriticalHandle), NativeMethods.GA_ROOT);
+ IntPtr hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, Handle), NativeMethods.GA_ROOT);
// Open the system menu.
UnsafeNativeMethods.PostMessage(new HandleRef(this, hwndRoot), MS.Internal.Interop.WindowMessage.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_KEYMENU), new IntPtr(NativeMethods.VK_SPACE));
@@ -921,18 +909,7 @@ private void RoundDeviceSize(ref Point size)
///
/// Returns the hwnd handle to the window.
///
- ///
- /// Callers must have UIPermission(UIPermissionWindow.AllWindows) to call this API.
- ///
public IntPtr Handle
- {
- get
- {
- return CriticalHandle;
- }
- }
-
- internal IntPtr CriticalHandle
{
get
{
@@ -954,7 +931,7 @@ internal bool HasCapture
{
IntPtr capture = SafeNativeMethods.GetCapture();
- return ( capture == CriticalHandle );
+ return ( capture == Handle );
}
}
@@ -1544,11 +1521,11 @@ private void GetNonClientRect(ref NativeMethods.RECT rc)
if(_treatAncestorsAsNonClientArea)
{
- hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, CriticalHandle), NativeMethods.GA_ROOT);
+ hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, Handle), NativeMethods.GA_ROOT);
}
else
{
- hwndRoot = CriticalHandle;
+ hwndRoot = Handle;
}
SafeNativeMethods.GetWindowRect(new HandleRef(this, hwndRoot), ref rc);
@@ -2662,7 +2639,7 @@ private bool HasFocus
{
get
{
- return UnsafeNativeMethods.GetFocus() == CriticalHandle;
+ return UnsafeNativeMethods.GetFocus() == Handle;
}
}
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..786462186e5 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
@@ -197,7 +193,7 @@ public CultureInfo GetEquivalentCulture()
{
// Even if we previously failed to find an EquivalentCulture, we retry, if only to
// capture inner exception.
- _equivalentCulture = SafeSecurityHelper.GetCultureInfoByIetfLanguageTag(lowerCaseTag);
+ _equivalentCulture = CultureInfo.GetCultureInfoByIetfLanguageTag(lowerCaseTag);
}
catch (ArgumentException e)
{
@@ -251,7 +247,7 @@ public CultureInfo GetSpecificCulture()
{
// note that it's important that we use culture.Name, not culture.IetfLanguageTag, here
culture = CultureInfo.CreateSpecificCulture(culture.Name);
- _specificCulture = SafeSecurityHelper.GetCultureInfoByIetfLanguageTag(culture.IetfLanguageTag);
+ _specificCulture = CultureInfo.GetCultureInfoByIetfLanguageTag(culture.IetfLanguageTag);
}
catch (ArgumentException e)
{
@@ -272,9 +268,7 @@ internal CultureInfo GetCompatibleCulture()
{
if (_compatibleCulture == null)
{
- CultureInfo culture = null;
-
- if (!TryGetEquivalentCulture(out culture))
+ if (!TryGetEquivalentCulture(out CultureInfo culture))
{
string languageTag = IetfLanguageTag;
@@ -291,7 +285,7 @@ internal CultureInfo GetCompatibleCulture()
{
try
{
- culture = SafeSecurityHelper.GetCultureInfoByIetfLanguageTag(languageTag);
+ culture = CultureInfo.GetCultureInfoByIetfLanguageTag(languageTag);
}
catch (ArgumentException)
{
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
{
///