Skip to content

Commit

Permalink
Update Styles.GroupBox.xaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yanjinhuagood committed Aug 6, 2023
1 parent 99b44cf commit 6f58c14
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/WPFDevelopers.Shared/Styles/Styles.GroupBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
BasedOn="{StaticResource WD.ControlBasicStyle}"
TargetType="{x:Type GroupBox}">
<Setter Property="Padding" Value="{StaticResource WD.DefaultPadding}" />
<Setter Property="Background" Value="{DynamicResource WD.LighterSolidColorBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource WD.BaseSolidColorBrush}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupBox}">
Expand All @@ -21,24 +23,20 @@
</Grid.RowDefinitions>
<Border
Grid.Row="0"
BorderBrush="{DynamicResource WD.BaseSolidColorBrush}"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="1">
<Border.Background>
<SolidColorBrush Color="{DynamicResource BackgroundColor}" />
</Border.Background>
<ContentPresenter
Margin="{TemplateBinding Padding}"
VerticalAlignment="Center"
ContentSource="Header"
RecognizesAccessKey="True" />
</Border>
<Border
Grid.Row="1"
BorderBrush="{DynamicResource WD.BaseSolidColorBrush}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="1,0,1,1"
SnapsToDevicePixels="True">
<Border.Background>
<SolidColorBrush Color="{DynamicResource BackgroundColor}" />
</Border.Background>
<ContentPresenter Margin="{TemplateBinding Padding}" />
</Border>
</Grid>
Expand Down

0 comments on commit 6f58c14

Please sign in to comment.