dfbcfa435a
- modificata finestra ProjectTypeWnd - spostato strategit sotto tab Macchina - aggiunta in strategie gestione Beam o Wall
110 lines
5.3 KiB
XML
110 lines
5.3 KiB
XML
<Grid x:Class="StrategyManagerV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Optimizer="clr-namespace:EgtBEAMWALL.Optimizer">
|
|
<Grid.Resources>
|
|
<Optimizer:StrategyTypeToFocusableConverter x:Key="StrategyTypeToFocusableConverter"/>
|
|
</Grid.Resources>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,0,5">
|
|
<ComboBox ItemsSource="{Binding StrategyTypeList}"
|
|
SelectedItem="{Binding SelStrategyType}"
|
|
Visibility="{Binding StrategyType_Visibility}"
|
|
Style="{StaticResource Strategy_ComboBox}"
|
|
Margin="0,0,10,0"/>
|
|
<ComboBox ItemsSource="{Binding StrategySetupList}"
|
|
SelectedItem="{Binding SelStrategySetup}"
|
|
DisplayMemberPath="sName"
|
|
Style="{StaticResource Strategy_ComboBox}"/>
|
|
<Button Command="{Binding New_Command}"
|
|
ToolTip="{Binding NewToolTip}"
|
|
Margin="10,0,10,0"
|
|
Style="{StaticResource SaveOptionPanel_Button}">
|
|
<Image Source="/Resources/ProjectManager/New.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding OpenFileNameCustomConfigCommand}"
|
|
ToolTip="{Binding SaveAsToolTip}"
|
|
Margin="10,0,10,0"
|
|
Style="{StaticResource SaveOptionPanel_Button}">
|
|
<Image Source="/Resources/NewPage/+.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding SaveCommand}"
|
|
ToolTip="{Binding SaveToolTip}"
|
|
Style="{StaticResource SaveOptionPanel_Button}">
|
|
<Image Source="{Binding SaveImage}" Stretch="Uniform"/>
|
|
</Button>
|
|
</StackPanel>
|
|
<Grid Grid.Row="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TreeView Grid.RowSpan="2"
|
|
Width="300"
|
|
Height="Auto"
|
|
ItemsSource="{Binding SelStrategySetup.StrategyFeatureList}">
|
|
<TreeView.Resources>
|
|
<HierarchicalDataTemplate DataType="{x:Type Optimizer:StrategyFeature}"
|
|
ItemsSource="{Binding TopologyList}">
|
|
<CheckBox IsChecked="{Binding RelativeSource={RelativeSource AncestorType=TreeViewItem}, Path=IsExpanded}">
|
|
<CheckBox.Template>
|
|
<ControlTemplate>
|
|
<Border Background="{Binding Background, RelativeSource={RelativeSource AncestorType={x:Type TreeView}}}">
|
|
<StackPanel Style="{StaticResource OnlyProdPartManager_StackPanel}">
|
|
<TextBlock Text="[" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="{Binding nGrp}" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="-" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="{Binding nPrcDesc}" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="]" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="{Binding sName}" Style="{StaticResource DialogWindow_TextBlock}" Margin="5,0,0,0"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</CheckBox.Template>
|
|
</CheckBox>
|
|
</HierarchicalDataTemplate>
|
|
<DataTemplate DataType="{x:Type Optimizer:Topology}">
|
|
<TextBlock Text="{Binding sName}" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
</DataTemplate>
|
|
</TreeView.Resources>
|
|
<TreeView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TreeViewItem}">
|
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
|
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/>
|
|
<Setter Property="Focusable" Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource StrategyTypeToFocusableConverter}}"/>
|
|
</Style>
|
|
</TreeView.ItemContainerStyle>
|
|
</TreeView>
|
|
|
|
<Optimizer:StrategyV Grid.Column="1"
|
|
Grid.RowSpan="2"/>
|
|
|
|
<GroupBox Grid.Column="2"
|
|
Foreground="Black"
|
|
BorderThickness="2"
|
|
Margin="0,-11,0,0"
|
|
BorderBrush="{StaticResource BeamWall_Glacier}">
|
|
<GroupBox.Header>
|
|
<TextBlock Text="{Binding SelTreeItem.SelParamStrategy.sStrategyName}"
|
|
FontWeight="Bold"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
</GroupBox.Header>
|
|
<Optimizer:ParameterStrategyV Tag="{Binding SelTreeItem.SelParamStrategy}"/>
|
|
</GroupBox>
|
|
|
|
<StackPanel Grid.Row="1"
|
|
Grid.Column="2"
|
|
Width="600"/>
|
|
</Grid>
|
|
</Grid> |