<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="SlimPage.Widget.Header"
           TargetType="TextBlock">
        <Setter Property="FontFamily"
                Value="Calibri" />
        <Setter Property="FontWeight"
                Value="Bold" />
        <Setter Property="FontSize"
                Value="12" />
        <Setter Property="TextBlock.LineHeight"
                Value="14" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="TextBlock.LineStackingStrategy"
                Value="BlockLineHeight" />
        <Setter Property="Foreground"
                Value="{DynamicResource FontColor.SlimPage.WidgetCollection.Header}" />
        <Setter Property="Cursor"
                Value="Hand" />

        <Style.Triggers>
            <EventTrigger RoutedEvent="Control.MouseLeftButtonUp">
                <EventTrigger.Actions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation From="0.4"
                                             Duration="0:0:1"
                                             FillBehavior="Stop"
                                             Storyboard.TargetProperty="Opacity" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger.Actions>
            </EventTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="SlimPage.Widget.Header.Icon"
           TargetType="ico:AdaptableIcon">
        <Setter Property="Margin"
                Value="-7 0 0 0" />
        <Setter Property="IconBackgroundColor"
                Value="Transparent" />
        <Setter Property="HorizontalAlignment"
                Value="Center" />
        <Setter Property="IconHeight"
                Value="20" />
        <Setter Property="BorderPadding"
                Value="3" />
        <Setter Property="PrimaryIconColor"
                Value="{DynamicResource Color.Menu.Icon}" />
    </Style>

    <Style x:Key="SlimPage.Widget.Title"
           TargetType="TextBlock">
        <Setter Property="FontFamily"
                Value="Calibri" />
        <Setter Property="FontWeight"
                Value="Regular" />
        <Setter Property="FontSize"
                Value="10" />
        <Setter Property="TextBlock.LineHeight"
                Value="16" />
        <Setter Property="TextBlock.LineStackingStrategy"
                Value="BlockLineHeight" />
        <Setter Property="IsHitTestVisible"
                Value="False" />
        <Setter Property="Foreground"
                Value="{DynamicResource FontColor.SlimPage.WidgetCollection.Title}" />
    </Style>

    <Style x:Key="SlimPage.Widget.Value.Base"
           TargetType="TextBlock">
        <Setter Property="FontFamily"
                Value="Calibri" />
        <Setter Property="FontSize"
                Value="10" />
        <Setter Property="TextBlock.LineHeight"
                Value="16" />
        <Setter Property="TextBlock.LineStackingStrategy"
                Value="BlockLineHeight" />
        <Setter Property="Cursor"
                Value="{DynamicResource Cursor.Copy}" />
        <Setter Property="TextTrimming"
                Value="CharacterEllipsis" />

        <Style.Triggers>
            <EventTrigger RoutedEvent="Control.MouseLeftButtonUp">
                <EventTrigger.Actions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation From="0.4"
                                             Duration="0:0:1"
                                             FillBehavior="Stop"
                                             Storyboard.TargetProperty="Opacity" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger.Actions>
            </EventTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="SlimPage.Widget.NoTitleValue"
           TargetType="TextBlock"
           BasedOn="{StaticResource SlimPage.Widget.Value.Base}">
        <Setter Property="FontWeight"
                Value="Regular" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="Foreground"
                Value="{DynamicResource FontColor.SlimPage.WidgetCollection.NoTitleValue}" />
    </Style>

    <Style x:Key="SlimPage.Widget.Value"
           TargetType="TextBlock"
           BasedOn="{StaticResource SlimPage.Widget.Value.Base}">
        <Setter Property="FontWeight"
                Value="Bold" />
        <Setter Property="Foreground"
                Value="{DynamicResource FontColor.SlimPage.WidgetCollection.Value}" />
    </Style>

</ResourceDictionary>