|
|
|
<UserControl x:Class="Aucma.Core.DoorFoam.Views.IndexPageView"
|
|
|
|
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:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
|
|
|
xmlns:local="clr-namespace:Aucma.Core.DoorFoam.Views"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="800"
|
|
|
|
d:DesignWidth="1000" >
|
|
|
|
<UserControl.Resources>
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style TargetType="DataGrid">
|
|
|
|
<!--网格线颜色-->
|
|
|
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
|
|
|
<Setter Property="Background" Value="#1152AC" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="HorizontalGridLinesBrush">
|
|
|
|
<Setter.Value>
|
|
|
|
<SolidColorBrush Color="#4285DE"/>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Setter Property="VerticalGridLinesBrush">
|
|
|
|
<Setter.Value>
|
|
|
|
<SolidColorBrush Color="#1152AC"/>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<!--列头标题栏样式-->
|
|
|
|
<Style TargetType="DataGridColumnHeader">
|
|
|
|
<!--<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>-->
|
|
|
|
<!--<Setter Property="Background" Value="#dddddd"/>
|
|
|
|
<Setter Property="Foreground" Value="Black"/>-->
|
|
|
|
<!--<Setter Property="BorderThickness" Value="1" />-->
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
<Setter Property="Foreground" Value="#4285DE"/>
|
|
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!--单元格样式-->
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
|
|
<Grid Background="{TemplateBinding Background}" >
|
|
|
|
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
<Grid Margin="0 15 0 0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Grid.Column="0" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="0 0 3 0">
|
|
|
|
<StackPanel>
|
|
|
|
<WrapPanel>
|
|
|
|
<TextBlock Text="设备状态:" FontSize="18" Foreground="White"/>
|
|
|
|
<TextBlock Text="停机" FontSize="18" Foreground="White" Margin="25 0"/>
|
|
|
|
<TextBlock Text="生产节拍:" FontSize="18" Foreground="White"/>
|
|
|
|
<TextBlock Text="10" FontSize="18" Foreground="White" Margin="25 0"/>
|
|
|
|
</WrapPanel>
|
|
|
|
<StackPanel>
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding DoorFp1DataGrid}" Background="#00000000"
|
|
|
|
ColumnHeaderHeight="35" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0" FontSize="20"
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
Foreground="White">
|
|
|
|
<!--修改选中字体颜色-->
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Binding="{Binding No}" Header="编号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Name}" Header="台车号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Status}" Header="状态" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Model}" Header="型号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
<DataGridTextColumn Binding="{Binding Production}" Header="产量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
<Border Grid.Column="1" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="3 0 0 0" >
|
|
|
|
<StackPanel>
|
|
|
|
<WrapPanel>
|
|
|
|
<TextBlock Text="" FontSize="18" Foreground="White"/>
|
|
|
|
</WrapPanel>
|
|
|
|
<StackPanel>
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding DoorFp2DataGrid}"
|
|
|
|
ColumnHeaderHeight="35" VerticalScrollBarVisibility="Auto"
|
|
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0" FontSize="20"
|
|
|
|
GridLinesVisibility="None" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
Foreground="White">
|
|
|
|
<!--修改选中字体颜色-->
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Binding="{Binding No}" Header="编号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Name}" Header="台车号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Status}" Header="状态" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Model}" Header="型号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
<DataGridTextColumn Binding="{Binding Production}" Header="产量" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|