|
@@ -9,261 +9,277 @@
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
xmlns:Converter ="clr-namespace:InkjetScale.Common.Converter;assembly=InkjetScale.Common"
|
|
xmlns:Converter ="clr-namespace:InkjetScale.Common.Converter;assembly=InkjetScale.Common"
|
|
|
|
|
+ xmlns:BoolConverter ="clr-namespace:InkjetScale.Common.Converter;assembly=InkjetScale.Common"
|
|
|
xmlns:c ="clr-namespace:CalcBinding;assembly=CalcBinding"
|
|
xmlns:c ="clr-namespace:CalcBinding;assembly=CalcBinding"
|
|
|
d:DesignHeight="952.94" d:DesignWidth="1450" Background="{x:Null}">
|
|
d:DesignHeight="952.94" d:DesignWidth="1450" Background="{x:Null}">
|
|
|
|
|
|
|
|
<UserControl.Resources>
|
|
<UserControl.Resources>
|
|
|
<Converter:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
|
<Converter:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
|
|
|
|
+ <BoolConverter:BooleanToEnableConverter x:Key="BooleanToEnableConverter"/>
|
|
|
</UserControl.Resources>
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
<Grid>
|
|
<Grid>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="1.2*"/>
|
|
|
|
|
|
|
+ <ColumnDefinition Width="0.7*"/>
|
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Grid Grid.Column="0">
|
|
<Grid Grid.Column="0">
|
|
|
-
|
|
|
|
|
- <Grid Grid.Row="0">
|
|
|
|
|
- <!--<ContentControl Content="{Binding ControlView}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5"/>-->
|
|
|
|
|
- <ContentControl Content="{Binding RegisterView}" Width="500" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5"/>
|
|
|
|
|
- </Grid>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <!--<ContentControl Content="{Binding ControlView}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5"/>-->
|
|
|
|
|
+ <ContentControl Content="{Binding RegisterView}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
|
|
<Grid Grid.Column="1">
|
|
<Grid Grid.Column="1">
|
|
|
|
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- <ColumnDefinition Width="3.5*"/>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
|
-
|
|
|
|
|
- <Grid Grid.Column="1">
|
|
|
|
|
-
|
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
|
- <RowDefinition Height="0.25*"/>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- <RowDefinition Height="0.5*"/>
|
|
|
|
|
- <RowDefinition Height="0.7*"/>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- <RowDefinition Height="0.55*"/>
|
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
|
-
|
|
|
|
|
- <Grid Grid.Row="1">
|
|
|
|
|
- <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5" >
|
|
|
|
|
- <Grid>
|
|
|
|
|
-
|
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- <RowDefinition Height="6"/>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
|
-
|
|
|
|
|
- <Grid Grid.Row="0">
|
|
|
|
|
- <TextBlock Text="Head" FontSize="25" Foreground="Black" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="0.5*"/>
|
|
|
|
|
+ <RowDefinition Height="0.7*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="0.8*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
|
|
|
- <Separator Grid.Row="1"/>
|
|
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5" >
|
|
|
|
|
+ <Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="2">
|
|
|
|
|
- <ComboBox ItemsSource="{Binding HeadList}" SelectedItem="{Binding SelectedHead}" FontSize="25" Width="auto"
|
|
|
|
|
- HorizontalAlignment="Center" Foreground="Black"/>
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="6"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <TextBlock Text="Head" FontSize="25" Foreground="Black" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Separator Grid.Row="1"/>
|
|
|
|
|
|
|
|
|
|
+ <Grid Grid.Row="2">
|
|
|
|
|
+ <ComboBox ItemsSource="{Binding HeadList}" SelectedItem="{Binding SelectedHead}" FontSize="25" Width="auto"
|
|
|
|
|
+ HorizontalAlignment="Center" Foreground="Black"/>
|
|
|
</Grid>
|
|
</Grid>
|
|
|
- </Border>
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
|
|
|
- <Grid Grid.Row="2">
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
|
|
|
- <Grid>
|
|
|
|
|
|
|
+ <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
+ <Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="0" Grid.Column="0">
|
|
|
|
|
- <TextBlock Text="Drop Count" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="0" Grid.Column="1">
|
|
|
|
|
- <TextBox Text="{Binding DropCount, FallbackValue=2000}" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Grid Grid.Row="0" Grid.Column="0">
|
|
|
|
|
+ <TextBlock Text="Drop Count" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
|
|
+ <Grid Grid.Row="0" Grid.Column="1">
|
|
|
|
|
+ <TextBox Text="{Binding DropCount, FallbackValue=2000}" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
|
|
- </Border>
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Border>
|
|
|
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="3" >
|
|
|
|
|
|
|
+ <Grid Grid.Row="2" >
|
|
|
|
|
|
|
|
- <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
+ <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
|
- <Grid>
|
|
|
|
|
|
|
+ <Grid>
|
|
|
|
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="0">
|
|
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <Grid Grid.Column="0" Grid.Row ="0">
|
|
|
|
|
- <!--<Button Style="{StaticResource MaterialDesignRaisedButton}" Content="Zero" Command="{Binding RunCommand}" CommandParameter="Z"
|
|
|
|
|
|
|
+ <Grid Grid.Column="0" Grid.Row ="0">
|
|
|
|
|
+ <!--<Button Style="{StaticResource MaterialDesignRaisedButton}" Content="Zero" Command="{Binding RunCommand}" CommandParameter="Z"
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="100"/>-->
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="100"/>-->
|
|
|
- <Button Style="{StaticResource MaterialDesignRaisedButton}" Content="Reset" Command="{Binding RunCommand}" CommandParameter="C"
|
|
|
|
|
- HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="100"/>
|
|
|
|
|
- </Grid>
|
|
|
|
|
-
|
|
|
|
|
- <Grid Grid.Column="1" Grid.Row ="0">
|
|
|
|
|
- <Button Style="{StaticResource MaterialDesignRaisedButton}" Content="Measure" Command="{Binding RunCommand}" CommandParameter="S"
|
|
|
|
|
- HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="100"/>
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Button Style="{StaticResource MaterialDesignRaisedButton}" Content="Reset" Command="{Binding RunCommand}" CommandParameter="Z"
|
|
|
|
|
+ HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="100"
|
|
|
|
|
+ IsEnabled="{c:Binding !IsAuto , Converter={StaticResource BooleanToEnableConverter}}"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Column="2" Grid.Row ="0">
|
|
|
|
|
- <Button Style="{StaticResource MaterialDesignRaisedButton}" Content="Zero(T)" Command="{Binding RunCommand}" CommandParameter="T"
|
|
|
|
|
- HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="100"/>
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Grid Grid.Column="1" Grid.Row ="0">
|
|
|
|
|
+ <Button Style="{StaticResource MaterialDesignRaisedButton}" Content="Measure" Command="{Binding RunCommand}" CommandParameter="S"
|
|
|
|
|
+ HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="100"
|
|
|
|
|
+ IsEnabled="{c:Binding !IsAuto , Converter={StaticResource BooleanToEnableConverter}}"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Column="2" Grid.Row ="1">
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Grid Grid.Column="2" Grid.Row ="0">
|
|
|
|
|
+ <Button Style="{StaticResource MaterialDesignRaisedButton}" Content="Zero(T)" Command="{Binding RunCommand}" CommandParameter="T"
|
|
|
|
|
+ HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="100"
|
|
|
|
|
+ IsEnabled="{c:Binding !IsAuto , Converter={StaticResource BooleanToEnableConverter}}"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
|
|
+ <Grid Grid.Column="2" Grid.Row ="1">
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="1">
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
|
|
|
- <TextBlock Grid.Column="0" Text="Receive" Foreground="Black" FontSize="20" Width="auto"
|
|
|
|
|
- HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
- <TextBlock Grid.Column="1" Text="{Binding ReceiveMsg}" Foreground="Black" FontSize="20" Width="auto"
|
|
|
|
|
|
|
+ <TextBlock Grid.Column="0" Text="Receive" Foreground="Black" FontSize="20" Width="auto"
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
- </Grid>
|
|
|
|
|
|
|
|
|
|
|
|
+ <TextBlock Grid.Column="1" Text="{Binding ReceiveMsg}" Foreground="Black" FontSize="20" Width="auto"
|
|
|
|
|
+ HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
|
|
- </Border>
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ </Border>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="4" >
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
+ <Grid Grid.Row="3" >
|
|
|
|
|
|
|
|
- <Grid>
|
|
|
|
|
|
|
+ <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
+ <Grid>
|
|
|
|
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="0" Grid.Column="0">
|
|
|
|
|
- <TextBlock Text="Weight(mg)" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0" Grid.Column="0">
|
|
|
|
|
+ <TextBlock Text="Weight(mg)" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="0" Grid.Column="1">
|
|
|
|
|
- <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
|
|
|
|
|
- <materialDesign:PackIcon Kind="Brightness1" Width="25" Height="35" Foreground="LimeGreen"
|
|
|
|
|
|
|
+ <Grid Grid.Row="0" Grid.Column="1">
|
|
|
|
|
+ <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="Brightness1" Width="25" Height="35" Foreground="LimeGreen"
|
|
|
Visibility="{c:Binding IsStable , Converter={StaticResource BooleanToVisibilityConverter}}" />
|
|
Visibility="{c:Binding IsStable , Converter={StaticResource BooleanToVisibilityConverter}}" />
|
|
|
- <materialDesign:PackIcon Kind="Brightness1" Width="25" Height="35" Foreground="Red"
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Kind="Brightness1" Width="25" Height="35" Foreground="Red"
|
|
|
Visibility="{c:Binding !IsStable , Converter={StaticResource BooleanToVisibilityConverter}}"/>
|
|
Visibility="{c:Binding !IsStable , Converter={StaticResource BooleanToVisibilityConverter}}"/>
|
|
|
- </StackPanel>
|
|
|
|
|
- <TextBlock Text="{Binding WeightValue, FallbackValue=0.00}" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
-
|
|
|
|
|
- <Grid Grid.Row="1" Grid.Column="0">
|
|
|
|
|
- <TextBlock Text="pl" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
-
|
|
|
|
|
- <Grid Grid.Row="1" Grid.Column="1">
|
|
|
|
|
- <TextBlock Text="{Binding PlValue, FallbackValue=0.00}" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ <TextBlock Text="{Binding WeightValue, FallbackValue=0.00}" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="0">
|
|
|
|
|
+ <TextBlock Text="pl" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
|
|
- </Border>
|
|
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="1">
|
|
|
|
|
+ <TextBlock Text="{Binding PlValue, FallbackValue=0.00}" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
|
|
+ </Border>
|
|
|
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="5">
|
|
|
|
|
|
|
+ <Grid Grid.Row="4">
|
|
|
|
|
|
|
|
- <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
+ <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
|
- <Grid>
|
|
|
|
|
|
|
+ <Grid>
|
|
|
|
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- <ColumnDefinition/>
|
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- <RowDefinition Height="*"/>
|
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="0" Grid.Column="0">
|
|
|
|
|
- <TextBlock Text="Tare(mg)" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ <Grid Grid.Row="0" Grid.Column="0">
|
|
|
|
|
+ <TextBlock Text="Tare(mg)" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="0" Grid.Column="1">
|
|
|
|
|
- <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
|
|
|
|
|
- <materialDesign:PackIcon Kind="Brightness1" Width="25" Height="35" Foreground="LimeGreen"
|
|
|
|
|
|
|
+ <Grid Grid.Row="0" Grid.Column="1">
|
|
|
|
|
+ <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="Brightness1" Width="25" Height="35" Foreground="LimeGreen"
|
|
|
Visibility="{c:Binding IsTareStable , Converter={StaticResource BooleanToVisibilityConverter}}" />
|
|
Visibility="{c:Binding IsTareStable , Converter={StaticResource BooleanToVisibilityConverter}}" />
|
|
|
- <materialDesign:PackIcon Kind="Brightness1" Width="25" Height="35" Foreground="Red"
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Kind="Brightness1" Width="25" Height="35" Foreground="Red"
|
|
|
Visibility="{c:Binding !IsTareStable , Converter={StaticResource BooleanToVisibilityConverter}}"/>
|
|
Visibility="{c:Binding !IsTareStable , Converter={StaticResource BooleanToVisibilityConverter}}"/>
|
|
|
- </StackPanel>
|
|
|
|
|
- <TextBlock Text="{Binding TareWeight, FallbackValue=0.00}" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ <TextBlock Text="{Binding TareWeight, FallbackValue=0.00}" Foreground="Black" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="1" Grid.Column="0">
|
|
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="0">
|
|
|
|
|
|
|
|
- <TextBlock Grid.Column="0" Text="Receive" Foreground="Black" FontSize="20" Width="auto"
|
|
|
|
|
|
|
+ <TextBlock Grid.Column="0" Text="Receive" Foreground="Black" FontSize="20" Width="auto"
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Row="1" Grid.Column="1">
|
|
|
|
|
- <TextBlock Grid.Column="1" Text="{Binding TareReceiveMsg}" Foreground="Black" FontSize="20" Width="auto"
|
|
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="1">
|
|
|
|
|
+ <TextBlock Grid.Column="1" Text="{Binding TareReceiveMsg}" Foreground="Black" FontSize="20" Width="auto"
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
- </Grid>
|
|
|
|
|
-
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
|
|
- </Border>
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
|
|
+ <Grid Grid.Row="5">
|
|
|
|
|
+ <Border CornerRadius="10" Background="LightBlue" BorderBrush="#0075ce" Padding="5" BorderThickness="2" Margin="5">
|
|
|
|
|
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="0">
|
|
|
|
|
+ <Button Style="{StaticResource MaterialDesignRaisedButton}" Content="LIVE" Command="{Binding RunModeChangeCommand}" CommandParameter="AUTO"
|
|
|
|
|
+ HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="150" MinHeight="50" FontSize="30"
|
|
|
|
|
+ IsEnabled="{c:Binding !IsAuto , Converter={StaticResource BooleanToEnableConverter}}"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="1">
|
|
|
|
|
+ <Button Style="{StaticResource MaterialDesignRaisedButton}" Content="MANUAL" Command="{Binding RunModeChangeCommand}" CommandParameter="MANUAL"
|
|
|
|
|
+ HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="150" MinHeight="50" FontSize="30"
|
|
|
|
|
+ IsEnabled="{c:Binding IsAuto , Converter={StaticResource BooleanToEnableConverter}}"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Border>
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
|
|
- <Grid Grid.Column="2" Margin="5">
|
|
|
|
|
|
|
+ <Grid Grid.Column="2" >
|
|
|
<ContentControl Content="{Binding LogView}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
|
<ContentControl Content="{Binding LogView}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|