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
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color:
<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>