<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:my="clr-namespace:BacklinksWarrior">

    <my:StatusToIconConverter x:Key="statusToIconConverter" />
    <!--<my:DataCenterToIconConverter x:Key="dataCenterToIconConverter" />
    <my:DomainStatusToIcon x:Key="domainStatusToIcon" />-->

    <DataTemplate x:Key="keywordTemplate">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="1*" />
                <ColumnDefinition Width="8*" />
                <ColumnDefinition Width="5*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="18" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Image HorizontalAlignment="Center" VerticalAlignment="Center" Height="16" Width="16" Grid.Column="0" Source="{Binding Status, Converter={StaticResource statusToIconConverter}}" />
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Text="{Binding Keyword}" />
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Text="{Binding PageRank}" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="3">
                <Hyperlink NavigateUri="{Binding PageUrl}">
                    <TextBlock Text="{Binding PageUrl}" TextTrimming="CharacterEllipsis" />
                </Hyperlink>
            </TextBlock>
            <TextBlock Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Left" Padding="5 0 0 0" TextTrimming="CharacterEllipsis" Text="{Binding Notes}" />
            
            <Line Grid.Row="1" Grid.ColumnSpan="7" X1="0" Y1="0" X2="10000" Y2="0" Stroke="Black" StrokeThickness="2" />
        </Grid>
            
    </DataTemplate>
        
    <Style x:Key="printedItems" TargetType="{x:Type HeaderedItemsControl}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type HeaderedItemsControl}">
                    <Grid Background="#ccc" Margin="10,10,10,10">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*" />
                            <ColumnDefinition Width="2*" /> 
                            <ColumnDefinition Width="1*" />
                            <ColumnDefinition Width="8*" />
                            <ColumnDefinition Width="5*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="0" Text="Status" />
                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="0" Text="Keyword" />
                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="0" Text="PR" />
                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="0" Text="Page URL" />
                        <TextBlock FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="4" Grid.Row="0" Text="Notes" />
                        <Grid Background="White" Grid.Row="1" Grid.ColumnSpan="7" Width="Auto" Height="Auto">
                            <ItemsPresenter />
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
