<UserControl x:Class="BarCodesSample.EncodingFormat"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="using:BarCodeSamples"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d">
    <Grid>
        <Grid.Resources>
            <Style TargetType="ListBox">
                <Setter Property="ItemTemplate">
                    <Setter.Value>
                        <DataTemplate>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Image Source="{Binding Key}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="70" Height="70" />
                                <TextBlock Text="{Binding Value}" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" />
                            </Grid>
                        </DataTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <ListBox x:Name="barCodeTypes" BorderThickness="0"
                 SelectionChanged="barCodeTypes_SelectionChanged"
                 SelectionMode="Single">
            
        </ListBox>
        <ListBox x:Name="categories" Grid.Column="1" BorderThickness="0"
                SelectionChanged="encodingTypes_SelectionChanged"
                SelectionMode="Single">
        </ListBox>
    </Grid>
</UserControl>
