| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 | <UserControl   x:Class="FurnaceUI.Views.Parameter.WaferMappingView"               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:FurnaceUI.Views.Parameter"               xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"               xmlns:cal="http://www.caliburn.org"                xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"                xmlns:local1="clr-namespace:FurnaceUI.Converter" xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"               mc:Ignorable="d" Height="840" Width="1280">    <UserControl.Resources>        <Style TargetType="ScrollBar" BasedOn="{StaticResource ExModifyScrollBar}"/>        <local:ParameterConvert x:Key="ParameterConvert"/>        <local1:ListViewIndexConverter x:Key="ListViewIndexConverter"/>    </UserControl.Resources>    <Border>        <Grid Margin="40,50,0,0">            <Grid.ColumnDefinitions>                <ColumnDefinition Width="220"></ColumnDefinition>                <ColumnDefinition></ColumnDefinition>            </Grid.ColumnDefinitions>            <Grid Grid.Column="0" Margin="0,0,0,0">                <Grid.RowDefinitions>                    <RowDefinition Height="25"></RowDefinition>                    <RowDefinition Height="45"></RowDefinition>                    <RowDefinition Height="25"></RowDefinition>                    <RowDefinition Height="45"></RowDefinition>                    <RowDefinition Height="25"></RowDefinition>                    <RowDefinition Height="45"></RowDefinition>                    <RowDefinition Height="25"></RowDefinition>                    <RowDefinition Height="45"></RowDefinition>                    <RowDefinition Height="25"></RowDefinition>                    <RowDefinition Height="45"></RowDefinition>                    <RowDefinition Height="25"></RowDefinition>                    <RowDefinition Height="45"></RowDefinition>                </Grid.RowDefinitions>                <Label Grid.Row="0"  Content="Slot No.1 Distance"></Label>                <Label Grid.Row="2" Content="Slot Permission"></Label>                <Label Grid.Row="4" Content="Slot Pitch Distance"></Label>                <Label Grid.Row="6" Content="Thickness Referance Value"></Label>                <Label Grid.Row="8" Content="Thickness Permission"></Label>                <Label Grid.Row="10" Content="Mapper Result"></Label>                <TextBox Text="{Binding SlotNo1Distance}" Grid.Row="1" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></TextBox>                <TextBox Text="{Binding SlotPermissionValue}" Grid.Row="3" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></TextBox>                <TextBox Text="{Binding SlotPitchDistance}" Grid.Row="5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></TextBox>                <TextBox Text="{Binding ThicknessReferenceValue}" Grid.Row="7" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></TextBox>                <TextBox Text="{Binding ThicknessPermissions}" Grid.Row="9" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></TextBox>                <TextBox Text="{Binding MappingResult}" Grid.Row="11" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"></TextBox>            </Grid>            <Grid Grid.Column="1" Margin="5,0,0,0">                <Grid.RowDefinitions>                    <RowDefinition />                </Grid.RowDefinitions>                <Border    Grid.Row="1" Margin="0,0,10,10" >                    <StackPanel Orientation="Vertical" >                        <StackPanel  Orientation="Horizontal">                        </StackPanel>                        <!--ItemsSource="{Binding MappingData}"-->                        <ListView  Margin="-180,0,0,0"  x:Name="statusList" Height="780" Width="800"ScrollViewer.VerticalScrollBarVisibility="Visible"ScrollViewer.CanContentScroll="True" HorizontalContentAlignment="Stretch" >                            <ListView.Resources>                                <CollectionViewSource x:Key="myCollectionViewSource" Source="{Binding MappingData}">                                    <CollectionViewSource.SortDescriptions>                                        <scm:SortDescription PropertyName="Slot"/>                                    </CollectionViewSource.SortDescriptions>                                </CollectionViewSource>                            </ListView.Resources>                            <ListView.ItemsSource>                                <Binding Source="{StaticResource myCollectionViewSource}" />                            </ListView.ItemsSource>                            <ListView.View>                                <GridView  >                                    <GridView.Columns >                                        <GridViewColumn Width="40"   Header="No">                                            <GridViewColumn.CellTemplate>                                                <DataTemplate>                                                    <Border Margin ="-7,0,0,0" BorderBrush="#CCCCCC" BorderThickness="1,0,0,0">                                                        <Label IsEnabled="False"  MinWidth="40" Foreground="black"   HorizontalContentAlignment="Center"  Content="{Binding Slot}" ></Label>                                                    </Border>                                                </DataTemplate>                                            </GridViewColumn.CellTemplate>                                        </GridViewColumn>                                        <GridViewColumn Width="140"   Header="Result">                                            <GridViewColumn.CellTemplate>                                                <DataTemplate>                                                    <Border Margin="-7,0,0,0" BorderBrush="#CCCCCC" BorderThickness="1,0,0,0">                                                        <Label IsEnabled="False"  MinWidth="150"  Foreground="black"  HorizontalContentAlignment="Center" Background="{Binding ResultColor}"  Content="{Binding Result}" ></Label>                                                    </Border>                                                </DataTemplate>                                            </GridViewColumn.CellTemplate>                                        </GridViewColumn>                                        <GridViewColumn  Width="140"   Header="Detect" >                                            <GridViewColumn.CellTemplate>                                                <DataTemplate>                                                    <Border Margin="-7,0,0,0" BorderBrush="#CCCCCC" BorderThickness="1,0,0,0">                                                        <Label IsEnabled="False"  MinWidth="150" Foreground="black"    HorizontalContentAlignment="Center"  Content="{Binding Detect}" ></Label>                                                    </Border>                                                </DataTemplate>                                            </GridViewColumn.CellTemplate>                                        </GridViewColumn>                                        <GridViewColumn  Width="140"   Header="Base" >                                            <GridViewColumn.CellTemplate>                                                <DataTemplate>                                                    <Border Margin="-7,0,0,0" BorderBrush="#CCCCCC" BorderThickness="1,0,0,0">                                                        <Label IsEnabled="False"  MinWidth="150" Foreground="black"   HorizontalContentAlignment="Center"  Content="{Binding Base}" ></Label>                                                    </Border>                                                </DataTemplate>                                            </GridViewColumn.CellTemplate>                                        </GridViewColumn>                                        <GridViewColumn   Width="140"   Header="Diff." >                                            <GridViewColumn.CellTemplate>                                                <DataTemplate>                                                    <Border Margin="-7,0,0,0" BorderBrush="#CCCCCC" BorderThickness="1,0,0,0">                                                        <Label   Width="150"  HorizontalContentAlignment="Center"  Grid.Column="0"    >                                                            <Label IsEnabled="False"  MinWidth="150" Foreground="black"   HorizontalContentAlignment="Center"  Content="{Binding Diff}" ></Label>                                                        </Label>                                                    </Border>                                                </DataTemplate>                                            </GridViewColumn.CellTemplate>                                        </GridViewColumn>                                        <GridViewColumn  Width="140"   Header="Thickness" >                                            <GridViewColumn.CellTemplate>                                                <DataTemplate>                                                    <Border Margin="-7,0,0,0" BorderBrush="#CCCCCC" BorderThickness="1,0,0,0">                                                        <Label   Width="150"  HorizontalContentAlignment="Center"  Grid.Column="0"    >                                                            <Label IsEnabled="False"  MinWidth="150" Foreground="black"    HorizontalContentAlignment="Center"  Content="{Binding Thickness}" ></Label>                                                        </Label>                                                    </Border>                                                </DataTemplate>                                            </GridViewColumn.CellTemplate>                                        </GridViewColumn>                                    </GridView.Columns>                                </GridView>                            </ListView.View>                        </ListView>                    </StackPanel>                </Border>            </Grid>        </Grid>    </Border></UserControl>
 |