| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 | <UserControl x:Class="PunkHPX8_Themes.UserControls.CrossDoseControl"             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:PunkHPX8_Themes.UserControls"             xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"              xmlns:Converters="clr-namespace:PunkHPX8_Themes.Converters"             mc:Ignorable="d" x:Name="self"             d:DesignHeight="202" d:DesignWidth="333">    <UserControl.Resources>        <Converters:BoolToVisibility2 x:Key="boolToVisibility2"/>        <Converters:BoolToVisibility x:Key="boolToVisibility"/>    </UserControl.Resources>    <GroupBox Header="Cross Dose" FontWeight="Bold" FontSize="15">        <Grid>            <Grid.RowDefinitions>                <RowDefinition Height="25"></RowDefinition>                <RowDefinition Height="30"></RowDefinition>                <RowDefinition Height="30"></RowDefinition>                <RowDefinition Height="30"></RowDefinition>                <RowDefinition Height="30"></RowDefinition>                <RowDefinition Height="30"></RowDefinition>            </Grid.RowDefinitions>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="100"/>                <ColumnDefinition Width="100"/>                <ColumnDefinition Width="120"/>            </Grid.ColumnDefinitions>            <Grid Grid.Column="2" Grid.Row="0">                <Label FontSize="14" FontWeight="Bold" VerticalAlignment="Bottom" Content="Request(mL)" HorizontalAlignment="Center"></Label>            </Grid>            <Grid Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center">                <Button Style="{StaticResource SysBtnStyle}" Click="Start_Click" Height="30" Width="80" HorizontalAlignment="Center" VerticalAlignment="Bottom"  Content="Start"></Button>            </Grid>            <Grid Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">                <Button Style="{StaticResource SysBtnStyle}" Click="Halt_Click"  Height="30" Width="80" HorizontalAlignment="Center" VerticalAlignment="Bottom"  Content="Halt"></Button>            </Grid>            <Grid Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">                <TextBox x:Name="requestVolume" VerticalAlignment="Center"  HorizontalContentAlignment="Center" VerticalContentAlignment="Center" PreviewTextInput="OnPreviewTextInput" InputMethod.IsInputMethodEnabled="False" HorizontalAlignment="Center" FontSize="15" FontWeight="Bold" Height="30" Width="110"/>            </Grid>            <Grid Grid.Row="2" Grid.Column="0">                <Label Content="Remaining" FontSize="14" FontWeight="Bold" VerticalAlignment="Bottom" HorizontalAlignment="Center" />            </Grid>            <Border Grid.Row="3" Background="Black" Width="80">                <TextBlock Text="{Binding ElementName=self,Path=ReservoirData.RemainingCrossDoseVolume,StringFormat=\{0:F2\} mL}" Foreground="Lime" FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>            </Border>            <Grid Grid.Row="4" Grid.RowSpan="2" Grid.Column="0" Margin="0 10 0 0" HorizontalAlignment="Center" VerticalAlignment="Center">                <Button  Style="{StaticResource SysBtnStyle}" Click="Calibrate_Click" IsEnabled="{Binding ElementName=self,Path=IsCalibrateEnable}" Grid.Column="1" Height="30" Width="80" HorizontalAlignment="Center" VerticalAlignment="Bottom"  Content="Calibrate"></Button>            </Grid>            <Grid Grid.Row="2" Grid.Column="1">                <Label Content="Flow" FontSize="14" FontWeight="Bold" VerticalAlignment="Bottom" HorizontalAlignment="Center" />            </Grid>            <Border Grid.Row="3" Grid.Column="1" Background="Black" Width="80">                <TextBlock Text="{Binding ElementName=self,Path=ANTransferFlow,StringFormat=\{0:F2\} L/min}" Foreground="Lime" FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>            </Border>            <Grid Grid.Column="2" Grid.Row="2">                <Label FontSize="14" FontWeight="Bold" VerticalAlignment="Bottom" HorizontalAlignment="Center" Content="Counter(mL)"></Label>            </Grid>            <Grid Grid.Row="3" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">                <Grid.ColumnDefinitions>                    <ColumnDefinition Width="12*"/>                    <ColumnDefinition Width="43*"/>                </Grid.ColumnDefinitions>                <TextBox x:Name="counterVolume" Visibility="{Binding ElementName=self,Path=IsAutoMode, Converter={StaticResource boolToVisibility}}" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" PreviewTextInput="OnPreviewTextInput" InputMethod.IsInputMethodEnabled="False" HorizontalAlignment="Left" FontSize="15" FontWeight="Bold" Height="30" Width="110" Grid.ColumnSpan="2"/>                <TextBox IsEnabled="False" Visibility="{Binding ElementName=self,Path=IsAutoMode,Converter={StaticResource boolToVisibility2}}"                          Text="{Binding ElementName=self,Path=TargetDosingVolume,StringFormat=\{0:F2\}}" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Left" FontSize="15" FontWeight="Bold" Height="30" Width="110" Grid.ColumnSpan="2"/>            </Grid>            <Grid Grid.Row="4" Grid.Column="1">                <Label FontSize="14" FontWeight="Bold" VerticalAlignment="Bottom" HorizontalAlignment="Center" Content="Pump Factor"></Label>            </Grid>            <Border Grid.Row="5" Grid.Column="1" Background="Black" Width="80">                <TextBlock Text="{Binding ElementName=self,Path=PumpFactor,StringFormat=\{0:F3\}}" Foreground="Lime" FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>            </Border>            <Grid Grid.Row="4" Grid.RowSpan="2" Grid.Column="2" Margin="0 10 0 0" HorizontalAlignment="Center" VerticalAlignment="Center">                <Button  Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding ElementName=self,Path=IsCalibrateEnable}" Click="Reset_Click" Grid.Column="1" Height="30" Width="80" HorizontalAlignment="Center" VerticalAlignment="Bottom"  Content="Reset"></Button>            </Grid>        </Grid>    </GroupBox></UserControl>
 |