更新
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:exc="clr-namespace:WPFluent.Controls"
|
||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml">
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/WPFluent;component/Resources/Variables.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style x:Key="DefaultGroupBoxStyle" TargetType="{x:Type GroupBox}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource CardForeground}" />
|
||||
<Setter Property="Background" Value="{DynamicResource CardBackground}" />
|
||||
<Style TargetType="{x:Type GroupBox}" x:Key="DefaultGroupBoxStyle">
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
<Setter Property="Background" Value="{DynamicResource CardBackgroundFillColorDefaultBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource ControlElevationBorderBrush}" />
|
||||
<Setter Property="FocusVisualStyle" Value="{DynamicResource DefaultControlFocusVisualStyle}" />
|
||||
<Setter Property="Border.CornerRadius" Value="{DynamicResource TopControlCornerRadius}" />
|
||||
@@ -29,26 +25,26 @@
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Border
|
||||
x:Name="Header_Border"
|
||||
Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}"
|
||||
CornerRadius="{DynamicResource ControlTopCornerRadius}"
|
||||
Grid.Row="0"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{DynamicResource CardFooterBackground}"
|
||||
CornerRadius="{DynamicResource ControlTopCornerRadius}">
|
||||
x:Name="Header_Border">
|
||||
<ContentPresenter
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
ContentSource="Header"
|
||||
ContentStringFormat="{TemplateBinding HeaderStringFormat}"
|
||||
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
||||
ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
RecognizesAccessKey="True"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
Grid.Row="1"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||
ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
|
||||
Grid.Row="1"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
@@ -57,7 +53,7 @@
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style
|
||||
x:Key="{x:Type GroupBox}"
|
||||
BasedOn="{StaticResource DefaultGroupBoxStyle}"
|
||||
TargetType="{x:Type GroupBox}" />
|
||||
TargetType="{x:Type GroupBox}"
|
||||
x:Key="{x:Type GroupBox}" />
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user