112 lines
6.2 KiB
XML
112 lines
6.2 KiB
XML
<UserControl x:Class="FeatureInPartInRawPartListV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
|
xmlns:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib">
|
|
|
|
<EgwWPFBaseLib:EgwDataGrid ItemsSource="{Binding Tag.FeatureVMList,
|
|
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
|
SelectedItem="{Binding Tag.SelFeatureVM,
|
|
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
|
SelectionMode="Single"
|
|
Margin="0,0,0,5"
|
|
ColumnLayouts="{Binding FeatureInPartInRawPartColumns}"
|
|
BeginningEdit="FeatureInPartInRawPartList_BeginningEdit"
|
|
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
|
AlternationCount="2"
|
|
ColumnHeaderStyle="{StaticResource Main_DataGridColumnHeader}"
|
|
CellStyle="{StaticResource CellDataGrid_CustomHighLight}"
|
|
Style="{StaticResource Optimizer_DataGrid}">
|
|
<DataGrid.RowStyle>
|
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
|
<Setter Property="IsEnabled" Value="{Binding IsEnabled}"/>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
|
|
<DataGrid.InputBindings>
|
|
<KeyBinding Key="Delete" Command="{Binding Tag.SelFeatureVM.DeleteFeature_Command,
|
|
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"/>
|
|
</DataGrid.InputBindings>
|
|
<DataGrid.Resources>
|
|
<DataGridTemplateColumn x:Key="colDO">
|
|
<DataGridTemplateColumn.HeaderTemplate>
|
|
<DataTemplate>
|
|
<CheckBox IsChecked="{Binding Path=Tag.bDOALL, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
|
IsEnabled="{Binding Path=Tag.ButtonIsEnabled, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
|
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.HeaderTemplate>
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<CheckBox IsChecked="{Binding bDO, UpdateSourceTrigger=PropertyChanged}"
|
|
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<!--Validità feature-->
|
|
<DataGridTemplateColumn x:Key="colCALC">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="10"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Width="{Binding ActualHeight, RelativeSource={RelativeSource self}}"
|
|
Background="{Binding Calc_Background}"/>
|
|
<Grid Grid.Column="1"
|
|
Style="{StaticResource FeatureInPartInRawPartList_Grid}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Visibility="{Binding CALC_ROT_Visibility}"
|
|
Style="{StaticResource CALC_ROT_TextBlock}"/>
|
|
<TextBlock Grid.Row="1"
|
|
Text="{Binding CALC_ERR_Letter}"
|
|
Foreground="{Binding CALC_ERR_Foreground}"
|
|
Style="{StaticResource FeatureInPartInRawPartList_TextBlock}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<!--Descrizione-->
|
|
<DataGridTextColumn x:Key="colDESC" Binding="{Binding sDesc}">
|
|
<DataGridTextColumn.HeaderTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding DataContext.Description_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
|
</DataTemplate>
|
|
</DataGridTextColumn.HeaderTemplate>
|
|
</DataGridTextColumn>
|
|
<!--Descrizione-->
|
|
<DataGridTextColumn x:Key="colPRIORITY" Binding="{Binding sPriority}">
|
|
<DataGridTextColumn.HeaderTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding DataContext.Priority_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
|
</DataTemplate>
|
|
</DataGridTextColumn.HeaderTemplate>
|
|
</DataGridTextColumn>
|
|
<!--STR - Strategia-->
|
|
<DataGridTemplateColumn x:Key="colSTRATEGY">
|
|
<DataGridTemplateColumn.HeaderTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="Strategia"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.HeaderTemplate>
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button ToolTip="{Binding Strategy_ToolTip}"
|
|
Command="{Binding Strategy_Command}"
|
|
Style="{StaticResource FeatureInPartInRawPartList_Button}">
|
|
<Image Source="{StaticResource Verify_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Resources>
|
|
</EgwWPFBaseLib:EgwDataGrid>
|
|
|
|
</UserControl>
|