<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="CollectionViewDemo2010.ChooseItemsControl" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" Name="theControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:BasicLibrarySamples.View" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <UserControl.Resources>
        <Style x:Key="itemStyle" TargetType="ListBoxItem">
            <Setter Property="Padding" Value="1" />
        </Style>
    </UserControl.Resources>
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="40" />
            <ColumnDefinition />
            <ColumnDefinition Width="40" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Text="All properties:" Grid.ColumnSpan="2" />
        <ListBox x:Name="allListBox" Grid.Row="1" SelectionChanged="allListBox_SelectionChanged_1" ItemContainerStyle="{StaticResource itemStyle}" BorderBrush="#FF2B4C66">
        </ListBox>
        <StackPanel Grid.Row="1" Grid.Column="1" Margin="2 0">
            <Button Name="selectButton" FontFamily="Wingdings" Content="à" IsEnabled="False" Click="selectButton_Click" Margin="0 0 0 2" />
            <Button Name="unselectButton" FontFamily="Wingdings" Content="ß" IsEnabled="False" Click="unselectButton_Click" />
        </StackPanel>
        <TextBlock Grid.Column="2" Text="Group/Sort on properties:" Grid.ColumnSpan="2" />
        <ListBox Name="selectedListBox" Grid.Row="1" Grid.Column="2" SelectionChanged="selectedListBox_SelectionChanged_1" ItemContainerStyle="{StaticResource itemStyle}" BorderBrush="#FF2B4C66" />
        <StackPanel Grid.Row="1" Grid.Column="3" Margin="2 0">
            <Button Name="upButton" FontFamily="Wingdings" Content="á" IsEnabled="False" Click="upButton_Click" Margin="0 0 0 2" />
            <Button Name="downButton" FontFamily="Wingdings" Content="â" IsEnabled="False" Click="downButton_Click" />
        </StackPanel>

    </Grid>
</UserControl>