Skip to content

Commit c4e0ae3

Browse files
committed
Refined default SegmentedItem style
1 parent 99738b1 commit c4e0ae3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

components/Segmented/src/SegmentedItem/SegmentedItem.xaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:local="using:CommunityToolkit.WinUI.Controls"
44
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
@@ -419,10 +419,14 @@
419419
<VisualState x:Name="IconLeft" />
420420
<VisualState x:Name="IconTop">
421421
<VisualState.Setters>
422+
<Setter Target="PART_Root.MaxWidth" Value="64" />
423+
<Setter Target="PART_Root.MaxHeight" Value="56" />
422424
<Setter Target="ContentHolder.ColumnSpacing" Value="0" />
423-
<Setter Target="ContentHolder.MaxWidth" Value="64" />
424425
<Setter Target="PART_IconBox.Width" Value="20" />
426+
<Setter Target="PART_IconBox.Margin" Value="4,6,4,2" />
425427
<Setter Target="PART_IconBox.HorizontalAlignment" Value="Center" />
428+
<Setter Target="PART_IconBox.VerticalAlignment" Value="Center" />
429+
<Setter Target="PART_ContentPresenter.Margin" Value="4,2,4,6" />
426430
<Setter Target="PART_ContentPresenter.(Grid.Column)" Value="0" />
427431
<Setter Target="PART_ContentPresenter.(Grid.Row)" Value="1" />
428432
<Setter Target="PART_ContentPresenter.MaxWidth" Value="48" />

0 commit comments

Comments
 (0)