| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 | <UserControl x:Class="CyberX8_MainPages.Views.RobotCycleView"             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:CyberX8_MainPages.Views"             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"             xmlns:prism="http://prismlibrary.com/"             xmlns:customControls="clr-namespace:CyberX8_Themes.CustomControls;assembly=CyberX8_Themes"             xmlns:unity="clr-namespace:CyberX8_MainPages.Unity"              xmlns:Converters="clr-namespace:CyberX8_Themes.Converters;assembly=CyberX8_Themes"             prism:ViewModelLocator.AutoWireViewModel="True"             mc:Ignorable="d"              d:DesignHeight="1000" d:DesignWidth="2000">    <Canvas>        <Grid Height="600" Canvas.Left="100" Canvas.Top="30" HorizontalAlignment="Center" VerticalAlignment="Top" Width="500">            <Grid.RowDefinitions>                <RowDefinition Height="70"/>                <RowDefinition Height="70"/>                <RowDefinition Height="70"/>                <RowDefinition Height="70"/>                <RowDefinition Height="70"/>                <RowDefinition Height="70"/>                <RowDefinition Height="70"/>                <RowDefinition Height="70"/>                <RowDefinition />            </Grid.RowDefinitions>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="1*"/>                <ColumnDefinition Width="1*"/>                <ColumnDefinition Width="1*"/>            </Grid.ColumnDefinitions>            <GroupBox Header="LP Select" FontSize="14" FontWeight="Bold"  Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">                <Grid>                    <RadioButton  Content="LP1"  x:Name="lp1" IsChecked="True"  FontSize="19"  Margin="52,0,0,0" VerticalContentAlignment="Center" HorizontalAlignment="Left">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Checked">                                <i:InvokeCommandAction Command="{Binding LPChangeCommand}" CommandParameter="{Binding ElementName=lp1,Path=Content}"/>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </RadioButton>                    <RadioButton  Content="LP2"  x:Name="lp2" IsChecked="False"  FontSize="19"  Margin="0,0,0,0" VerticalContentAlignment="Center" HorizontalAlignment="Center">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Checked">                                <i:InvokeCommandAction Command="{Binding LPChangeCommand}" CommandParameter="{Binding ElementName=lp2,Path=Content}"/>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </RadioButton>                    <RadioButton  Content="LP3"  x:Name="lp3" IsChecked="False"  FontSize="19"  Margin="0,0,50,0" VerticalContentAlignment="Center" HorizontalAlignment="Right">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Checked">                                <i:InvokeCommandAction Command="{Binding LPChangeCommand}" CommandParameter="{Binding ElementName=lp3,Path=Content}"/>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </RadioButton>                </Grid>            </GroupBox>            <TextBlock  Grid.Row="1" Grid.Column="0" Text="Degree:" FontSize="19" VerticalAlignment="Center" Margin="30,10,0,0"/>            <TextBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Height="35" Width="70" FontSize="15" HorizontalAlignment="Center"  Margin="0,10,30,0" Background="White" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"  Text="{Binding InPutAlignDegree,Mode=TwoWay}" />            <GroupBox Header="Aligner Select" FontSize="14" FontWeight="Bold"  Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">                <Grid>                    <RadioButton Content="Aligner1"  x:Name="aligner" IsChecked="True" Margin="215,0,0,0" FontSize="19" VerticalContentAlignment="Center" HorizontalAlignment="Left">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Checked">                                <i:InvokeCommandAction Command="{Binding AlignerChangeCommand}" CommandParameter="{Binding ElementName=aligner,Path=Content}"/>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </RadioButton>                </Grid>            </GroupBox>            <GroupBox Header="Dummy Select" FontSize="14" FontWeight="Bold"  Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" IsEnabled="{Binding IsDummySelected}">                <Grid>                    <RadioButton  Content="Dummy1"  x:Name="dummy1" IsChecked="{Binding IsDummy1Checkd,Mode=TwoWay}" Margin="215,0,0,0" FontSize="19" VerticalContentAlignment="Center" HorizontalAlignment="Left">                                    </RadioButton>                    <RadioButton  Content="Dummy2"  x:Name="dummy2" IsChecked="{Binding IsDummy2Checkd,Mode=TwoWay}" Margin="300,0,0,0" FontSize="19" VerticalContentAlignment="Center" HorizontalAlignment="Center">                                  </RadioButton>                </Grid>            </GroupBox>            <CheckBox Grid.Row="2" Grid.Column="0" Margin="30,12,0,0"  VerticalAlignment="Center" HorizontalAlignment="Left" Content="DummySelect"  FontSize="16" FontWeight="Bold"                IsChecked="{Binding IsDummySelected,Mode=TwoWay}"/>            <GroupBox Header="SRD Select" FontSize="14" FontWeight="Bold"  Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" IsEnabled="{Binding IsSrdSelected}">                <Grid>                    <RadioButton  Content="SRD1"  x:Name="srd1" IsChecked="{Binding IsSrd1Checkd,Mode=TwoWay}" Margin="215,0,0,0" FontSize="19" VerticalContentAlignment="Center" HorizontalAlignment="Left">                                 </RadioButton>                    <RadioButton  Content="SRD2"  x:Name="srd2" IsChecked="{Binding IsSrd2Checkd,Mode=TwoWay}" Margin="265,0,0,0" FontSize="19" VerticalContentAlignment="Center" HorizontalAlignment="Center">                                </RadioButton>                </Grid>            </GroupBox>            <CheckBox Grid.Row="4" Grid.Column="0" Margin="30,12,0,0"  VerticalAlignment="Center" HorizontalAlignment="Left" Content="PufSelect"  FontSize="16" FontWeight="Bold"                     IsChecked="{Binding IsPufSelected,Mode=TwoWay}"/>            <GroupBox Header="Puf Select" FontSize="14" FontWeight="Bold"  Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3" IsEnabled="{Binding IsPufSelected}">                <Grid>                    <RadioButton Content="PUF1"  x:Name="puf1" IsChecked="True" Margin="215,0,0,0" FontSize="19" VerticalContentAlignment="Center" HorizontalAlignment="Left">                        <i:Interaction.Triggers>                            <i:EventTrigger EventName="Checked">                                <i:InvokeCommandAction Command="{Binding PufChangeCommand}" CommandParameter="{Binding ElementName=puf1,Path=Content}"/>                            </i:EventTrigger>                        </i:Interaction.Triggers>                    </RadioButton>                </Grid>            </GroupBox>            <CheckBox Grid.Row="3" Grid.Column="0" Margin="30,12,0,0"  VerticalAlignment="Center" HorizontalAlignment="Left" Content="SrdSelect"  FontSize="16" FontWeight="Bold"                 IsChecked="{Binding IsSrdSelected,Mode=TwoWay}"/>            <TextBlock  Grid.Row="5" Grid.Column="0" Text="Cycle :" FontSize="19" VerticalAlignment="Center" Margin="58,0,0,0"/>            <TextBox Grid.Row="5" Grid.Column="1" Height="35" Width="80" FontSize="15" HorizontalAlignment="Left"  Margin="0,0,0,0" Background="White" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"  Text="{Binding InPutCycleTimes,Mode=TwoWay}" />            <TextBlock  Grid.Row="6" Grid.Column="0" Text="Current :" FontSize="19" VerticalAlignment="Center" Margin="58,0,0,0"/>            <Border Grid.Row="6" Grid.Column="1" Margin="0,0,0,0" Background="Black" Height="35" Width="80" HorizontalAlignment="Left">                <TextBlock  Text="{Binding CurrentCycle}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Center"/>            </Border>            <Button Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="2" Content="Start" Width="120" Height="36" Command="{Binding RobotCycleStartCommand}" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center"/>            <Button Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" Content="Aobot" Width="120" Height="36" Command="{Binding RobotCycleAbortCommand}" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center"/>        </Grid>    </Canvas></UserControl>
 |