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.

96 lines
7.0 KiB

<UserControl x:Class="Gumming.ControlCAManualView"
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"
Background="Transparent"
x:Name="rootControl">
<UserControl.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"/>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="400"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Image Source="/Gumming;component/Resource/ControlCA.png" Stretch="Fill" Width="400" Height="220">
</Image>
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition Height="10"></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition Height="10"></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="气缸控制" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<Button IsEnabled="{Binding ProgressEnabled}" Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=CenterIOStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding CenterIOStatus}" Command="{Binding CenterIOCommand}" Content="对中"></Button>
<Button IsEnabled="{Binding ProgressEnabled}" Grid.Row="0" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=MainAxisIOStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding MainAxisIOStatus}" Command="{Binding MainAxisIOCommand}" Content="承片台"></Button>
</Grid>
</Border>
<Border Grid.Row="2" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="阀控制" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<Button IsEnabled="{Binding ProgressEnabled}" Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=AttractIOStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding AttractIOStatus}" Command="{Binding AttractCommand}" Content="吸片真空"></Button>
</Grid>
</Border>
<Border Grid.Row="4" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="工位操作" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=PrepareStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding PrepareStatus}" Command="{Binding PrepareCommand}" IsEnabled="{Binding ProgressEnabled}" Content="维修"></Button>
<Button Grid.Row="0" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=TerminateStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding TerminateStatus}" Command="{Binding TerminateCommand}" Content="中止"></Button>
<Button Grid.Row="0" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=TerminateStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding TerminateStatus}" Command="{Binding TerminateCommand}" Content="初始化"></Button>
</Grid>
</Border>
</Grid>
</Grid>
</UserControl>