<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Style x:Key="CloseButtonBorder"
               TargetType="{x:Type Border}">
        <Setter Property="Height" Value="32"/>
        <Setter Property="Background" Value="{DynamicResource color272727}"/>
        <Setter Property="CornerRadius" Value="0,10,0,0"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="TextBlock.Foreground" Value="{DynamicResource color009DDD}"/>
            </Trigger>
        </Style.Triggers> 
    </Style>
    
    <ControlTemplate x:Key="CloseButton"
                     TargetType="{x:Type Border}">

        <Border>

            <TextBlock Text="X" FontFamily="Calibri" FontSize="15" Foreground="{DynamicResource color9B9B9B}">
                
            </TextBlock>
            
        </Border>
        
    </ControlTemplate>
    
</ResourceDictionary>