| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 | <UserControl x:Class="FurnaceUI.Views.Parameter.LeakCheckConditionEditView"             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:converters="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core" xmlns:converter="clr-namespace:FurnaceUI.Converter" xmlns:controls="http://OpenSEMI.Ctrlib.com/presentation"             mc:Ignorable="d"              Height="785" Width="1260" FontFamily="Segoe" Background="White">    <UserControl.Resources>        <Style TargetType="RadioButton" BasedOn="{StaticResource NormalRadioButton}">            <Setter Property="FontSize" Value="16"/>        </Style>        <Style x:Key="myHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">            <Setter Property="Visibility" Value="Collapsed" />        </Style>        <converter:MFCListConverter  x:Key="mFCListConverter"/>        <converter:IsCheckShowStringConverter  x:Key="isCheckShowStringConverter"/>    </UserControl.Resources>    <Grid>        <Grid.RowDefinitions>            <RowDefinition Height="80"/>            <RowDefinition Height="*"/>            <RowDefinition Height="80"/>        </Grid.RowDefinitions>        <Grid.ColumnDefinitions>            <ColumnDefinition Width="200"/>            <ColumnDefinition />            <ColumnDefinition />        </Grid.ColumnDefinitions>        <Border  Margin="2,0,0,0"  Grid.Row="0" Grid.Column="0"  Grid.ColumnSpan="3"  Background="{DynamicResource Table_BG_Content}"  BorderBrush="{DynamicResource Table_BD}" >            <StackPanel   Margin="10,20,0,0"  Orientation="Horizontal" HorizontalAlignment="Left">            <TextBlock Text="File Name:" FontSize="16"/>            <TextBlock Width="600"  TextWrapping="Wrap"    FontSize="16" HorizontalAlignment="Left" Text="{Binding CurrentParameter.Name}"/>        </StackPanel>        </Border>        <!--Top-->                   <Border Visibility="Hidden" Grid.Row="0" Grid.Column="2"  Background="{DynamicResource Table_BG_Content}"   BorderBrush="{DynamicResource Table_BD}" >            <StackPanel Grid.Row="0" Grid.Column="2"   HorizontalAlignment="Right" Margin="10,10,55,0">            <Grid >                <Grid.RowDefinitions>                    <RowDefinition  Height="30"/>                    <RowDefinition  Height="30"/>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="200" />                    <ColumnDefinition Width="10" />                    <ColumnDefinition Width="200"/>                </Grid.ColumnDefinitions>                <TextBlock  Grid.Row="0" Grid.Column="0"  FontSize="14" Text="ErrorCommand TableName Sel" VerticalAlignment="Center" />                <TextBox    Grid.Row="1" Grid.Column="0"  Text="System" />                <TextBlock  Grid.Row="0" Grid.Column="2"  FontSize="14" Text="Refence Process Recipe" VerticalAlignment="Center"/>                <TextBox    Grid.Row="1" Grid.Column="3"  Text="{Binding CurrentParameter.ReviseTime,StringFormat=yyyy/MM/dd HH:mm:ss}"   IsEnabled="False"/>            </Grid>        </StackPanel>        </Border>        <!--Left-->        <Border Margin="2,0,0,0" BorderBrush="{DynamicResource Table_BD}"  Background="{DynamicResource Table_BG_Content}" BorderThickness="1 1 1 1"  Grid.Row="1" Grid.Column="0"  Grid.RowSpan="1">            <StackPanel   HorizontalAlignment="Center"   Margin="0,20,0,0">                <Grid Height="150">                    <Grid.RowDefinitions>                        <RowDefinition />                        <RowDefinition/>                        <RowDefinition/>                        <RowDefinition/>                    </Grid.RowDefinitions>                    <TextBlock   Grid.Row="0"  FontSize="16"  Text="TableName" Padding="20,0,0,0" />                    <RadioButton Grid.Row="1" Cursor="Hand"  Content="Leak Check1" IsChecked="True" Tag="1">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="RdoLeakClick">                                    <cal:Parameter Value="$source"/>                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </RadioButton>                    <RadioButton Grid.Row="2" Cursor="Hand"  Content="Leak Check2" Tag="2">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="RdoLeakClick">                                    <cal:Parameter Value="$source"/>                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </RadioButton>                    <RadioButton Grid.Row="3" Cursor="Hand"  Content="Leak Check3" Tag="3">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="RdoLeakClick">                                    <cal:Parameter Value="$source"/>                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </RadioButton>                </Grid>            </StackPanel>        </Border>        <!--Right-->        <Border   BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"  Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2">            <StackPanel>                <Grid>                    <Grid.RowDefinitions>                        <RowDefinition Height="50" />                        <RowDefinition Height="230" />                        <RowDefinition Height="80" />                        <RowDefinition Height="140" />                        <RowDefinition Height="*"/>                    </Grid.RowDefinitions>                    <Grid.ColumnDefinitions>                        <ColumnDefinition Width="120" />                        <ColumnDefinition Width="210" />                        <ColumnDefinition  Width="*"/>                    </Grid.ColumnDefinitions>                    <Border    BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 1 0 1"   Background="{DynamicResource Table_BG_Title}"  Grid.Row="0" Grid.Column="0"   Padding="5,0,0,0">                        <TextBlock  HorizontalAlignment="Center" VerticalAlignment="Center"  FontSize="16" Text="Press Sensor:"/>                    </Border>                    <Border    BorderBrush="{DynamicResource Table_BD}"  BorderThickness="0 1 0 1"   Background="{DynamicResource Table_BG_Content}"   Grid.Row="0" Grid.Column="1" Padding="5,0,0,0" >                        <TextBox IsReadOnly="True" Tag="None"  HorizontalContentAlignment="Center" Cursor="Hand"  Width="200" Height="45"  Text="{Binding SelectedParameterStep.PressSensor,UpdateSourceTrigger=PropertyChanged}">                            <i:Interaction.Triggers>                                <i:EventTrigger EventName="PreviewMouseLeftButtonDown">                                    <cal:ActionMessage MethodName="ShowPressureSensorList">                                    </cal:ActionMessage>                                </i:EventTrigger>                            </i:Interaction.Triggers>                        </TextBox>                    </Border>                    <Border    BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 1 0 1"  Grid.Row="0" Grid.Column="2"  Padding="5,0,0,0">                    </Border>                                   <!--Base Pressure Check-->                    <Border    BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 0 0"  Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" >                        <Grid HorizontalAlignment="Left" Margin="10,10,0,0" >                            <Grid.RowDefinitions>                                <RowDefinition Height="20" />                                <RowDefinition Height="50" />                                <RowDefinition Height="50" />                                <RowDefinition Height="50" />                                <RowDefinition Height="*"/>                            </Grid.RowDefinitions>                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="300" />                                <ColumnDefinition Width="200" />                                <ColumnDefinition Width="200" />                                <ColumnDefinition Width="100" />                                <ColumnDefinition  Width="200"  />                            </Grid.ColumnDefinitions>                            <Label Content="Base Pressure Check" Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.ColumnSpan="2" Padding="5,1">                                <TextBlock Text="BP = BASE PRESSURE" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" Padding="5,1">                                <TextBlock Text="BPLIMIT  <= BP  <= PL                   OK" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}"  Grid.Row="1" Grid.Column="4" Padding="5,1">                                <TextBlock Text="Error Command" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="0" Padding="5,1">                                <TextBlock Text="PH = HIGH LIMIT(Torr)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"  Grid.Row="2" Grid.Column="1" Padding="5,1">                                <controls:TextBoxEx Width="200"  Height="45"  Tag="Number" Text="{Binding SelectedParameterStep.PHHighLimit.Value, StringFormat={}{0:f3},UpdateSourceTrigger=PropertyChanged}"  KeepDecimals="3" EditBoxMode="Decimal" Canvas.Left="230" Canvas.Top="60">                                                                 </controls:TextBoxEx>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="2"  Padding="5,1">                                <TextBlock Text="PH < BP" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"  Grid.Row="2" Grid.Column="3"  Grid.ColumnSpan="2" Padding="5,1">                                <TextBox Tag="None" IsReadOnly="True" Text="{Binding SelectedParameterStep.HightLimitCommand,UpdateSourceTrigger=PropertyChanged}" Width="400" Height="45">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="PreviewMouseLeftButtonDown">                                            <cal:ActionMessage MethodName="SelectedAlarmErrorParameterCommand">                                                <cal:Parameter Value="HightLimitCommand"/>                                                <cal:Parameter Value="$source"/>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </TextBox>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="0" Padding="5,1">                                <TextBlock Text="PL = LOW LIMIT(Torr)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"  Grid.Row="3" Grid.Column="1" Padding="5,1">                                <controls:TextBoxEx Width="200" Height="45"  Tag="Number" Text="{Binding SelectedParameterStep.PLLowLimit.Value,UpdateSourceTrigger=PropertyChanged}"  KeepDecimals="3" EditBoxMode="Decimal" Canvas.Left="230" Canvas.Top="80">                                                                </controls:TextBoxEx>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="2"  Padding="5,1">                                <TextBlock Text="PL < BP <= PH" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"  Grid.Row="3" Grid.Column="3"  Grid.ColumnSpan="2" Padding="5,1">                                <TextBox Tag="None" IsReadOnly="True" Text="{Binding SelectedParameterStep.LowLimitCommand,UpdateSourceTrigger=PropertyChanged}" Width="400" Height="45">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="PreviewMouseLeftButtonDown">                                            <cal:ActionMessage MethodName="SelectedAlarmErrorParameterCommand">                                                <cal:Parameter Value="LowLimitCommand"/>                                                <cal:Parameter Value="$source"/>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </TextBox>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="0"  Padding="5,1">                                <TextBlock Text="BPLIMIT = BASE PRESSURE LIMIT(Torr)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"  Grid.Row="4" Grid.Column="1" Padding="5,1">                                <controls:TextBoxEx Width="200" Height="45"  Tag="Number" Text="{Binding SelectedParameterStep.BPLimit.Value,UpdateSourceTrigger=PropertyChanged}"  KeepDecimals="3" EditBoxMode="Decimal" Canvas.Left="230" Canvas.Top="130">                                                              </controls:TextBoxEx>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="2"  Padding="5,1">                                <TextBlock Text="BP < BPLIMIT" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="3"  Grid.ColumnSpan="2" Padding="5,1">                                <TextBox Tag="None" IsReadOnly="True" Text="{Binding SelectedParameterStep.BasePressureLimitCommand,UpdateSourceTrigger=PropertyChanged}" Width="400" Height="45">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="PreviewMouseLeftButtonDown">                                            <cal:ActionMessage MethodName="SelectedAlarmErrorParameterCommand">                                                <cal:Parameter Value="BasePressureLimitCommand"/>                                                <cal:Parameter Value="$source"/>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </TextBox>                            </Border>                        </Grid>                    </Border>                    <!--Leak Check Delay-->                    <Border    BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 0 0"   Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" >                        <Grid HorizontalAlignment="Left" Margin="10,10,0,0">                            <Grid.RowDefinitions>                                <RowDefinition  Height="20"/>                                <RowDefinition />                            </Grid.RowDefinitions>                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="300" />                                <ColumnDefinition Width="200" />                                <ColumnDefinition Width="200" />                                <ColumnDefinition Width="100" />                                <ColumnDefinition  Width="200"  />                            </Grid.ColumnDefinitions>                            <Label Content="Leak Check Delay" Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1"   Padding="5,1">                                <TextBlock Text="Delay Time(s)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"  Grid.Row="1" Grid.Column="1"  Padding="5,1">                                <controls:TextBoxEx   Tag="Number" Text="{Binding SelectedParameterStep.DelayTime,UpdateSourceTrigger=PropertyChanged}" KeepDecimals="3" EditBoxMode="Decimal" Width="200" Height="45">                                                                  </controls:TextBoxEx>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="3" Padding="5,1">                            </Border>                        </Grid>                    </Border>                    <!--Leak Check-->                    <Border    BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 0 0"  Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" >                        <Grid  HorizontalAlignment="Left" Margin="10,10,0,0">                            <Grid.RowDefinitions>                                <RowDefinition   Height="20" />                                <RowDefinition />                                <RowDefinition />                            </Grid.RowDefinitions>                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="300" />                                <ColumnDefinition Width="200" />                                <ColumnDefinition Width="200" />                                <ColumnDefinition Width="100" />                                <ColumnDefinition  Width="200"  />                            </Grid.ColumnDefinitions>                            <Label Content="Leak Check" Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1"   Padding="5,1">                                <TextBlock Text="Check Time(s)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"   Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="1" Padding="5,1">                                <controls:TextBoxEx Width="200" Height=" 45"  Tag="Number" Text="{Binding SelectedParameterStep.CheckTime,UpdateSourceTrigger=PropertyChanged}" KeepDecimals="3" EditBoxMode="Decimal" >                                                           </controls:TextBoxEx>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="3" Padding="5,1">                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1"   Background="{DynamicResource Table_BG_Title}"  Grid.Row="2"   Padding="5,1">                                <TextBlock Text="Leak Limit(Torr)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Content}"  Grid.Row="2" Grid.Column="1" Padding="5,1">                                <controls:TextBoxEx Width="200" Height="45"  Tag="Number" Text="{Binding SelectedParameterStep.LeakLimit.Value,UpdateSourceTrigger=PropertyChanged}"  KeepDecimals="3" EditBoxMode="Decimal" Canvas.Left="229" Canvas.Top="94">                                                                 </controls:TextBoxEx>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="2"  Padding="5,1">                                <TextBlock Text="Error Command" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}"  Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="2" Padding="5,1">                                <TextBox Tag="None" IsReadOnly="True" Width="400"  Height="45" Text="{Binding SelectedParameterStep.ErrorCommand,UpdateSourceTrigger=PropertyChanged}" >                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="PreviewMouseLeftButtonDown">                                            <cal:ActionMessage MethodName="SelectedAlarmErrorParameterCommand">                                                <cal:Parameter Value="Error"/>                                                <cal:Parameter Value="$source"/>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </TextBox>                            </Border>                        </Grid>                    </Border>                    <!--Retry Limit-->                    <Border    BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 0 0"   Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3" >                        <Grid  HorizontalAlignment="Left" Margin="10,10,0,0" >                            <Grid.RowDefinitions>                                <RowDefinition   Height="20" />                                <RowDefinition />                            </Grid.RowDefinitions>                            <Grid.ColumnDefinitions>                                <ColumnDefinition Width="300" />                                <ColumnDefinition Width="200" />                                <ColumnDefinition Width="200" />                                <ColumnDefinition Width="100" />                                <ColumnDefinition  Width="200"  />                            </Grid.ColumnDefinitions>                            <Label Content="Retry" Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1"   Padding="5,1">                                <TextBlock Text="Retry Limit(Count)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="1" Padding="5,1">                                <controls:TextBoxEx Width="200" Height="45"   Tag="Number" Text="{Binding SelectedParameterStep.RetryLimit.Value,UpdateSourceTrigger=PropertyChanged}"  EditBoxMode="SignInteger" Canvas.Left="229" Canvas.Top="65">                                                               </controls:TextBoxEx>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1"   Grid.Column="2"  Padding="5,1">                                <TextBlock Text="Retry Over Command" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>                            </Border>                            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0 0 1 1"  Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="2" Padding="5,1">                                <TextBox Tag="None" IsReadOnly="True" Width="400" Height="45" Text="{Binding SelectedParameterStep.RetryOverCommand,UpdateSourceTrigger=PropertyChanged}" Canvas.Left="151" Canvas.Top="72">                                    <i:Interaction.Triggers>                                        <i:EventTrigger EventName="PreviewMouseLeftButtonDown">                                            <cal:ActionMessage MethodName="SelectedAlarmErrorParameterCommand">                                                <cal:Parameter Value="RetryOver"/>                                                <cal:Parameter Value="$source"/>                                            </cal:ActionMessage>                                        </i:EventTrigger>                                    </i:Interaction.Triggers>                                </TextBox>                            </Border>                        </Grid>                    </Border>                </Grid>            </StackPanel>        </Border>        <!--Down-->        <Border   Margin="2,0,0,0" Grid.Row="2" Grid.ColumnSpan="3"  BorderBrush="{DynamicResource Table_BD}"   Background="{DynamicResource Table_BG_Content}">            <StackPanel  Orientation="Horizontal" HorizontalAlignment="Right" Height="50" Margin="0,0,10,10">                <Button Content="Unload"  Width="95" Margin="2"  Style="{StaticResource CommandButton}" IsEnabled="{Binding IsEnable}">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="ParameterUnload">                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>                <Button Content="Download"  Width="95" Margin="2"  Style="{StaticResource CommandButton}" IsEnabled="{Binding IsEnable}">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <cal:ActionMessage MethodName="ParameterDownload">                            </cal:ActionMessage>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>                <Button Content="Save"  Width="95" Margin="2"  Style="{StaticResource CommandButton}" IsEnabled="{Binding IsEnable}">                <i:Interaction.Triggers>                    <i:EventTrigger EventName="Click">                        <cal:ActionMessage MethodName="ParameterSave">                        </cal:ActionMessage>                    </i:EventTrigger>                </i:Interaction.Triggers>            </Button>            <Button Content="Cancel"  Width="95" Margin="2" Style="{StaticResource CommandButton}">                <i:Interaction.Triggers>                    <i:EventTrigger EventName="Click">                        <cal:ActionMessage MethodName="ParameterCancel">                        </cal:ActionMessage>                    </i:EventTrigger>                </i:Interaction.Triggers>            </Button>        </StackPanel>           </Border>         </Grid></UserControl>
 |