<UserControl x:Class="CyberX8_Themes.UserControls.RecipeLoadDose"
             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:CyberX8_Themes.UserControls" 
             xmlns:Converters="clr-namespace:CyberX8_Themes.Converters"
             mc:Ignorable="d" x:Name="self" 
             d:DesignHeight="150" d:DesignWidth="300" IsVisibleChanged="Self_IsVisibleChanged">
    <UserControl.Resources>
        <Converters:IntToTargetNumber3 x:Key="intToTargetNumber3"/>
    </UserControl.Resources>
    <Grid Height="{Binding ElementName=self,Path=ReplenNum,Converter={StaticResource intToTargetNumber3}}">

        <StackPanel Orientation="Vertical">
            <!--replen1-->
            <Grid Height="75" Width="300">
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.5*"/>
                    <ColumnDefinition Width="0.5*"/>
                </Grid.ColumnDefinitions>
                <Label Content="Replen 1 Recipe:" Grid.ColumnSpan="1" FontWeight="Bold" FontSize="15"  HorizontalAlignment="Left" VerticalAlignment="Center" Margin="4,0,0,0"></Label>
                <Border Background="Black" Margin="155,3,4,3" Height="36" Grid.ColumnSpan="2">
                    <TextBlock Text="{Binding ElementName=self,Path=ReplenDatas[0].RecipeName}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Border>
                <ComboBox Grid.Row="1" Margin="5,2,5,2" x:Name="comboBox1" ItemsSource="{Binding ElementName=self,Path=RecipeNodes[0].Children}">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <Button Grid.Row="1" Grid.Column="1" FontSize="14" Content="Select" Width="100" Height="32" Click="SelectRecipe1_Click" Style="{StaticResource SysBtnStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
            </Grid>
            <!--replen2-->
            <Grid Height="75" Width="300">
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.5*"/>
                    <ColumnDefinition Width="0.5*"/>
                </Grid.ColumnDefinitions>
                <Label Content="Replen 2 Recipe:" Grid.ColumnSpan="1" FontWeight="Bold" FontSize="15"  HorizontalAlignment="Left" VerticalAlignment="Center" Margin="4,0,0,0"></Label>
                <Border Background="Black" Margin="155,3,4,3" Height="36" Grid.ColumnSpan="2">
                    <TextBlock Text="{Binding ElementName=self,Path=ReplenDatas[1].RecipeName}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Border>
                <ComboBox Grid.Row="1" Margin="5,2,5,2" x:Name="comboBox2" ItemsSource="{Binding ElementName=self,Path=RecipeNodes[0].Children}">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <Button Grid.Row="1" Grid.Column="1" FontSize="14" Content="Select"  Width="100" Height="32" Click="SelectRecipe2_Click" Style="{StaticResource SysBtnStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
            </Grid>
            <!--replen3-->
            <Grid Height="75" Width="300">
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.5*"/>
                    <ColumnDefinition Width="0.5*"/>
                </Grid.ColumnDefinitions>
                <Label Content="Replen 3 Recipe:" FontWeight="Bold" FontSize="15"  HorizontalAlignment="Left" VerticalAlignment="Center" Margin="4,0,0,0"/>
                <Border Background="Black" Margin="155,3,4,3" Height="36" Grid.ColumnSpan="2">
                    <TextBlock Text="{Binding ElementName=self,Path=ReplenDatas[2].RecipeName}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Border>
                <ComboBox Grid.Row="1" Margin="5,2,5,2" x:Name="comboBox3" ItemsSource="{Binding ElementName=self,Path=RecipeNodes[0].Children}">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <Button Grid.Row="1" Grid.Column="1" FontSize="14" Content="Select"  Width="100" Height="32" Click="SelectRecipe3_Click" Style="{StaticResource SysBtnStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
            </Grid>
            <!--replen4-->
            <Grid Height="75" Width="300">
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.5*"/>
                    <ColumnDefinition Width="0.5*"/>
                </Grid.ColumnDefinitions>
                <Label Content="Replen 4 Recipe:"  FontWeight="Bold" FontSize="15" Margin="4,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"></Label>
                <Border Background="Black" Margin="155,3,4,3" Height="36" Grid.ColumnSpan="2">
                    <TextBlock Text="{Binding ElementName=self,Path=ReplenDatas[3].RecipeName}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Border>
                <ComboBox Grid.Row="1" Margin="5,2,5,2" x:Name="comboBox4" ItemsSource="{Binding ElementName=self,Path=RecipeNodes[0].Children}">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <Button Grid.Row="1" Grid.Column="1" FontSize="14" Content="Select"  Width="100" Height="32" Click="SelectRecipe4_Click" Style="{StaticResource SysBtnStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
            </Grid>
        </StackPanel>

    </Grid>
</UserControl>