You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
15 KiB

<tool:BaseDialog x:Class="Gumming.ControlCOTPrView"
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"
mc:Ignorable="d"
xmlns:local="clr-namespace:Gumming"
xmlns:tool="clr-namespace:GummingCommon;assembly=GummingCommon"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
d:DesignHeight="700" d:DesignWidth="1000"
Height="360" Width="400" WindowStartupLocation="CenterScreen"
Background="{DynamicResource DefaultWindowBackground}"
x:Name="rootControl">
<Window.Resources>
<tool:RadioButtonConverter x:Key="RadioConverter"/>
<tool:BooleanToOpacityConverter x:Key="OpacityConverter"/>
<tool:EditorTextConverter x:Key="TextBrushConverter"/>
<tool:EditorBorderConverter x:Key="BorderBrushConverter"/>
<tool:PathTypeToThemeConverter x:Key="PathTypeConverter"/>
<tool:StepStyleConverter x:Key="StepStyleConverter"/>
<tool:TagStyleConverter x:Key="TagStyleConverter"/>
</Window.Resources>
<Grid Background="Transparent">
<Border CornerRadius="3" BorderBrush="Transparent" BorderThickness="1" Background="Transparent">
<Border CornerRadius="1" BorderThickness="1" Background="Transparent" Height="Auto" BorderBrush="{DynamicResource DialogInnerBorder}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="36"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="10"></RowDefinition>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{DynamicResource DialogHeaderBackground}" BorderBrush="{DynamicResource DefaultBorderBrush}" BorderThickness="0,0,0,1">
<Grid>
<TextBlock Grid.Row="0" Margin="5" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding HeaderTitle}"></TextBlock>
<Button Command="{Binding CancelCommand}" Cursor="Hand" Margin="0,6,10,0" VerticalAlignment="Top" HorizontalAlignment="Right" Grid.Column="1" Style="{DynamicResource btnCloseStyle}" Width="26" Height="26" x:Name="btnWinClose" Focusable="False"></Button>
</Grid>
</Border>
<Grid Grid.Row="1" Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"></ColumnDefinition>
<ColumnDefinition Width="5"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="5"></ColumnDefinition>
<ColumnDefinition Width="0"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Grid.Row="4" Grid.Column="0" Text="排空" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Row="6" Grid.Column="0" Text="注胶" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Row="8" Grid.Column="0" Text="回吸" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Row="10" Grid.Column="0" Text="吸胶" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Row="12" Grid.Column="0" Text="动作" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
</Grid>
<Border Grid.Column="2" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="5"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="胶泵参数" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBox Grid.Row="0" Grid.Column="2" Text="{Binding CurPosition}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" IsReadOnly="True"></TextBox>
<TextBlock Grid.Row="2" Grid.Column="0" Text="胶量p" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Row="2" Grid.Column="2" Text="速度p/s" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<local:FloatBox MaxValue="18000" Grid.Row="4" Grid.Column="0" Text="{Binding Stillicide.ClearPosition, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></local:FloatBox>
<local:FloatBox MaxValue="18000" Grid.Row="4" Grid.Column="2" Text="{Binding Stillicide.ClearSpeed, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></local:FloatBox>
<local:FloatBox MaxValue="18000" Grid.Row="6" Grid.Column="0" Text="{Binding Stillicide.InjectPosition, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></local:FloatBox>
<local:FloatBox MaxValue="18000" Grid.Row="6" Grid.Column="2" Text="{Binding Stillicide.InjectSpeed, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></local:FloatBox>
<local:FloatBox MaxValue="18000" Grid.Row="8" Grid.Column="0" Text="{Binding Stillicide.BackPosition, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></local:FloatBox>
<local:FloatBox MaxValue="18000" Grid.Row="8" Grid.Column="2" Text="{Binding Stillicide.BackSpeed, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></local:FloatBox>
<local:FloatBox MaxValue="18000" Grid.Row="10" Grid.Column="2" Text="{Binding Stillicide.FillSpeed, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></local:FloatBox>
<Button Grid.Row="12" Grid.Column="0" FontSize="15" Style="{DynamicResource CommonIconButton}" Command="{Binding ClearCommand}" Content="排空"></Button>
<Button Grid.Row="12" Grid.Column="2" FontSize="15" Style="{DynamicResource CommonIconButton}" Command="{Binding MoveCommand}" Content="打胶"></Button>
</Grid>
</Border>
<Border Grid.Column="4" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}" Visibility="Hidden">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="5"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="胶泵2" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Row="2" Grid.Column="0" Text="胶量p" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Row="2" Grid.Column="2" Text="速度p/s" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Row="2" Grid.Column="2" Text="速度p/s" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBox Grid.Row="4" Grid.Column="0" Text="{Binding Stillicide.Pr2ClearPosition, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></TextBox>
<TextBox Grid.Row="4" Grid.Column="2" Text="{Binding Stillicide.Pr2ClearSpeed, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></TextBox>
<TextBox Grid.Row="6" Grid.Column="0" Text="{Binding Stillicide.Pr2InjectPosition, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></TextBox>
<TextBox Grid.Row="6" Grid.Column="2" Text="{Binding Stillicide.Pr2InjectSpeed, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></TextBox>
<TextBox Grid.Row="8" Grid.Column="0" Text="{Binding Stillicide.Pr2BackPosition, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></TextBox>
<TextBox Grid.Row="8" Grid.Column="2" Text="{Binding Stillicide.Pr2BackSpeed, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></TextBox>
<TextBox Grid.Row="10" Grid.Column="2" Text="{Binding Stillicide.Pr2FillSpeed, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14"></TextBox>
<Button Grid.Row="12" Grid.Column="0" FontSize="15" Style="{DynamicResource CommonIconButton}" Command="{Binding Pr2ClearCommand}" Content="排空"></Button>
<Button Grid.Row="12" Grid.Column="2" FontSize="15" Style="{DynamicResource CommonIconButton}" Command="{Binding Pr2MoveCommand}" Content="打胶"></Button>
</Grid>
</Border>
</Grid>
</Grid>
</Border>
</Border>
</Grid>
</tool:BaseDialog>