change
parent
e2c4d6570e
commit
1a9c163247
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
is_global = true
|
||||
build_property.RootNamespace = Admin.Core.FrameWork
|
||||
build_property.ProjectDir = E:\桌面\AUCMA_SCADA\Admin.Core.FrameWork\
|
||||
build_property.ProjectDir = D:\Project\gitea\AUCMA\SCADA\Admin.Core.FrameWork\
|
||||
|
@ -1,291 +0,0 @@
|
||||
<UserControl x:Class="Aucma.Core.Palletiz.Views.FoamPlanPageView"
|
||||
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:Aucma.Core.Palletiz.Views"
|
||||
mc:Ignorable="d" Background="#1152AC"
|
||||
d:DesignHeight="1080" d:DesignWidth="1920">
|
||||
|
||||
<Border x:Name="HeightHelperPanel" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="5">
|
||||
<Grid>
|
||||
<Grid.Resources>
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||
<Setter Property="FontSize" Value="16"/>
|
||||
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
||||
</Style>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="BorderBrush" Value="#0288d1"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
</Style>
|
||||
</Grid.Resources>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.1*"/>
|
||||
<ColumnDefinition Width="0.3*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="0.3*"/>
|
||||
<ColumnDefinition Width="0.3*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.Row="0" Grid.Column="0"></Border>
|
||||
<Border Grid.Row="1" Grid.Column="0" >
|
||||
<TextBlock Text="1" x:Name="PlanId1" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="2" Grid.Column="0">
|
||||
<TextBlock Text="2" x:Name="PlanId2" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="3" Grid.Column="0" >
|
||||
<TextBlock Text="3" x:Name="PlanId3" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="4" Grid.Column="0" >
|
||||
<TextBlock Text="4" x:Name="PlanId4" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="5" Grid.Column="0" >
|
||||
<TextBlock Text="5" x:Name="PlanId5" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="6" Grid.Column="0" >
|
||||
<TextBlock Text="6" x:Name="PlanId6" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="7" Grid.Column="0" >
|
||||
<TextBlock Text="7" x:Name="PlanId7" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="8" Grid.Column="0" >
|
||||
<TextBlock Text="8" x:Name="PlanId8" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="9" Grid.Column="0" >
|
||||
<TextBlock Text="9" x:Name="PlanId9" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="10" Grid.Column="0" >
|
||||
<TextBlock Text="10" x:Name="PlanId10" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="11" Grid.Column="0" >
|
||||
<TextBlock Text="11" x:Name="PlanId11" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="12" Grid.Column="0" >
|
||||
<TextBlock Text="12" x:Name="PlanId12" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="0" Grid.Column="1" >
|
||||
<TextBlock Text="物料编号" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="0" Grid.Column="2" >
|
||||
<TextBlock Text="物料名称" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="0" Grid.Column="3" >
|
||||
<TextBlock Text="发泡计划量" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="0" Grid.Column="4" >
|
||||
<TextBlock Text="操作" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="1" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[0], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="1" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[0], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="1" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[0], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="1" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId1}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId1}"/>
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="2" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[1], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="2" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[1], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="2" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[1], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="2" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId2}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId2}"/>
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="3" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[2], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="3" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[2], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="3" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[2], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="3" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId3}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId3}"/>
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="4" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[3], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="4" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[3], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="4" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[3], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="4" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId3}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId3}"/>
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="5" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[4], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="5" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[4], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="5" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[4], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="5" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId5}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId5}" />
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="6" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[5], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="6" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[5], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="6" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[5], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="6" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId6}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId6}"/>
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="7" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[6], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="7" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[6], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="7" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[6], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="7" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId7}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId7}" />
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="8" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[8], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="8" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[8], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="8" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[9], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="8" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId8}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId8}" />
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="9" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[8], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="9" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[8], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="9" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[8], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="9" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId9}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId9}" />
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="10" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[9], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="10" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[9], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="10" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[9], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="10" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId10}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId10}" />
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="11" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[10], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="11" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[10], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="11" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[10], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="11" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId11}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId11}" />
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="12" Grid.Column="1" >
|
||||
<TextBlock Text="{Binding MaterialCode[11], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="12" Grid.Column="2" >
|
||||
<TextBlock Text="{Binding MaterialName[11], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="12" Grid.Column="3" >
|
||||
<TextBlock Text="{Binding PlanAmount[11], Mode=TwoWay}" Foreground="White" FontSize="20"/>
|
||||
</Border>
|
||||
<Border Grid.Row="12" Grid.Column="4" >
|
||||
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId12}" />
|
||||
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}" CommandParameter="{Binding Text, ElementName=PlanId12}" />
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</UserControl>
|
@ -0,0 +1,89 @@
|
||||
<UserControl x:Class="Aucma.Core.Palletiz.Views.PlanPageView"
|
||||
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:Aucma.Core.Palletiz.Views"
|
||||
mc:Ignorable="d" Background="#1152AC"
|
||||
d:DesignHeight="1080" d:DesignWidth="1920">
|
||||
|
||||
<UserControl.Resources>
|
||||
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
||||
<!--<Setter Property="Height" Value="40"/>-->
|
||||
<Setter Property="FontSize" Value="16"/>
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<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="Foreground" Value="White"/>
|
||||
<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="#dddddd" />
|
||||
<Setter Property="Height" Value="48"/>
|
||||
<Setter Property="FontSize" Value="18"/>
|
||||
<Setter Property="Background" Value="#4285DE"/>
|
||||
<Setter Property="Foreground" Value="White"/>
|
||||
</Style>
|
||||
|
||||
<!--单元格样式-->
|
||||
<Style TargetType="DataGridCell">
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="BorderBrush" Value="Gray" />
|
||||
<Setter Property="Height" Value="40"/>
|
||||
<Setter Property="FontSize" Value="12"/>
|
||||
<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>
|
||||
|
||||
<Border x:Name="HeightHelperPanel" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="5">
|
||||
<DataGrid x:Name="dgvMH" Height="{Binding Path=ActualHeight, ElementName=HeightPanel}"
|
||||
HorizontalAlignment="Left" VerticalAlignment="Top" AlternationCount="2" RowHeaderWidth="0"
|
||||
ItemsSource="{Binding Datalist}" ColumnWidth="*" AutoGenerateColumns="False" IsReadOnly="True" CanUserAddRows="False" SelectionMode="Single"
|
||||
SelectedItem="{Binding SelectedCells, Mode=OneWayToSource}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="*" Binding="{Binding OrderCode}" Header="编号" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||||
<DataGridTextColumn Width="*" Binding="{Binding ProductCode}" Header="产品编码" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||||
<DataGridTextColumn Width="*" Binding="{Binding ProductName}" Header="产品型号" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Border>
|
||||
|
||||
</UserControl>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue