|
@@ -8,9 +8,87 @@
|
|
|
xmlns:uct="clr-namespace:SCADA_DAQ.Customer.Views.Uct"
|
|
|
xmlns:stacking="clr-namespace:SCADA_DAQ.Plugin.RobotUI.Stacking;assembly=SCADA_DAQ.Plugin.RobotUI" xmlns:dashboard="clr-namespace:SCADA.CommonCtrl.Dashboard;assembly=SCADA.CommonCtrl"
|
|
|
mc:Ignorable="d"
|
|
|
- d:DesignHeight="450" d:DesignWidth="800"
|
|
|
+ d:DesignHeight="659.3" d:DesignWidth="916"
|
|
|
Title="UctFrmPalletizingManual">
|
|
|
+ <wpfcontrol:BaseUctFrm.Resources>
|
|
|
+ <Style x:Key="DashboardRowStyle" TargetType="{x:Type DataGridRow}">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
|
|
+ <Setter Property="SnapsToDevicePixels" Value="true" />
|
|
|
+ <Setter Property="Validation.ErrorTemplate" Value="{x:Null}" />
|
|
|
+ <Setter Property="Margin" Value="1" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type DataGridRow}">
|
|
|
+ <Border x:Name="DGR_Border" BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ SnapsToDevicePixels="True"
|
|
|
+ CornerRadius="10">
|
|
|
+ <SelectiveScrollingGrid>
|
|
|
+ <SelectiveScrollingGrid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </SelectiveScrollingGrid.ColumnDefinitions>
|
|
|
+ <SelectiveScrollingGrid.RowDefinitions>
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ </SelectiveScrollingGrid.RowDefinitions>
|
|
|
+ <DataGridCellsPresenter Grid.Column="1"
|
|
|
+ Background="Transparent"
|
|
|
+ ItemsPanel="{TemplateBinding ItemsPanel}"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
|
+ Margin="8,4" />
|
|
|
+ </SelectiveScrollingGrid>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="AlternationIndex" Value="0">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Gray10}" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="AlternationIndex" Value="1">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Gray10}" />
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="DashboardColumnHeaderStyle" TargetType="{x:Type DataGridColumnHeader}">
|
|
|
+ <Setter Property="Background" Value="Transparent" />
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="Margin" Value="30,8,8,8" />
|
|
|
+ <Setter Property="FontWeight" Value="Black"/>
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
|
|
|
+ <Border x:Name="DGRH_Border"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ SnapsToDevicePixels="True"
|
|
|
+ CornerRadius="10">
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" RecognizesAccessKey="True"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center">
|
|
|
+ <ContentPresenter.Resources>
|
|
|
+ <Style TargetType="{x:Type Border}">
|
|
|
+ <Setter Property="Background" Value="Transparent" />
|
|
|
+ </Style>
|
|
|
+ </ContentPresenter.Resources>
|
|
|
+ </ContentPresenter>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="ValueCellStyle" TargetType="{x:Type DataGridCell}">
|
|
|
+ <Setter Property="FontWeight" Value="Black"/>
|
|
|
+ <Setter Property="Foreground" Value="{StaticResource DarkPrimaryBrush}"/>
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center"/>
|
|
|
+ </Style>
|
|
|
+ </wpfcontrol:BaseUctFrm.Resources>
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="Auto"/>
|
|
@@ -18,149 +96,82 @@
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<Grid Grid.Row="0">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
-
|
|
|
- <Grid Grid.Row="0">
|
|
|
- <Grid MinHeight="100">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="Auto" MinWidth="100"/>
|
|
|
- <ColumnDefinition Width="1*"/>
|
|
|
- <ColumnDefinition Width="Auto" MinWidth="100"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <wpfcontrol:Card Margin="2">
|
|
|
- <ContentControl x:Name="StackSelection" FontSize="{DynamicResource LargeFontSize}"/>
|
|
|
- </wpfcontrol:Card>
|
|
|
- <wpfcontrol:Card Margin="2" Grid.Column="1">
|
|
|
- <ContentControl x:Name="StackInfo" FontSize="{DynamicResource LargeFontSize}" />
|
|
|
- </wpfcontrol:Card>
|
|
|
- <wpfcontrol:Card Margin="2" Grid.Column="2">
|
|
|
- <ContentControl x:Name="CurrentBoxInfo" FontSize="{DynamicResource LargeFontSize}" />
|
|
|
- </wpfcontrol:Card>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Row="1" MaxHeight="300">
|
|
|
+ <Grid MinHeight="100">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="2*"/>
|
|
|
- <ColumnDefinition Width="Auto"/>
|
|
|
+ <ColumnDefinition Width="Auto" MinWidth="100"/>
|
|
|
+ <ColumnDefinition Width="1*"/>
|
|
|
+ <ColumnDefinition Width="Auto" MinWidth="100"/>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <wpfcontrol:SmartGrid x:Name="DG_StackLayout" AutoGenerateColumns="True" ShowRowTips="False" ShowHeader="False"/>
|
|
|
- <Grid Grid.Column="1">
|
|
|
- <uct:UctOutputControl/>
|
|
|
- </Grid>
|
|
|
+ <wpfcontrol:Card Margin="2">
|
|
|
+ <ContentControl x:Name="StackSelection" FontSize="{DynamicResource LargeFontSize}"/>
|
|
|
+ </wpfcontrol:Card>
|
|
|
+ <wpfcontrol:Card Margin="2" Grid.Column="1">
|
|
|
+ <ContentControl x:Name="StackInfo" FontSize="{DynamicResource LargeFontSize}" />
|
|
|
+ </wpfcontrol:Card>
|
|
|
+ <wpfcontrol:Card Margin="2" Grid.Column="2">
|
|
|
+ <ContentControl x:Name="CurrentBoxInfo" FontSize="{DynamicResource LargeFontSize}" />
|
|
|
+ </wpfcontrol:Card>
|
|
|
</Grid>
|
|
|
-
|
|
|
</Grid>
|
|
|
+
|
|
|
<Grid Grid.Row="1" MinHeight="280">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="1*"/>
|
|
|
+ <RowDefinition Height="1*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="1*"/>
|
|
|
<ColumnDefinition Width="1*"/>
|
|
|
<ColumnDefinition Width="380"/>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <Grid Grid.Column="2" >
|
|
|
- <wpfcontrol:Card>
|
|
|
- <wpfcontrol:Card.Resources>
|
|
|
- <Style x:Key="DashboardRowStyle" TargetType="{x:Type DataGridRow}">
|
|
|
- <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
|
|
- <Setter Property="SnapsToDevicePixels" Value="true" />
|
|
|
- <Setter Property="Validation.ErrorTemplate" Value="{x:Null}" />
|
|
|
- <Setter Property="Margin" Value="1" />
|
|
|
- <Setter Property="Template">
|
|
|
- <Setter.Value>
|
|
|
- <ControlTemplate TargetType="{x:Type DataGridRow}">
|
|
|
- <Border x:Name="DGR_Border" BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
- BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
- Background="{TemplateBinding Background}"
|
|
|
- SnapsToDevicePixels="True"
|
|
|
- CornerRadius="10">
|
|
|
- <SelectiveScrollingGrid>
|
|
|
- <SelectiveScrollingGrid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="Auto" />
|
|
|
- <ColumnDefinition Width="*" />
|
|
|
- </SelectiveScrollingGrid.ColumnDefinitions>
|
|
|
- <SelectiveScrollingGrid.RowDefinitions>
|
|
|
- <RowDefinition Height="*" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- </SelectiveScrollingGrid.RowDefinitions>
|
|
|
- <DataGridCellsPresenter Grid.Column="1"
|
|
|
- Background="Transparent"
|
|
|
- ItemsPanel="{TemplateBinding ItemsPanel}"
|
|
|
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
|
- Margin="8,4" />
|
|
|
- </SelectiveScrollingGrid>
|
|
|
- </Border>
|
|
|
- </ControlTemplate>
|
|
|
- </Setter.Value>
|
|
|
- </Setter>
|
|
|
- <Style.Triggers>
|
|
|
- <Trigger Property="AlternationIndex" Value="0">
|
|
|
- <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Gray10}" />
|
|
|
- </Trigger>
|
|
|
- <Trigger Property="AlternationIndex" Value="1">
|
|
|
- <Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Gray10}" />
|
|
|
- </Trigger>
|
|
|
- </Style.Triggers>
|
|
|
- </Style>
|
|
|
- <Style x:Key="DashboardColumnHeaderStyle" TargetType="{x:Type DataGridColumnHeader}">
|
|
|
- <Setter Property="Background" Value="Transparent" />
|
|
|
- <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
- <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
- <Setter Property="Margin" Value="30,8,8,8" />
|
|
|
- <Setter Property="FontWeight" Value="Black"/>
|
|
|
- <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
-
|
|
|
- <Setter Property="Template">
|
|
|
- <Setter.Value>
|
|
|
- <ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
|
|
|
- <Border x:Name="DGRH_Border"
|
|
|
- BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
- BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
- Background="{TemplateBinding Background}"
|
|
|
- SnapsToDevicePixels="True"
|
|
|
- CornerRadius="10">
|
|
|
- <ContentPresenter HorizontalAlignment="Center" RecognizesAccessKey="True"
|
|
|
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center">
|
|
|
- <ContentPresenter.Resources>
|
|
|
- <Style TargetType="{x:Type Border}">
|
|
|
- <Setter Property="Background" Value="Transparent" />
|
|
|
- </Style>
|
|
|
- </ContentPresenter.Resources>
|
|
|
- </ContentPresenter>
|
|
|
- </Border>
|
|
|
- </ControlTemplate>
|
|
|
- </Setter.Value>
|
|
|
- </Setter>
|
|
|
- </Style>
|
|
|
-
|
|
|
- <Style x:Key="ValueCellStyle" TargetType="{x:Type DataGridCell}">
|
|
|
- <Setter Property="FontWeight" Value="Black"/>
|
|
|
- <Setter Property="Foreground" Value="{StaticResource DarkPrimaryBrush}"/>
|
|
|
- <Setter Property="HorizontalAlignment" Value="Center"/>
|
|
|
- </Style>
|
|
|
- </wpfcontrol:Card.Resources>
|
|
|
-
|
|
|
- <dashboard:DashboardDataGrid IsReadOnly="True" IsEnabled="False" FontSize="18" x:Name="DG_RunPara"
|
|
|
- ColumnHeaderBackground="{DynamicResource MahApps.Brushes.Gray8}" AutoGenerateColumns="False" ColumnHeaderStyle="{StaticResource DashboardColumnHeaderStyle}" RowStyle="{StaticResource DashboardRowStyle}">
|
|
|
- <dashboard:DashboardDataGrid.Columns>
|
|
|
- <DataGridTextColumn Header="" Binding="{Binding Key}" Width="90"/>
|
|
|
- <DataGridTextColumn Header="X" Binding="{Binding Value.X}" Width="70"/>
|
|
|
- <DataGridTextColumn Header="Y" Binding="{Binding Value.Y}" Width="70" CellStyle="{StaticResource ValueCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="Z" Binding="{Binding Value.Z}" Width="70"/>
|
|
|
- <DataGridTextColumn Header="R" Binding="{Binding Value.R}" Width="70"/>
|
|
|
- </dashboard:DashboardDataGrid.Columns>
|
|
|
- </dashboard:DashboardDataGrid>
|
|
|
- </wpfcontrol:Card>
|
|
|
- </Grid>
|
|
|
- <Grid>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <Grid Grid.Column="0" Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="1*"/>
|
|
|
+ <ColumnDefinition Width="1*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
<stacking:UctStack3D x:Name="D3_Stack"/>
|
|
|
+ <stacking:UctStackLayer x:Name="board1" Grid.Column="2"/>
|
|
|
</Grid>
|
|
|
+ <wpfcontrol:SmartGrid x:Name="DG_StackLayout" AutoGenerateColumns="True" ShowRowTips="False" ShowHeader="False" />
|
|
|
+
|
|
|
+ <Grid Grid.Column="1" Grid.RowSpan="2" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
|
|
- <Grid Grid.Column="1">
|
|
|
- <stacking:UctStackLayer x:Name="board1"/>
|
|
|
+ <RowDefinition Height="1*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <wpfcontrol:Card Margin="2">
|
|
|
+ <uct:UctOutputControl Height="200" />
|
|
|
+ </wpfcontrol:Card>
|
|
|
+
|
|
|
+
|
|
|
+ <Grid Grid.Column="2" Grid.Row="1" Margin="2" >
|
|
|
+ <wpfcontrol:Card>
|
|
|
+ <dashboard:DashboardDataGrid IsReadOnly="True" IsEnabled="False" FontSize="18" x:Name="DG_RunPara"
|
|
|
+ ColumnHeaderBackground="{DynamicResource MahApps.Brushes.Gray8}" AutoGenerateColumns="False" ColumnHeaderStyle="{StaticResource DashboardColumnHeaderStyle}" RowStyle="{StaticResource DashboardRowStyle}">
|
|
|
+ <dashboard:DashboardDataGrid.Columns>
|
|
|
+ <DataGridTextColumn Header="" Binding="{Binding Key}" Width="90"/>
|
|
|
+ <DataGridTextColumn Header="X" Binding="{Binding Value.X}" Width="70"/>
|
|
|
+ <DataGridTextColumn Header="Y" Binding="{Binding Value.Y}" Width="70" CellStyle="{StaticResource ValueCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="Z" Binding="{Binding Value.Z}" Width="70"/>
|
|
|
+ <DataGridTextColumn Header="R" Binding="{Binding Value.R}" Width="70"/>
|
|
|
+ </dashboard:DashboardDataGrid.Columns>
|
|
|
+ </dashboard:DashboardDataGrid>
|
|
|
+ </wpfcontrol:Card>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <wpfcontrol:Card Grid.Row="2" Margin="2" Header="报警" CardStyle="Warning">
|
|
|
+ <ListBox x:Name="AlarmList">
|
|
|
+
|
|
|
+ </ListBox>
|
|
|
+ </wpfcontrol:Card>
|
|
|
</Grid>
|
|
|
|
|
|
+
|
|
|
</Grid>
|
|
|
|
|
|
|