<UserControl x:Class="HistoryView.Controls.Mini8Config"
             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"
             mc:Ignorable="d" 
             x:Name="This"
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid Margin="8">
        <Expander Style="{StaticResource ExpanderStyle1}">
            <Expander.Header>
                <Border Background="{StaticResource LightThemeColor}" CornerRadius="4" Margin="4,0">
                    <TextBlock FontSize="13" Margin="12,8">
                        <Run>Mini8 No.</Run>
                        <Run Text="{Binding ElementName=This, Path=Source.Index}"/>
                    </TextBlock>
                </Border>
            </Expander.Header>
            <ItemsControl Grid.Row="2" ItemsSource="{Binding ElementName=This, Path=Source.ChannelConfig}" Margin="12,0,0,0">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <local:ChannelConfig Margin="0,0,0,0" Source="{Binding Value}"/>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </Expander>
    </Grid>
</UserControl>
