| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 | <UserControl x:Class="FurnaceUI.Views.Operations.SetParameterView"             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.Operations" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburn.org"             mc:Ignorable="d"              d:DesignHeight="450" d:DesignWidth="1000">    <Grid>        <Canvas Margin="20,10,0,0">            <Grid>                <Grid.RowDefinitions>                    <RowDefinition></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="140"></ColumnDefinition>                    <ColumnDefinition Width="70"></ColumnDefinition>                    <ColumnDefinition></ColumnDefinition>                    <ColumnDefinition></ColumnDefinition>                </Grid.ColumnDefinitions>                <Label Style="{DynamicResource Table_TitleStyle}"  Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">                    <Label.Content>                        <TextBlock Text="Match" Foreground="White"></TextBlock>                    </Label.Content>                </Label>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0" Padding="5,1,0,1">                    <TextBlock Text="Auto/Manual" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  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">                    <TextBlock Text="{Binding AutoMode}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="2" Padding="5,1">                    <Button Content="Auto" Width="88" Height="30" Margin="10,0,10,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetAutoMode">                                    <cal:Parameter Value="0" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="3" Padding="5,1">                    <Button Content="Manual" Width="88" Height="30" Margin="10,0,10,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetAutoMode">                                    <cal:Parameter Value="1" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </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,0,1">                    <TextBlock Text="C1 Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  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">                    <TextBlock Text="{Binding Capacitance1PositionSetpoint}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="2" Padding="5,1">                    <TextBox Text="" x:Name="tbC1Position" HorizontalContentAlignment="Center"  Width="90" Height="35" Tag="Number" Margin="10,0,0,0"></TextBox>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="3" Padding="5,1">                    <Button Content="Set" Width="88" Height="30" Margin="10,0,10,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="C1SaveValue">                                    <cal:Parameter Value="{Binding ElementName=tbC1Position}" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </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,0,1">                    <TextBlock Text="C2 Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  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">                    <TextBlock Text="{Binding Capacitance2PositionSetpoint}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="2" Padding="5,1">                    <TextBox Text="" x:Name="tbC2Position" HorizontalContentAlignment="Center"  Width="90" Height="35" Tag="Number" Margin="10,0,0,0"></TextBox>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="3" Padding="5,1">                    <Button Content="Set" Width="88" Height="30" Margin="10,0,10,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="C2SaveValue">                                    <cal:Parameter Value="{Binding ElementName=tbC2Position}" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </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,0,1">                    <TextBlock Text="C1 Current Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  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">                    <TextBlock Text="{Binding Capacitance1PositionFeedBack}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="2" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="3" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column="0" Padding="5,1,0,1">                    <TextBlock Text="C2 Current Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  VerticalAlignment="Center" />                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="1" Padding="5,1">                    <TextBlock Text="{Binding Capacitance2PositionFeedBack}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="2" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="3" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Grid.Column="0" Padding="5,1,0,1">                    <TextBlock Text="Vpp" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  VerticalAlignment="Center" />                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column ="1" Padding="5,1">                    <TextBlock Text="{Binding VppFeedBack}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column ="2" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column ="3" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Grid.Column="0" Padding="5,1,0,1">                    <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  VerticalAlignment="Center" />                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column ="1" Padding="5,1">                    <TextBlock Text="" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column ="2" Padding="5,1">                    <Button Content="Reset" Width="88" Height="30" Margin="10,0,10,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="Reset">                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column ="3" Padding="5,1">                </Border>            </Grid>            <Grid Canvas.Left="480">                <Grid.RowDefinitions>                    <RowDefinition ></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                    <RowDefinition Height="40"></RowDefinition>                </Grid.RowDefinitions>                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="120"></ColumnDefinition>                    <ColumnDefinition Width="70"></ColumnDefinition>                    <ColumnDefinition></ColumnDefinition>                    <ColumnDefinition></ColumnDefinition>                </Grid.ColumnDefinitions>                <Label Style="{DynamicResource Table_TitleStyle}"  Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">                    <Label.Content>                        <TextBlock Text="RF" Foreground="White"></TextBlock>                    </Label.Content>                </Label>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0" Padding="5,1,0,1">                    <TextBlock Text="Set Power" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  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">                    <TextBlock Text="{Binding PowerSetPoint}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="2" Padding="5,1">                    <TextBox Text="" x:Name="tbPower"  HorizontalContentAlignment="Center"  Width="90" Height="35" Tag="Number" Margin="10,0,0,0"></TextBox>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="3" Padding="5,1">                    <Button Content="Set" Width="88" Height="30" Margin="10,0,10,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="PowerSaveValue">                                    <cal:Parameter Value="{Binding ElementName=tbPower}" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </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,0,1">                    <TextBlock Text="Forward Power" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  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">                    <TextBlock Text="{Binding ForwardPower}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="2" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="3" Padding="5,1">                </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,0,1">                    <TextBlock Text="Reflected Power" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  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">                    <TextBlock Text="{Binding ReflectPower}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="2" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="3" Padding="5,1">                </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,0,1">                    <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  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">                    <TextBlock Text="{Binding RfPowerDeviceData.IsRfAlarm}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="2" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="3" Padding="5,1">                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column="0" Padding="5,1,0,1">                    <TextBlock Text="On/Off" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14"  VerticalAlignment="Center" />                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="1" Padding="5,1">                    <TextBlock Text="{Binding IsPowerOn}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="2" Padding="5,1">                    <Button Content="On" Width="88" Height="30" Margin="10,0,10,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetPower">                                    <cal:Parameter Value="On" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </Border>                <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="3" Padding="5,1">                    <Button Content="Off" Width="88" Height="30" Margin="10,0,10,0">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Click">                                <cal:ActionMessage MethodName="SetPower">                                    <cal:Parameter Value="Off" />                                </cal:ActionMessage>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </Button>                </Border>            </Grid>        </Canvas>       </Grid></UserControl>
 |