<!--
/*
** Job Arranger Manager
** Copyright (C) 2012 FitechForce, Inc. All Rights Reserved.
** Copyright (C) 2013 Daiwa Institute of Research Business Innovation Ltd. All Rights Reserved.
**
**
** Licensed to the Apache Software Foundation (ASF) under one or more 
** contributor license agreements. See the NOTICE file distributed with
** this work for additional information regarding copyright ownership. 
** The ASF licenses this file to you under the Apache License, Version 2.0
** (the "License"); you may not use this file except in compliance with 
** the License. You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
**/
-->
    <UserControl x:Class="jp.co.ftf.jobcontroller.JobController.Form.ScheduleEdit.JobnetContainer"
             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:design="clr-namespace:jp.co.ftf.jobcontroller.JobController.Form.JobEdit">
    <Grid  x:Name="LayoutRoot"  Background="#FFEEECE1" ShowGridLines="False" Margin="0,0,5,0" >
        <Grid.RowDefinitions >
            <RowDefinition Height="25"/>
            <RowDefinition Height="86"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions >
        <Slider Grid.Row="0" Grid.Column="0" x:Name="zoomSlider" Minimum="0.3" Maximum="1" Value="1" IsMoveToPointEnabled="True"/>
        <ScrollViewer Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch" Name="svSampleContainer" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" >
            <ScrollViewer.Content>
                <Canvas Name="sampleContainer" Background="#FFEEECE1" HorizontalAlignment="Left" Width="860" VerticalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Visible">
                    <design:JobSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="5" x:Name="picJob" ></design:JobSample>
                    <design:IfSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="80" x:Name="picIf" ></design:IfSample>
                    <design:IfeSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="145" x:Name="picIfe" ></design:IfeSample>
                    <design:MtsSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="180" x:Name="picParallelStart" ></design:MtsSample>
                    <design:MteSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="210" x:Name="picParallelEnd" ></design:MteSample>
                    <design:EnvSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="240" x:Name="picVar" ></design:EnvSample>
                    <design:ExtJobSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="315" x:Name="picJobExtention" ></design:ExtJobSample>
                    <design:StartSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="400" x:Name="picStart" ></design:StartSample>
                    <design:EndSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="475" x:Name="picEnd" ></design:EndSample>
                    <design:CalSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="548" x:Name="picCalculation" ></design:CalSample>
                    <design:LoopSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="625" x:Name="picLoop" ></design:LoopSample>
                    <design:TaskSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="655" x:Name="picTask" ></design:TaskSample>
                    <design:InfSample Canvas.ZIndex="100" Canvas.Top="8" Canvas.Left="732" x:Name="picInfomation" ></design:InfSample>
                    <design:FCopySample Canvas.ZIndex="100" Canvas.Top="38" Canvas.Left="5" x:Name="picCopy" ></design:FCopySample>
                    <design:FWaitSample Canvas.ZIndex="100" Canvas.Top="38" Canvas.Left="85" x:Name="picFWait" ></design:FWaitSample>
                    <design:RebootSample Canvas.ZIndex="100" Canvas.Top="38" Canvas.Left="165" x:Name="picReboot" ></design:RebootSample>
                    <design:ReleaseSample Canvas.ZIndex="100" Canvas.Top="38" Canvas.Left="240" x:Name="picRelease" ></design:ReleaseSample>
                    <design:CooperationSample Canvas.Left="323" Canvas.Top="38" x:Name="cooperationSample1" />
                    <design:AgentlessSample Canvas.Left="404" Canvas.Top="38" x:Name="agentlessSample1" />
                </Canvas>
            </ScrollViewer.Content>
        </ScrollViewer>
        <Border Margin="0" Grid.Row="2" Grid.Column="0"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BorderThickness="1" BorderBrush="Black">
        <ScrollViewer HorizontalAlignment="Stretch"  Name="svContainer" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Visible">
            <ScrollViewer.Content>
                    <Canvas Name="cnsDesignerContainer" VerticalAlignment="Stretch" 
                                 AllowDrop="True" Canvas.ZIndex="100"
                                 Width="100000" Height="100000"
                                 ClipToBounds="True" Background="WhiteSmoke">
                        <Canvas.LayoutTransform>
                            <ScaleTransform ScaleX="{Binding Path=Value, ElementName=zoomSlider}"
                            ScaleY="{Binding Path=Value, ElementName=zoomSlider}"/>
                        </Canvas.LayoutTransform>
                    </Canvas>

                </ScrollViewer.Content>
        </ScrollViewer>
        </Border>
    </Grid>

</UserControl>
