mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[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:
@@ -138,16 +138,19 @@
|
|||||||
Placement="Bottom"
|
Placement="Bottom"
|
||||||
ShouldConstrainToRootBounds="False">
|
ShouldConstrainToRootBounds="False">
|
||||||
<StackPanel Width="320">
|
<StackPanel Width="320">
|
||||||
|
<TextBlock
|
||||||
|
x:Uid="Dock_Bands_Header"
|
||||||
|
Margin="8,8,8,12"
|
||||||
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
x:Name="NoAvailableBandsText"
|
x:Name="NoAvailableBandsText"
|
||||||
x:Uid="Dock_AddBand_NoCommandsAvailable"
|
x:Uid="Dock_AddBand_NoCommandsAvailable"
|
||||||
Padding="12"
|
Margin="8,0,0,0"
|
||||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
|
||||||
TextAlignment="Center"
|
|
||||||
Visibility="Collapsed" />
|
Visibility="Collapsed" />
|
||||||
<ListView
|
<ListView
|
||||||
x:Name="AddBandListView"
|
x:Name="AddBandListView"
|
||||||
MaxHeight="300"
|
MaxHeight="300"
|
||||||
|
Margin="-12,0,-12,0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
IsItemClickEnabled="True"
|
IsItemClickEnabled="True"
|
||||||
ItemClick="AddBandListView_ItemClick"
|
ItemClick="AddBandListView_ItemClick"
|
||||||
@@ -175,6 +178,30 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListView.ItemTemplate>
|
</ListView.ItemTemplate>
|
||||||
</ListView>
|
</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="" />
|
||||||
|
<TextBlock
|
||||||
|
x:Uid="Dock_Pin_Instruction"
|
||||||
|
Grid.Column="1"
|
||||||
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||||
|
Style="{ThemeResource CaptionTextBlockStyle}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Flyout>
|
</Flyout>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -213,7 +213,7 @@
|
|||||||
</controls:SettingsExpander>
|
</controls:SettingsExpander>
|
||||||
|
|
||||||
<!-- Bands Section -->
|
<!-- Bands Section -->
|
||||||
<TextBlock x:Uid="DockBandsSettingsHeader" Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
|
<!-- <TextBlock x:Uid="DockBandsSettingsHeader" Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
|
||||||
|
|
||||||
<ItemsRepeater ItemsSource="{x:Bind AllDockBandItems}">
|
<ItemsRepeater ItemsSource="{x:Bind AllDockBandItems}">
|
||||||
<ItemsRepeater.Layout>
|
<ItemsRepeater.Layout>
|
||||||
@@ -241,7 +241,7 @@
|
|||||||
</controls:SettingsCard>
|
</controls:SettingsCard>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsRepeater.ItemTemplate>
|
</ItemsRepeater.ItemTemplate>
|
||||||
</ItemsRepeater>
|
</ItemsRepeater>-->
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
|||||||
@@ -950,7 +950,13 @@ Right-click to remove the key combination, thereby deactivating the shortcut.</v
|
|||||||
<value>Unpin</value>
|
<value>Unpin</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Dock_AddBand_NoCommandsAvailable.Text" xml:space="preserve">
|
<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_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>
|
||||||
<data name="Dock_AddBand_StartTooltip.[using:Microsoft.UI.Xaml.Controls]ToolTipService.ToolTip" xml:space="preserve">
|
<data name="Dock_AddBand_StartTooltip.[using:Microsoft.UI.Xaml.Controls]ToolTipService.ToolTip" xml:space="preserve">
|
||||||
<value>Add band to start</value>
|
<value>Add band to start</value>
|
||||||
|
|||||||
Reference in New Issue
Block a user