<Grid 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
               
>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*"/>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>

    <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Path=Configuration.Name}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Center" FontSize="20" Margin="0,0,0,20" />
    <TextBlock Grid.Row="0" Grid.Column="2" Text=" - " HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Center" FontSize="20" Margin="0,0,0,20" />
    <TextBlock Grid.Row="0" Grid.Column="3" Text="{Binding Path=Configuration.CustomParameters[Supplier][].Value}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Center" FontSize="20" Margin="4,0,0,20" />
    <TextBlock Grid.Row="0" Grid.Column="4" Text="{Binding Path=Configuration.CustomParameters[Type][].Value}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Center" FontSize="20" Margin="4,0,0,20" />
    <TextBlock Grid.Row="0" Grid.Column="5" Text="{Binding Path=Configuration.CustomParameters[Model][].Value}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Center" FontSize="20" Margin="4,0,0,20" />

    <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="7">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <my:LoadPort Grid.Column="0" Grid.Row="0" CarrierPlacedCommand="LoaderCarrierPlaced" CarrierRemovedCommand="LoaderCarrierRemoved" PortNumber="1" CarrierId="{Binding Path=Parameters[CarrierID][1].Value,Mode=TwoWay}" />
        
        <Image Grid.Column="2" Grid.Row="0" Height="200" Margin="10,0,10,0" Source="{Binding Path=Configuration.CustomParameters[BackImage][].Value, Converter={StaticResource FilePathConverter }}" Stretch="Uniform" VerticalAlignment="Top"/>

        <UniformGrid Rows="6" Columns="1" Grid.Row="0" Grid.Column="3">
        <my:TriggerHandler ButtonText="NonScheduled" CommandName="GoNonScheduled" ButtonBackColor="LightGray"/>
        <my:TriggerHandler ButtonText="Productive" CommandName="GoProductive" ButtonBackColor="Lime"/>
        <my:TriggerHandler ButtonText="Standby" CommandName="GoStandby" ButtonBackColor="Yellow"/>
        <my:TriggerHandler ButtonText="Engineering" CommandName="GoEngineering" ButtonBackColor="Blue"  ButtonForeColor="White"/>
        <my:TriggerHandler ButtonText="Scheduled Down" CommandName="GoScheduledDown" ButtonBackColor="Salmon"/>
        <my:TriggerHandler ButtonText="Unscheduled Down" CommandName="GoUnscheduledDown" ButtonBackColor="Red" ButtonForeColor="White"/>
        </UniformGrid>
    </Grid>

    <Grid Grid.Row="2" Grid.ColumnSpan="7">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0" Text="Running Job: " HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Right" FontSize="20" Margin="0,0,0,4" />
        <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Path=Configuration.HandlerCollection.EquipmentVariables.NamedVariable[PJobId].CurrentValue}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Left" FontSize="20" Margin="10,0,0,4" />

        <TextBlock Grid.Row="1" Grid.Column="0" Text="Recipe: " HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Right" FontSize="20" Margin="0,0,0,4" />
        <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Path=Configuration.HandlerCollection.EquipmentVariables.NamedVariable[RecipeName].CurrentValue}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Left" FontSize="20" Margin="10,0,0,4" />
    </Grid>
</Grid>
