|
|
@ -21,115 +21,113 @@ |
|
|
|
<Button Content="{x:Static lang:Resources.Save}" x:Name="ProgramgroupView_Save" FontSize="20" HorizontalAlignment="Left" Height="40" Margin="600,0,0,0" VerticalAlignment="Top" Width="200" Background="White" Click="ProgramgroupView_Save_Click"/> |
|
|
|
<TextBlock x:Name="p_title" FontSize="20" VerticalAlignment="Top" Height="40" Margin="1000,0,0,0" /> |
|
|
|
|
|
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto" PanningMode="VerticalOnly" Margin="0,40,0,0" > |
|
|
|
<DataGrid x:Name="Grid" AlternationCount="2" IsReadOnly="True" SelectionChanged="Grid_SelectionChanged" |
|
|
|
d:ItemsSource="{d:SampleData ItemCount=90}" AutoGenerateColumns="False" MinColumnWidth="30" |
|
|
|
<DataGrid x:Name="Grid" AlternationCount="2" IsReadOnly="True" SelectionChanged="Grid_SelectionChanged" |
|
|
|
d:ItemsSource="{d:SampleData ItemCount=90}" AutoGenerateColumns="False" MinColumnWidth="30" Margin="0,40,0,0" |
|
|
|
HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All" BorderBrush="#CCCCCC" |
|
|
|
BorderThickness="1,1,1,1" ColumnHeaderHeight="40" HorizontalContentAlignment="Right" Grid.ColumnSpan="2" AllowDrop="False" |
|
|
|
CanUserReorderColumns="False" CanUserSortColumns="False" CanUserResizeRows="False" CanUserResizeColumns="False" |
|
|
|
CanUserAddRows="True" CanUserDeleteRows="False" HeadersVisibility ="Column" |
|
|
|
Background="White" SelectionMode="Single" FontSize="15"> |
|
|
|
<DataGrid.RowStyle > |
|
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
|
<Setter Property="Height" Value="100" /> |
|
|
|
<Setter Property="FontSize" Value="25" /> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0"> |
|
|
|
<Setter Property="Background" Value="#FFFFFFFF" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1"> |
|
|
|
<Setter Property="Background" Value="#FFF0F0F0" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsMouseOver" Value="False"/> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
<DataGrid.CellStyle> |
|
|
|
<Style TargetType="DataGridCell"> |
|
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
|
<Setter Property="MinWidth" Value="20"/> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="IsSelected" Value="True"> |
|
|
|
<Setter Property="Background" Value="#FFC0C0C0"/> |
|
|
|
<Setter Property="BorderBrush" Value="#FFC0C0C0"/> |
|
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
|
</Trigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.CellStyle> |
|
|
|
<DataGrid.RowStyle > |
|
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
|
<Setter Property="Height" Value="100" /> |
|
|
|
<Setter Property="FontSize" Value="25" /> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0"> |
|
|
|
<Setter Property="Background" Value="#FFFFFFFF" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1"> |
|
|
|
<Setter Property="Background" Value="#FFF0F0F0" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsMouseOver" Value="False"/> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
<DataGrid.CellStyle> |
|
|
|
<Style TargetType="DataGridCell"> |
|
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
|
<Setter Property="MinWidth" Value="20"/> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="IsSelected" Value="True"> |
|
|
|
<Setter Property="Background" Value="#FFC0C0C0"/> |
|
|
|
<Setter Property="BorderBrush" Value="#FFC0C0C0"/> |
|
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
|
</Trigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</DataGrid.CellStyle> |
|
|
|
|
|
|
|
<DataGrid.Columns> |
|
|
|
<!--列信息绑定--> |
|
|
|
<DataGridTextColumn Binding="{Binding ProgramID}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Program}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Step}" Binding="{Binding Step}" Width="60" IsReadOnly="True"> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
</Style> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
</DataGridTextColumn> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Code}" Width="0" MinWidth="0" MaxWidth="0" Binding="{Binding StepID}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Directives}" Width="0" MinWidth="0" MaxWidth="0" Binding="{Binding StepName}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.ParameterSet}" Width="0" MinWidth="0" MaxWidth="0" Binding="{Binding ParameterName}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter1}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter2}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter3}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter4}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter5}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="100" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Image Source="{Binding Path=StepID,Converter={StaticResource StatenToImageConvert}}" Height="100" Width="100"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="600" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<StackPanel> |
|
|
|
<Border BorderBrush="#FFC9C9C9" BorderThickness="0,0,0,0.5"> |
|
|
|
<TextBlock Height="50" > |
|
|
|
<DataGrid.Columns> |
|
|
|
<!--列信息绑定--> |
|
|
|
<DataGridTextColumn Binding="{Binding ProgramID}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Program}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Step}" Binding="{Binding Step}" Width="60" IsReadOnly="True"> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
</Style> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
</DataGridTextColumn> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Code}" Width="0" MinWidth="0" MaxWidth="0" Binding="{Binding StepID}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.Directives}" Width="0" MinWidth="0" MaxWidth="0" Binding="{Binding StepName}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Header="{x:Static lang:Resources.ParameterSet}" Width="0" MinWidth="0" MaxWidth="0" Binding="{Binding ParameterName}" IsReadOnly="True"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter1}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter2}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter3}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter4}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTextColumn Binding="{Binding Parameter5}" Width="0" MinWidth="0" MaxWidth="0"/> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="100" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Image Source="{Binding Path=StepID,Converter={StaticResource StatenToImageConvert}}" Height="100" Width="100"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="600" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<StackPanel> |
|
|
|
<Border BorderBrush="#FFC9C9C9" BorderThickness="0,0,0,0.5"> |
|
|
|
<TextBlock Height="50" > |
|
|
|
<Run Text="{x:Static lang:Resources.Function}"/> |
|
|
|
<Run Text=":"/> |
|
|
|
<Run Text="{Binding StepName}"/> |
|
|
|
</TextBlock> |
|
|
|
</Border> |
|
|
|
<Border BorderBrush="#FFC9C9C9" BorderThickness="0,0.5,0,0"> |
|
|
|
<TextBlock Height="50" > |
|
|
|
</TextBlock> |
|
|
|
</Border> |
|
|
|
<Border BorderBrush="#FFC9C9C9" BorderThickness="0,0.5,0,0"> |
|
|
|
<TextBlock Height="50" > |
|
|
|
<Run Text="{x:Static lang:Resources.ParameterSet}"/> |
|
|
|
<Run Text=":"/> |
|
|
|
<Run Text="{Binding ParameterName}"/> |
|
|
|
</TextBlock> |
|
|
|
</Border> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="100" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Image Source="{Binding Path=StepID_S1,Converter={StaticResource StatenToImageConvert}}" Height="100" Width="100"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="100" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Image Source="{Binding Path=StepID_S2,Converter={StaticResource StatenToImageConvert}}" Height="100" Width="100"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="100" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Image Source="{Binding Path=StepID_S3 ,Converter={StaticResource StatenToImageConvert}}" Height="100" Width="100"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
</DataGrid.Columns> |
|
|
|
</DataGrid> |
|
|
|
</ScrollViewer> |
|
|
|
</TextBlock> |
|
|
|
</Border> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="100" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Image Source="{Binding Path=StepID_S1,Converter={StaticResource StatenToImageConvert}}" Height="100" Width="100"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="100" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Image Source="{Binding Path=StepID_S2,Converter={StaticResource StatenToImageConvert}}" Height="100" Width="100"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn Header="{x:Static lang:Resources.Directives}" Width="100" IsReadOnly="True"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Image Source="{Binding Path=StepID_S3 ,Converter={StaticResource StatenToImageConvert}}" Height="100" Width="100"/> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
</DataGrid.Columns> |
|
|
|
</DataGrid> |
|
|
|
</Grid> |
|
|
|
</UserControl> |
|
|
|