<UserControl x:Class="Hearthstone_Deck_Tracker.Controls.Error.ErrorItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="300" BorderThickness="1" BorderBrush="White">
    <DockPanel Background="DarkRed">
        <Border DockPanel.Dock="Top" BorderThickness="1" BorderBrush="White" Margin="-1">
            <DockPanel>
                <Button Name="BtnCloseNews" DockPanel.Dock="Right"  HorizontalAlignment="Right" Height="24" Width="24" Background="Transparent" Style="{DynamicResource MetroCircleButtonStyle}" BorderThickness="0" Click="BtnCloseNews_OnClick">
                    <Button.Content>
                        <Rectangle Width="8" Height="8">
                            <Rectangle.Fill>
                                <VisualBrush Visual="{StaticResource appbar_close_white}" />
                            </Rectangle.Fill>
                        </Rectangle>
                    </Button.Content>
                </Button>
                <TextBlock Text="{Binding Header}" TextWrapping="Wrap" Foreground="White" FontWeight="SemiBold" VerticalAlignment="Center" Margin="5,0,0,0"/>
            </DockPanel>
        </Border>
        <TextBox Text="{Binding Text, Mode=OneWay}" TextWrapping="Wrap" Foreground="White" Background="Transparent" IsReadOnly="True" BorderThickness="0"/>
    </DockPanel>
</UserControl>
