Skip to content

Commit 6f58c14

Browse files
committed
Update Styles.GroupBox.xaml
1 parent 99b44cf commit 6f58c14

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/WPFDevelopers.Shared/Styles/Styles.GroupBox.xaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
BasedOn="{StaticResource WD.ControlBasicStyle}"
1212
TargetType="{x:Type GroupBox}">
1313
<Setter Property="Padding" Value="{StaticResource WD.DefaultPadding}" />
14+
<Setter Property="Background" Value="{DynamicResource WD.LighterSolidColorBrush}" />
15+
<Setter Property="BorderBrush" Value="{DynamicResource WD.BaseSolidColorBrush}" />
1416
<Setter Property="Template">
1517
<Setter.Value>
1618
<ControlTemplate TargetType="{x:Type GroupBox}">
@@ -21,24 +23,20 @@
2123
</Grid.RowDefinitions>
2224
<Border
2325
Grid.Row="0"
24-
BorderBrush="{DynamicResource WD.BaseSolidColorBrush}"
26+
Background="{TemplateBinding Background}"
27+
BorderBrush="{TemplateBinding BorderBrush}"
2528
BorderThickness="1">
26-
<Border.Background>
27-
<SolidColorBrush Color="{DynamicResource BackgroundColor}" />
28-
</Border.Background>
2929
<ContentPresenter
3030
Margin="{TemplateBinding Padding}"
31+
VerticalAlignment="Center"
3132
ContentSource="Header"
3233
RecognizesAccessKey="True" />
3334
</Border>
3435
<Border
3536
Grid.Row="1"
36-
BorderBrush="{DynamicResource WD.BaseSolidColorBrush}"
37+
BorderBrush="{TemplateBinding BorderBrush}"
3738
BorderThickness="1,0,1,1"
3839
SnapsToDevicePixels="True">
39-
<Border.Background>
40-
<SolidColorBrush Color="{DynamicResource BackgroundColor}" />
41-
</Border.Background>
4240
<ContentPresenter Margin="{TemplateBinding Padding}" />
4341
</Border>
4442
</Grid>

0 commit comments

Comments
 (0)