From 22ce3b81ec8cef1c940161357b910e4c2386b5b4 Mon Sep 17 00:00:00 2001 From: leileizhang Date: Tue, 13 Jan 2026 18:52:30 +0800 Subject: [PATCH] Revert "Add Drag and Drop For Environment Variables (#40105)" (#44705) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 1b6b446915a3dbe7e3240ab1ba2afa48ceca58cd. ## Summary of the Pull Request Reverting this PR because WinUI 3 doesn’t support drag operations when running as admin. ## PR Checklist - [ ] Closes: #xxx - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed --- .../EnvironmentVariablesMainPage.xaml | 22 ++++------------ .../EnvironmentVariablesMainPage.xaml.cs | 25 +++++-------------- 2 files changed, 11 insertions(+), 36 deletions(-) diff --git a/src/modules/EnvironmentVariables/EnvironmentVariablesUILib/EnvironmentVariablesMainPage.xaml b/src/modules/EnvironmentVariables/EnvironmentVariablesUILib/EnvironmentVariablesMainPage.xaml index baa2447cd1..f2628cf375 100644 --- a/src/modules/EnvironmentVariables/EnvironmentVariablesUILib/EnvironmentVariablesMainPage.xaml +++ b/src/modules/EnvironmentVariables/EnvironmentVariablesUILib/EnvironmentVariablesMainPage.xaml @@ -466,39 +466,27 @@ TextChanged="EditVariableDialogValueTxtBox_TextChanged" TextWrapping="Wrap" /> - - + - -