81 lines
3.9 KiB
XML
81 lines
3.9 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora">
|
|
|
|
<Style
|
|
x:Key="AVDefaultGB"
|
|
TargetType="{x:Type GroupBox}"
|
|
BasedOn="{StaticResource {x:Type GroupBox}}">
|
|
<Style.Resources>
|
|
<view:NullConverter
|
|
x:Key="__nullToMargin"
|
|
NotNullValue="4"
|
|
NullValue="0"/>
|
|
</Style.Resources>
|
|
<Setter Property="Padding" Value="0"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="FontWeight" Value="Regular"/>
|
|
<Setter Property="Background" Value="{DynamicResource AuroraVision.Brushes.GroupBox.Default.Background}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="GroupBox">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="10"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="10"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="4"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="1,0,1,1"
|
|
Background="{TemplateBinding Background}"
|
|
CornerRadius="8"/>
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="0,1,0,0"
|
|
CornerRadius="8,0,0,0"/>
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Grid.ColumnSpan="2"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="0,1,0,0"
|
|
CornerRadius="0,8,0,0"/>
|
|
<ContentPresenter
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Margin="{Binding Content,
|
|
Converter={StaticResource __nullToMargin},
|
|
RelativeSource={RelativeSource Self}}"
|
|
ContentSource="Header"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
TextBlock.FontFamily="{DynamicResource MahApps.Fonts.Family.Header}"
|
|
TextBlock.FontSize="{TemplateBinding FontSize}"
|
|
TextBlock.FontWeight="{TemplateBinding FontWeight}"/>
|
|
<ContentPresenter
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="{TemplateBinding Padding}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary> |