Skip to content

Commit bc05c86

Browse files
committed
Make tabs automatically size uniformly to width
This improves the design when some tabs are hidden
1 parent f448ee3 commit bc05c86

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Input/ColorPicker/ColorPicker.xaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@
6969
CornerRadius="4" />
7070
<ListBox x:Name="ColorPanelSelector"
7171
Grid.Row="0"
72-
HorizontalAlignment="Center"
72+
HorizontalAlignment="Stretch"
7373
Background="Transparent"
74+
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
7475
ItemContainerStyle="{StaticResource UnderlineListBoxItemStyle}">
7576
<ListBox.ItemsPanel>
7677
<ItemsPanelTemplate>
77-
<StackPanel Orientation="Horizontal" />
78+
<controls:UniformGrid Rows="1" />
7879
</ItemsPanelTemplate>
7980
</ListBox.ItemsPanel>
8081
<ListBoxItem x:Name="SpectrumListBoxItem"
@@ -1180,9 +1181,6 @@
11801181
<Setter Property="Padding" Value="{StaticResource ListBoxItemPadding}" />
11811182
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
11821183
<Setter Property="VerticalContentAlignment" Value="Stretch" />
1183-
<Setter Property="Margin" Value="8,0,8,0" />
1184-
<Setter Property="Padding" Value="24,0,24,0" />
1185-
<Setter Property="MinWidth" Value="100" />
11861184
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
11871185
<Setter Property="Template" Value="{StaticResource UnderlineListBoxItemTemplate}" />
11881186
</Style>

0 commit comments

Comments
 (0)