aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/FSEGroupBox.xaml
blob: 88cb34d8faa823206f6d0c082cd6a582bf87c993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:Tango.FSE.Common.Controls">

    <Style TargetType="{x:Type local:FSEGroupBox}">
        <Setter Property="HeaderBackground" Value="{StaticResource FSE_PrimaryBackgroundLightBrush}"></Setter>
        <Setter Property="HeaderBorderBrush" Value="{StaticResource FSE_BorderBrush}"></Setter>
        <Setter Property="HeaderBorderThickness" Value="0"></Setter>
        <Setter Property="HeaderPadding" Value="5 8"></Setter>
        <Setter Property="HeaderCornerRadius" Value="0"></Setter>
        <Setter Property="HeaderForeground" Value="{StaticResource FSE_PrimaryForegroundBrush}"></Setter>
        <Setter Property="HeaderFontSize" Value="{StaticResource FSE_DefaultFontSize}"></Setter>

        <Setter Property="Background" Value="{StaticResource FSE_PrimaryBackgroundMidBrush}"></Setter>
        <Setter Property="Padding" Value="10"></Setter>
        <Setter Property="BorderThickness" Value="0"></Setter>
        <Setter Property="BorderBrush" Value="{x:Null}"></Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:FSEGroupBox}">
                    <Border>
                        <DockPanel>
                            <Border 
                                DockPanel.Dock="Top"
                                CornerRadius="{TemplateBinding HeaderCornerRadius}" 
                                Padding="{TemplateBinding HeaderPadding}" 
                                Background="{TemplateBinding HeaderBackground}" 
                                BorderThickness="{TemplateBinding HeaderBorderThickness}"
                                BorderBrush="{TemplateBinding HeaderBorderBrush}"
                                TextElement.Foreground="{TemplateBinding HeaderForeground}"
                                TextElement.FontSize="{TemplateBinding HeaderFontSize}">

                                <ContentPresenter Content="{TemplateBinding Header}" />

                            </Border>

                            <Border Background="{TemplateBinding Background}"
                                    CornerRadius="{TemplateBinding CornerRadius}" 
                                    Padding="{TemplateBinding Padding}" 
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{TemplateBinding BorderBrush}">

                                <ContentPresenter Content="{TemplateBinding Content}" />

                            </Border>
                        </DockPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
</ResourceDictionary>