<UserControl x:Class="HistoryView.Controls.FullConfig"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:HistoryView.Controls"
             xmlns:resources="clr-namespace:HistoryView.Resources"
             mc:Ignorable="d" 
             x:Name="This"
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="0"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid TextElement.FontSize="11" TextElement.FontWeight="Bold" Margin="20,0,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Bottom">Index</TextBlock>
            <TextBlock Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Bottom">Caps</TextBlock>
            <TextBlock Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Bottom">CapsW</TextBlock>
            <TextBlock Grid.Column="6" HorizontalAlignment="Center" VerticalAlignment="Bottom">FloorW</TextBlock>
            <TextBlock Grid.Column="8" HorizontalAlignment="Center" VerticalAlignment="Bottom">Floor</TextBlock>
            <TextBlock Grid.Column="10" HorizontalAlignment="Center" VerticalAlignment="Bottom">SetPoint</TextBlock>
            <TextBlock Grid.Column="12" HorizontalAlignment="Center" VerticalAlignment="Bottom">P</TextBlock>
            <TextBlock Grid.Column="14" HorizontalAlignment="Center" VerticalAlignment="Bottom">I</TextBlock>
            <TextBlock Grid.Column="16" HorizontalAlignment="Center" VerticalAlignment="Bottom">D</TextBlock>
            <TextBlock Grid.Column="18" HorizontalAlignment="Center" VerticalAlignment="Bottom">Up</TextBlock>
            <TextBlock Grid.Column="20" HorizontalAlignment="Center" VerticalAlignment="Bottom">Down</TextBlock>
            <TextBlock Grid.Column="22" HorizontalAlignment="Center" VerticalAlignment="Bottom">Mode</TextBlock>
            <TextBlock Grid.Column="24" HorizontalAlignment="Center" VerticalAlignment="Bottom">Inhibit</TextBlock>
        </Grid>

        <resources:TouchableScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Hidden">
            <ItemsControl x:Name="Items" ItemsSource="{Binding ElementName=This, Path=Source.Mini8sConfig}">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <local:Mini8Config Source="{Binding Value}"/>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </resources:TouchableScrollViewer>
    </Grid>
</UserControl>
