114 lines
6.1 KiB
XML
114 lines
6.1 KiB
XML
<UserControl xmlns:Motion="clr-namespace:Views.Motion" x:Class="Views.ControlPanel"
|
|
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:Views"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="1080" d:DesignWidth="600">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="42"></RowDefinition>
|
|
<RowDefinition Height="70*"></RowDefinition>
|
|
<RowDefinition Height="30*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Background="{Binding ShowStatu.StatusBackground}">
|
|
<Viewbox>
|
|
<TextBlock Text="{Binding ShowStatu.StatuInfo}" Tag="{Binding ShowStatu.StatuInfo}" FontSize="25" FontWeight="Bold" Foreground="{Binding ShowStatu.StatusForeground}" VerticalAlignment="Center" ></TextBlock>
|
|
</Viewbox>
|
|
</Border>
|
|
|
|
<TabControl Grid.Row="1" Background="{x:Null}">
|
|
<TabItem Header="资讯" >
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
<Viewbox>
|
|
<ContentControl Content="焊接数量:"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
<Label Grid.Column="1" Foreground="White" VerticalAlignment="Center" FontSize="40">
|
|
<Viewbox>
|
|
<ContentControl Content="{Binding CurrentMachine.Quantitys}"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
|
|
|
|
<Border Grid.Row="5" Grid.ColumnSpan="2">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Label DataContext="{Binding SangeXizui[0]}" Background="{Binding StatusBackground}" Content="{Binding StatuInfo}"></Label>
|
|
<Label Grid.Column="1" DataContext="{Binding SangeXizui[1]}" Background="{Binding StatusBackground}" Content="{Binding StatuInfo}"></Label>
|
|
<Label Grid.Column="2" DataContext="{Binding SangeXizui[2]}" Background="{Binding StatusBackground}" Content="{Binding StatuInfo}"></Label>
|
|
</Grid>
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Header="输入" Content="{Binding InputGrid}"></TabItem>
|
|
<TabItem Header="输出" Content="{Binding OutputGrid}"></TabItem>
|
|
<TabItem Header="轴状态" DataContext="{Binding MCVM}">
|
|
<Motion:ShaftState />
|
|
</TabItem>
|
|
</TabControl>
|
|
<GroupBox Name="GBST" Header="控制按钮" Grid.Row="2" Margin="0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Button Style="{DynamicResource commBtn}" Background="{Binding ElementName=GBST,Path=BorderBrush}" Grid.Row="0" FontFamily="楷体" FontSize="50" Margin="1" Command="{Binding StartCommand}" FontWeight="Bold" >
|
|
<Viewbox>
|
|
<ContentControl Content="启动" ></ContentControl>
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Style="{DynamicResource commBtn}" Background="{Binding ElementName=GBST,Path=BorderBrush}" Grid.Row="0" Grid.Column="1" FontFamily="楷体" FontSize="50" Margin="1" Command="{Binding StopCommand}" FontWeight="Bold">
|
|
<Viewbox>
|
|
<ContentControl Content="暂停" ></ContentControl>
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Style="{DynamicResource commBtn}" Background="{Binding ElementName=GBST,Path=BorderBrush}" Grid.Row="1" FontFamily="楷体" FontSize="50" Margin="1" Command="{Binding ResetSoftCommand}" FontWeight="Bold">
|
|
<Viewbox>
|
|
<ContentControl Content="重置" ></ContentControl>
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Style="{DynamicResource commBtn}" Background="{Binding ElementName=GBST,Path=BorderBrush}" Grid.Row="1" Grid.Column="1" FontFamily="楷体" FontSize="50" Margin="1" Command="{Binding CloseCommand}" FontWeight="Bold">
|
|
<Viewbox>
|
|
<ContentControl Content="退出" ></ContentControl>
|
|
</Viewbox>
|
|
</Button>
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</UserControl>
|