<Page x:Class="FlexGrid101.HomePage"
        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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Title="HomePage">
    <Grid>
        <ListView x:Name="listView" ItemsSource="{Binding}" SelectionChanged="listView_SelectionChanged">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Image Source="{Binding ThumbnailImageSource}" Width="50" Height="50" VerticalAlignment="Center"/>
                        <StackPanel>
                            <Label Content="{Binding Name}" Foreground="#9D2235" FontSize="18" VerticalAlignment="Stretch" />
                            <Label Content="{Binding Description}" Foreground="Gray" FontSize="14" VerticalAlignment="Bottom" />
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </Grid>
</Page>
