|
23 | 23 | <Style x:Key="MaterialDesignGroupBox" TargetType="{x:Type GroupBox}"> |
24 | 24 | <Setter Property="Background" Value="Transparent"/> |
25 | 25 | <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}"/> |
26 | | - <Setter Property="Padding" Value="6,6,6,6"/> |
| 26 | + <Setter Property="Padding" Value="9"/> |
27 | 27 | <Setter Property="BorderThickness" Value="1"/> |
28 | 28 | <Setter Property="SnapsToDevicePixels" Value="true"/> |
29 | 29 | <Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth0" /> |
30 | 30 | <Setter Property="wpf:ColorZoneAssist.Mode" Value="PrimaryMid" /> |
31 | 31 | <Setter Property="Template"> |
32 | 32 | <Setter.Value> |
33 | 33 | <ControlTemplate TargetType="{x:Type GroupBox}"> |
34 | | - <Border Background="{TemplateBinding Background}" BorderBrush="{Binding Path=Background, ElementName=PART_ColorZone}" BorderThickness="{TemplateBinding BorderThickness}"> |
| 34 | + <Grid> |
| 35 | + <Border Background="{TemplateBinding Background}" BorderBrush="{Binding Path=Background, ElementName=PART_ColorZone}" BorderThickness="{TemplateBinding BorderThickness}" /> |
35 | 36 | <DockPanel Background="{TemplateBinding Background}"> |
36 | 37 | <wpf:ColorZone UseLayoutRounding="True" x:Name="PART_ColorZone" DockPanel.Dock="Top" Padding="{TemplateBinding Padding}" Effect="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ShadowAssist.ShadowDepth), Converter={x:Static converters:ShadowConverter.Instance}}" Mode="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ColorZoneAssist.Mode)}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
37 | 38 | <ContentPresenter ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
|
44 | 45 | ContentTemplate="{TemplateBinding ContentTemplate}" |
45 | 46 | ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/> |
46 | 47 | </DockPanel> |
47 | | - </Border> |
| 48 | + </Grid> |
48 | 49 | </ControlTemplate> |
49 | 50 | </Setter.Value> |
50 | 51 | </Setter> |
|
53 | 54 | <Style x:Key="MaterialDesignCardGroupBox" TargetType="{x:Type GroupBox}"> |
54 | 55 | <Setter Property="Background" Value="Transparent"/> |
55 | 56 | <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}"/> |
56 | | - <Setter Property="Padding" Value="6,6,6,6"/> |
| 57 | + <Setter Property="Padding" Value="9"/> |
57 | 58 | <Setter Property="BorderThickness" Value="0"/> |
58 | 59 | <Setter Property="SnapsToDevicePixels" Value="true"/> |
59 | 60 | <Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth0" /> |
|
0 commit comments