<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon">

    <Style x:Key="DetailsPage.TitleSection.Header.Base">
        <Setter Property="Control.VerticalAlignment"
                Value="Center" />
        <Setter Property="Control.FontFamily"
                Value="Calibri" />
        <Setter Property="Control.FontWeight"
                Value="Bold" />
        <Setter Property="Control.FontSize"
                Value="28" />
        <Setter Property="Control.Margin"
                Value="0 0 10 0" />
        <Setter Property="Control.Foreground"
                Value="{DynamicResource FontColor.DetailsPage.TitleSection.Header}" />
        <Setter Property="Control.Background"
                Value="Transparent" />
        <Setter Property="Control.BorderThickness"
                Value="0" />
        <Setter Property="TextBox.IsReadOnly"
                Value="True" />
        <Setter Property="Control.Opacity"
                Value="0.7" />
    </Style>

    <Style x:Key="DetailsPage.TitleSection.Header"
           BasedOn="{StaticResource DetailsPage.TitleSection.Header.Base}">
        <Setter Property="Control.Opacity"
                Value="1" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorLevel=1, AncestorType=Border}, Path=IsMouseOver}"
                         Value="True">
                <DataTrigger.Setters>
                    <Setter Property="Control.Foreground"
                            Value="{DynamicResource Color.FunctionMarker}" />
                </DataTrigger.Setters>
            </DataTrigger>
        </Style.Triggers>
    </Style>

        <Style x:Key="DetailsPage.TitleSection.Icon"
           TargetType="ico:AdaptableIcon">
        <Setter Property="Margin"
                Value="5, 0, 5, 0" />
        <Setter Property="IconBackgroundColor"
                Value="Transparent" />
        <Setter Property="HorizontalAlignment"
                Value="Center" />
        <Setter Property="IconHeight"
                Value="18" />
        <Setter Property="BorderPadding"
                Value="0" />
        <Setter Property="PrimaryIconColor"
                Value="{DynamicResource Color.Menu.Icon}" />
    </Style>

    <Style x:Key="DetailsPage.TitleSection.Border.NotSelected"
           TargetType="Border">
        <Setter Property="CornerRadius"
                Value="10" />
        <Setter Property="Height"
                Value="42" />
        <Setter Property="Cursor"
                Value="Hand" />
        <Setter Property="Background"
                Value="{DynamicResource BackgroundColor.DetailsPage.Widget.Value}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
                         Value="True">
                <Setter Property="Background"
                        Value="{DynamicResource BackgroundColor.Menu.MainCategory}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

</ResourceDictionary>