2026-01-26 14:51:28 +09:00

803 lines
57 KiB
XML

<Window x:Class="ILSOS_KS.Views.PopUP.PopupUpWindows"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
xmlns:gif="clr-namespace:WpfAnimatedGif;assembly=WpfAnimatedGif"
xmlns:local="clr-namespace:ILSOS_KS.Views.PopUP"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=local:PopupWindowViewModel}"
Title="PopupUpWindows" Width="1920" Height="1080">
<Window.Resources>
<local:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
<local:InverseBoolToVisibilityConverter x:Key="InverseBoolToVisibilityConverter"/>
<Style x:Key="BoxLabel" TargetType="Label">
<Setter Property="HorizontalContentAlignment" Value="Left"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontSize" Value="12"/>
</Style>
<Style x:Key="TableBorder" TargetType="Border">
<Setter Property="BorderBrush" Value="White"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style x:Key="TableTitleLabel" TargetType="Label">
<Setter Property="Foreground" Value="White"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="FontSize" Value="10"/>
</Style>
<Style x:Key="TableContentsLabel" TargetType="Label">
<Setter Property="Foreground" Value="White"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="FontSize" Value="10"/>
</Style>
</Window.Resources>
<behavior:Interaction.Triggers>
<behavior:EventTrigger EventName="Closing">
<behavior:InvokeCommandAction Command="{Binding WindowClosingCommand}" />
</behavior:EventTrigger>
<behavior:EventTrigger EventName="Closed">
<behavior:InvokeCommandAction Command="{Binding WindowClosedCommand}" />
</behavior:EventTrigger>
</behavior:Interaction.Triggers>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="420" />
<ColumnDefinition Width="420" />
<ColumnDefinition Width="100" />
<ColumnDefinition Width="470" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- 좌측 상단 이미지 -->
<Border BorderBrush="Gray" BorderThickness="1" Margin="0.5" Grid.Row="0" Grid.Column="0">
<Grid>
<!-- 로딩 GIF -->
<Image gif:ImageBehavior.AnimatedSource="{Binding LoadingGifSource}"
Visibility="{Binding IsLoadingLeftTop, Converter={StaticResource BoolToVisibilityConverter}}"
Width="100" Height="100"
Stretch="Uniform"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
<!-- 실제 이미지 -->
<Image Source="{Binding ImageLeftTop}"
Visibility="{Binding IsLoadingLeftTop, Converter={StaticResource InverseBoolToVisibilityConverter}}"
Stretch="Uniform"/>
</Grid>
</Border>
<!-- 좌측 하단 이미지 -->
<Border BorderBrush="Gray" BorderThickness="1" Margin="0.5" Grid.Row="1" Grid.Column="0">
<Grid>
<!-- 로딩 GIF -->
<Image gif:ImageBehavior.AnimatedSource="{Binding LoadingGifSource}"
Visibility="{Binding IsLoadingLeftBottom, Converter={StaticResource BoolToVisibilityConverter}}"
Width="100" Height="100"
Stretch="Uniform"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
<!-- 실제 이미지 -->
<Image Source="{Binding ImageLeftBottom}"
Visibility="{Binding IsLoadingLeftBottom, Converter={StaticResource InverseBoolToVisibilityConverter}}"
Stretch="Uniform"/>
</Grid>
</Border>
<!-- 우측 상단 이미지 -->
<Border BorderBrush="Gray" BorderThickness="1" Margin="0.5" Grid.Row="0" Grid.Column="1">
<Grid>
<!-- 로딩 GIF -->
<Image gif:ImageBehavior.AnimatedSource="{Binding LoadingGifSource}"
Visibility="{Binding IsLoadingRightTop, Converter={StaticResource BoolToVisibilityConverter}}"
Width="100" Height="100"
Stretch="Uniform"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
<!-- 실제 이미지 -->
<Image Source="{Binding ImageRightTop}"
Visibility="{Binding IsLoadingRightTop, Converter={StaticResource InverseBoolToVisibilityConverter}}"
Stretch="Uniform"/>
</Grid>
</Border>
<!-- 우측 하단 이미지 -->
<Border BorderBrush="Gray" BorderThickness="1" Margin="0.5" Grid.Row="1" Grid.Column="1">
<Grid>
<!-- 로딩 GIF -->
<Image gif:ImageBehavior.AnimatedSource="{Binding LoadingGifSource}"
Visibility="{Binding IsLoadingRightBottom, Converter={StaticResource BoolToVisibilityConverter}}"
Width="100" Height="100"
Stretch="Uniform"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
<!-- 실제 이미지 -->
<Image Source="{Binding ImageRightBottom}"
Visibility="{Binding IsLoadingRightBottom, Converter={StaticResource InverseBoolToVisibilityConverter}}"
Stretch="Uniform"/>
</Grid>
</Border>
<!-- LBAD -->
<Border BorderBrush="Gray" BorderThickness="3" Margin="0.5"
Grid.Row="0" Grid.RowSpan="2" Grid.Column="2">
<Grid>
<!-- Background Brush 바인딩 -->
<Grid.Background>
<SolidColorBrush Color="{Binding StepLBADNO}"/>
</Grid.Background>
<!-- Label 안에 TextBlock으로 줄바꿈과 정렬 처리 -->
<Label Style="{StaticResource BoxLabel}" Background="{Binding StepLBADNO}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
<Label.Content>
<TextBlock TextAlignment="Center" TextWrapping="Wrap" Foreground="White" FontWeight="Bold">
<TextBlock.Text>
<MultiBinding StringFormat="LBAD&#x0a;{0}">
<Binding Path="StepLBAD"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</Label.Content>
</Label>
</Grid>
</Border>
<!-- DATA -->
<ScrollViewer Grid.Row="0" Grid.RowSpan="3" Grid.Column="3" VerticalScrollBarVisibility="Auto" Margin="0.5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="Gray" BorderThickness="1" Margin="0.5" Padding="1" HorizontalAlignment="Stretch">
<Grid Margin="0.5">
<Grid.RowDefinitions>
<!-- 나머지 라벨 9개 -->
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Ring #1 ~ #6 & Spiral #1 ~ #3 모두 Border로 감싸기 -->
<Border Grid.Row="3" Grid.ColumnSpan="2" BorderBrush="Gray" BorderThickness="1" Margin="0.5" Padding="1">
<Grid>
<!-- 13행 정의 -->
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- 5열 정의 -->
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
</Grid.ColumnDefinitions>
<!-- 예: 행 1 -->
<Border Grid.Row="0" Grid.Column="0" Style="{StaticResource TableBorder}">
</Border>
<Border Grid.Row="0" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="Low-Limit" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="Up-Limit" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="Bead1" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="Bead2" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="Bead3" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="Bead4" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="OK/NG" Style="{StaticResource TableTitleLabel}"/>
</Border>
<!-- 행 2 -->
<Border Grid.Row="1" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #1" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring1.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring1.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring1.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring1.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring1.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring1.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring1.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 3 -->
<Border Grid.Row="2" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #2" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring2.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring2.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring2.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring2.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring2.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring2.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring2.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 4 -->
<Border Grid.Row="3" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #3" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring3.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring3.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring3.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring3.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring3.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring3.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring3.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 5 -->
<Border Grid.Row="4" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #4" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring4.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring4.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring4.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring4.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring4.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring4.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring4.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 6 -->
<Border Grid.Row="5" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #5" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring5.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring5.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring5.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring5.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring5.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring5.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring5.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 7 -->
<Border Grid.Row="6" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #6" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring6.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring6.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring6.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring6.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring6.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring6.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Ring6.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="0" Style="{StaticResource TableBorder}">
</Border>
<Border Grid.Row="7" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="Low-Limit" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="Up-Limit" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="Height" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="Width" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="OK/NG" Style="{StaticResource TableTitleLabel}"/>
</Border>
<!-- 행 8 -->
<Border Grid.Row="8" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Spiral #1" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral1.HorizontalLowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral1.HorizontalUpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral1.VerticalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral1.HorizontalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral1.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 10 -->
<Border Grid.Row="9" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Spiral #2" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral2.HorizontalLowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral2.HorizontalUpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral2.VerticalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral2.HorizontalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral2.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 12 -->
<Border Grid.Row="10" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Spiral #3" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral3.HorizontalLowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral3.HorizontalUpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral3.VerticalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral3.HorizontalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step1.Spiral3.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
</Grid>
</Border>
</Grid>
</Border>
<Border Grid.Row="1" BorderBrush="Gray" BorderThickness="1" Margin="0.5" Padding="1" HorizontalAlignment="Stretch">
<Grid Margin="0.5">
<Grid.RowDefinitions>
<!-- 나머지 라벨 9개 -->
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Ring #1 ~ #6 & Spiral #1 ~ #3 모두 Border로 감싸기 -->
<Border Grid.Row="3" Grid.ColumnSpan="2" BorderBrush="Gray" BorderThickness="1" Margin="0.5" Padding="1">
<Grid>
<!-- 13행 정의 -->
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- 5열 정의 -->
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="55"/>
</Grid.ColumnDefinitions>
<!-- 예: 행 1 -->
<Border Grid.Row="0" Grid.Column="0" Style="{StaticResource TableBorder}">
</Border>
<Border Grid.Row="0" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="Low-Limit" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="Up-Limit" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="Bead1" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="Bead2" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="Bead3" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="Bead4" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="0" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="OK/NG" Style="{StaticResource TableTitleLabel}"/>
</Border>
<!-- 행 2 -->
<Border Grid.Row="1" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #1" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring1.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring1.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring1.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring1.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring1.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring1.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="1" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring1.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 3 -->
<Border Grid.Row="2" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #2" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring2.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring2.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring2.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring2.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring2.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring2.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="2" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring2.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 4 -->
<Border Grid.Row="3" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #3" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring3.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring3.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring3.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring3.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring3.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring3.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="3" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring3.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 5 -->
<Border Grid.Row="4" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #4" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring4.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring4.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring4.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring4.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring4.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring4.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="4" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring4.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 6 -->
<Border Grid.Row="5" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #5" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring5.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring5.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring5.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring5.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring5.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring5.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="5" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring5.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 7 -->
<Border Grid.Row="6" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Ring #6" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring6.LowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring6.UpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring6.BeadSize1}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring6.BeadSize2}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring6.BeadSize3}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="6" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring6.BeadSize4}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="6" Grid.Column="7" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Ring6.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="0" Style="{StaticResource TableBorder}">
</Border>
<Border Grid.Row="7" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="Low-Limit" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="Up-Limit" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="Height" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="Width" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="7" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="OK/NG" Style="{StaticResource TableTitleLabel}"/>
</Border>
<!-- 행 8 -->
<Border Grid.Row="8" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Spiral #1" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral1.HorizontalLowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral1.HorizontalUpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral1.VerticalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral1.HorizontalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="8" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral1.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 10 -->
<Border Grid.Row="9" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Spiral #2" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral2.HorizontalLowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral2.HorizontalUpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral2.VerticalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral2.HorizontalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="9" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral2.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<!-- 행 12 -->
<Border Grid.Row="10" Grid.Column="0" Style="{StaticResource TableBorder}">
<Label Content="Spiral #3" Style="{StaticResource TableTitleLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="1" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral3.HorizontalLowerLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="2" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral3.HorizontalUpperLimit}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="3" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral3.VerticalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="4" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral3.HorizontalResult}" Style="{StaticResource TableContentsLabel}"/>
</Border>
<Border Grid.Row="10" Grid.Column="5" Style="{StaticResource TableBorder}">
<Label Content="{Binding Step2.Spiral3.Value}" Style="{StaticResource TableContentsLabel}"/>
</Border>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</ScrollViewer>
<!-- WELDINGNO -->
<Border BorderBrush="Gray" BorderThickness="3" Margin="0.5"
Grid.Row="0" Grid.RowSpan="2" Grid.Column="4">
<Grid>
<!-- Background Brush 바인딩 -->
<Grid.Background>
<SolidColorBrush Color="{Binding StepWELDINGNO}"/>
</Grid.Background>
<!-- Label 안에 TextBlock으로 줄바꿈과 정렬 처리 -->
<Label Style="{StaticResource BoxLabel}" Background="{Binding StepWELDINGNO}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
<Label.Content>
<TextBlock TextAlignment="Center" TextWrapping="Wrap" Foreground="White" FontWeight="Bold">
<TextBlock.Text>
<MultiBinding StringFormat="WELDING&#x0a;{0}">
<Binding Path="StepWELDING"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</Label.Content>
</Label>
</Grid>
</Border>
</Grid>
</Window>