﻿<local:ItemsControl
    x:Class="WinStore.UX.Controls.VerticalSongList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="using:WinStore.UX.Controls"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    d:DesignHeight="300"
    d:DesignWidth="400"
    mc:Ignorable="d">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="{StaticResource AppGutterGridLength}" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <GridView x:ConnectionId='1'
            x:Name="_listView"
            Grid.Column="1"
            ItemTemplate="{StaticResource songListItemTemplate}"
            SelectionMode="None"
            VerticalAlignment="Stretch"
            VerticalContentAlignment="Stretch"
            IsItemClickEnabled="True"
                                   
            AutomationProperties.AutomationId="SongList"
            Style="{StaticResource VerticalListViewBaseStyle}">
            <GridView.Header>
                <TextBlock x:ConnectionId='2'
                    x:Name="_titleTextBlock"
                    Grid.Column="1"
                    AutomationProperties.LiveSetting="Assertive"
                    Foreground="{ThemeResource PrimaryForegroundBrush}"
                    Style="{StaticResource SubheaderTextBlockStyle}"
                    Margin="0,24,0,18">
                    <Run x:ConnectionId='3' x:Name="_titleRun" />
                    <Run x:ConnectionId='4' x:Name="_countRun" />
                </TextBlock>
            </GridView.Header>
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <ItemsStackPanel Orientation="Vertical" AutomationProperties.AutomationId="SongItemsPanel" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </GridView>
    </Grid>
</local:ItemsControl>

