[CmdPal Dock] New pin UX (#46436)

<!-- Enter a brief description/summary of your PR here. What does it
fix/what does it change/how was it tested (even manually, if necessary)?
-->
## Summary of the Pull Request

This PR introduces a new dialog that gives you more control on how a
command gets pinned to the Dock.


![PinUX](https://github.com/user-attachments/assets/c270e93f-3fd9-42d5-aaa9-95c08efb8bac)


<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist

- [x] Closes: #46433
<!-- - [ ] Closes: #yyy (add separate lines for additional resolved
issues) -->
- [ ] **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

<!-- Provide a more detailed description of the PR, other things fixed,
or any additional comments/features here -->
## Detailed Description of the Pull Request / Additional comments

<!-- Describe how you validated the behavior. Add automated tests
wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed
This commit is contained in:
Niels Laute
2026-03-24 21:19:28 +01:00
committed by GitHub
parent 79d9b0e667
commit 3d2f069c43
11 changed files with 457 additions and 9 deletions

View File

@@ -989,4 +989,68 @@ Right-click to remove the key combination, thereby deactivating the shortcut.</v
<value>NEW</value>
<comment>Must be all caps</comment>
</data>
<data name="PinToDock_DialogTitle" xml:space="preserve">
<value>Pin to Dock</value>
<comment>Title for the pin to dock configuration dialog</comment>
</data>
<data name="PinToDock_PreviewHeader.Text" xml:space="preserve">
<value>Preview</value>
<comment>Header for the preview section in the pin to dock dialog</comment>
</data>
<data name="PinToDock_SectionHeader.Text" xml:space="preserve">
<value>Choose where to pin this command</value>
<comment>Header for the dock section selector in the pin to dock dialog</comment>
</data>
<data name="PinToDock_Start.Content" xml:space="preserve">
<value>Start</value>
<comment>Start section option in pin to dock dialog</comment>
</data>
<data name="PinToDock_Center.Content" xml:space="preserve">
<value>Center</value>
<comment>Center section option in pin to dock dialog</comment>
</data>
<data name="PinToDock_End.Content" xml:space="preserve">
<value>End</value>
<comment>End section option in pin to dock dialog</comment>
</data>
<data name="PinToDock_ShowTitle.Content" xml:space="preserve">
<value>Show title</value>
<comment>Checkbox label to show the title of a pinned dock item</comment>
</data>
<data name="PinToDock_ShowSubtitle.Content" xml:space="preserve">
<value>Show subtitle</value>
<comment>Checkbox label to show the subtitle of a pinned dock item</comment>
</data>
<data name="PinToDock_PinButton" xml:space="preserve">
<value>Pin</value>
<comment>Button text to confirm pinning an item to the dock</comment>
</data>
<data name="PinToDock_CancelButton" xml:space="preserve">
<value>Cancel</value>
<comment>Button text to cancel pinning an item to the dock</comment>
</data>
<data name="PinToDock_Left" xml:space="preserve">
<value>Left</value>
<comment>Left section option in pin to dock dialog (horizontal dock)</comment>
</data>
<data name="PinToDock_Right" xml:space="preserve">
<value>Right</value>
<comment>Right section option in pin to dock dialog (horizontal dock)</comment>
</data>
<data name="PinToDock_Top" xml:space="preserve">
<value>Top</value>
<comment>Top section option in pin to dock dialog (vertical dock)</comment>
</data>
<data name="PinToDock_Bottom" xml:space="preserve">
<value>Bottom</value>
<comment>Bottom section option in pin to dock dialog (vertical dock)</comment>
</data>
<data name="PinToDock_CenterLabel" xml:space="preserve">
<value>Center</value>
<comment>Center section label in pin to dock dialog (code access)</comment>
</data>
<data name="PinToDock_RightLabel" xml:space="preserve">
<value>Right</value>
<comment>Right section label in pin to dock dialog (code access, horizontal end)</comment>
</data>
</root>