| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 | <UserControl x:Class="CyberX8_Themes.UserControls.PrewetMotionPanel"             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:converters="clr-namespace:CyberX8_Themes.Converters"             xmlns:local="clr-namespace:CyberX8_Themes.UserControls"             xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"             mc:Ignorable="d" x:Name="self"              d:DesignHeight="240" d:DesignWidth="600">    <UserControl.Resources>        <converters:BoolToColor x:Key="boolToColor"/>        <converters:BoolToYellowColor x:Key="boolToYellowColor"/>    </UserControl.Resources>    <Border BorderBrush="Gray">        <Grid>            <GroupBox Header="Motion">                <Grid>                    <Grid.RowDefinitions>                        <RowDefinition Height="40"/>                        <RowDefinition Height="30"/>                        <RowDefinition Height="30"/>                        <RowDefinition Height="40"/>                        <RowDefinition Height="40"/>                        <RowDefinition Height="40"/>                        <RowDefinition/>                    </Grid.RowDefinitions>                    <Grid.ColumnDefinitions>                        <ColumnDefinition Width="125"/>                        <ColumnDefinition Width="25"/>                        <ColumnDefinition Width="100"/>                        <ColumnDefinition Width="150"/>                        <ColumnDefinition/>                    </Grid.ColumnDefinitions>                    <Grid Grid.Row="0" Grid.Column="0">                        <Label Grid.Row="0" Content="Scanning" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>                    </Grid>                    <Grid Grid.Row="1" Grid.Column="0" Grid.RowSpan="2">                        <Label Grid.Row="0" Content="# Scans" FontSize="12" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>                    </Grid>                    <Grid Grid.Row="3" Grid.Column="0" >                        <Label Grid.Row="0" Content="Scan Speed" FontSize="12" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>                    </Grid>                    <Grid Grid.Row="4" Grid.Column="0">                        <Label Grid.Row="0" Content="Linmot Error" FontSize="12" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>                    </Grid>                    <Grid Grid.Row="5" Grid.Column="0">                        <Label Grid.Row="0" Content="Linmot Warning" FontSize="12" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>                    </Grid>                    <Grid Grid.Row="0" Grid.Column="1">                        <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"                            Fill="{Binding ElementName=self,Path=Run, Converter={StaticResource boolToColor}}"/>                    </Grid>                    <Grid Grid.Row="0" Grid.Column="2">                        <Button Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Grid.Column="1" Height="25" Width="80" HorizontalAlignment="Center" Content="Start" Click="Start_Click"></Button>                    </Grid>                    <Grid Grid.Row="0" Grid.Column="3">                        <Button Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Grid.Column="1" Height="25" Width="80" HorizontalAlignment="Left" Content="Stop" Click="Stop_Click"></Button>                    </Grid>                    <Border Grid.Row="1" Grid.Column="2"  Margin="5,5,35,5" Background="Black">                        <TextBlock  Text="{Binding ElementName=self,Path=CurrentScanedTimes}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>                    </Border>                    <Control:IntegerTextBox Grid.Row="2" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Left"  FontSize="15" FontWeight="Bold" Height="22" Width="60" Margin="5,0,5,0"                         Value="{Binding ElementName=self,Path=InputScanTimes,Mode=TwoWay}"                         TextboxName="InputScansTimes" />                    <Border Grid.Row="3" Grid.Column="2" Margin="5,5,5,5" Background="Black">                        <TextBlock  Text="{Binding ElementName=self, Path=ScanSpeed,StringFormat={}{0:F2}}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center"/>                    </Border>                    <Border Grid.Row="3" Grid.Column="3"  Margin="0,5,100,5" Background="Black">                        <TextBlock  Text="mm/s" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>                    </Border>                    <Border Grid.Row="4" Grid.Column="2" Grid.ColumnSpan="2" Margin="5,5,50,5" Background="Black">                        <TextBlock  Text="{Binding ElementName=self, Path=Error}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center"/>                    </Border>                    <Border Grid.Row="5" Grid.Column="2" Grid.ColumnSpan="2" Margin="5,5,50,5" Background="Black">                        <TextBlock  Text="{Binding ElementName=self, Path=LinmotWarning}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center"/>                    </Border>                </Grid>            </GroupBox>        </Grid>    </Border></UserControl>
 |