[Dock] Add pin instructions (#46052)

## Summary of the Pull Request

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

<img width="549" height="341" alt="image"
src="https://github.com/user-attachments/assets/e09e3686-1ffd-4929-8828-061a4aa42fbb"
/>

- [ ] Closes: #xxx
<!-- - [ ] 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-11 03:37:51 +01:00
committed by GitHub
parent 414ee86fb3
commit bab77edd11
3 changed files with 40 additions and 7 deletions

View File

@@ -138,16 +138,19 @@
Placement="Bottom"
ShouldConstrainToRootBounds="False">
<StackPanel Width="320">
<TextBlock
x:Uid="Dock_Bands_Header"
Margin="8,8,8,12"
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
<TextBlock
x:Name="NoAvailableBandsText"
x:Uid="Dock_AddBand_NoCommandsAvailable"
Padding="12"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
TextAlignment="Center"
Margin="8,0,0,0"
Visibility="Collapsed" />
<ListView
x:Name="AddBandListView"
MaxHeight="300"
Margin="-12,0,-12,0"
HorizontalAlignment="Stretch"
IsItemClickEnabled="True"
ItemClick="AddBandListView_ItemClick"
@@ -175,6 +178,30 @@
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Rectangle
Height="1"
Margin="-16,24,-16,0"
HorizontalAlignment="Stretch"
Fill="{ThemeResource DividerStrokeColorDefaultBrush}" />
<Grid Margin="8,24,0,0" ColumnSpacing="8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<FontIcon
Margin="0,4,0,0"
VerticalAlignment="Top"
AutomationProperties.AccessibilityView="Raw"
FontSize="11"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Glyph="&#xE946;" />
<TextBlock
x:Uid="Dock_Pin_Instruction"
Grid.Column="1"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Style="{ThemeResource CaptionTextBlockStyle}"
TextWrapping="Wrap" />
</Grid>
</StackPanel>
</Flyout>
</ResourceDictionary>

View File

@@ -213,7 +213,7 @@
</controls:SettingsExpander>
<!-- Bands Section -->
<TextBlock x:Uid="DockBandsSettingsHeader" Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
<!-- <TextBlock x:Uid="DockBandsSettingsHeader" Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
<ItemsRepeater ItemsSource="{x:Bind AllDockBandItems}">
<ItemsRepeater.Layout>
@@ -241,7 +241,7 @@
</controls:SettingsCard>
</DataTemplate>
</ItemsRepeater.ItemTemplate>
</ItemsRepeater>
</ItemsRepeater>-->
</StackPanel>
</Grid>
</ScrollViewer>

View File

@@ -950,9 +950,15 @@ Right-click to remove the key combination, thereby deactivating the shortcut.</v
<value>Unpin</value>
</data>
<data name="Dock_AddBand_NoCommandsAvailable.Text" xml:space="preserve">
<value>No commands available to pin</value>
<value>All available bands are already pinned.</value>
</data>
<data name="Dock_AddBand_StartTooltip.[using:Microsoft.UI.Xaml.Controls]ToolTipService.ToolTip" xml:space="preserve">
<data name="Dock_Pin_Instruction.Text" xml:space="preserve">
<value>To pin commands, extensions or apps, use the Pin to Dock command in Command Palette.</value>
</data>
<data name="Dock_Bands_Header.Text" xml:space="preserve">
<value>Bands</value>
</data>
<data name="Dock_AddBand_StartTooltip.[using:Microsoft.UI.Xaml.Controls]ToolTipService.ToolTip" xml:space="preserve">
<value>Add band to start</value>
</data>
<data name="Dock_AddBand_CenterTooltip.[using:Microsoft.UI.Xaml.Controls]ToolTipService.ToolTip" xml:space="preserve">