49 lines
2.0 KiB
XML
49 lines
2.0 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:Optmizer="clr-namespace:EgtBEAMWALL.Optimizer">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TreeView Grid.RowSpan="2"
|
|
Width="300"
|
|
Height="900"
|
|
ItemsSource="{Binding AvailableStrategyList}">
|
|
<TreeView.Resources>
|
|
<HierarchicalDataTemplate DataType="{x:Type Optmizer:AvailableStrategy}"
|
|
ItemsSource="{Binding TopologyList}">
|
|
<StackPanel Style="{StaticResource OnlyProdPartManager_StackPanel}">
|
|
<TextBlock Text="{Binding sName}" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="{Binding nGRP}" Style="{StaticResource DialogWindow_TextBlock}" Margin="5,0,0,0"/>
|
|
<TextBlock Text="{Binding nPRC}" Style="{StaticResource DialogWindow_TextBlock}" Margin="0,0,5,0"/>
|
|
</StackPanel>
|
|
</HierarchicalDataTemplate>
|
|
<DataTemplate DataType="{x:Type Optmizer: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}"/>
|
|
</Style>
|
|
</TreeView.ItemContainerStyle>
|
|
</TreeView>
|
|
|
|
<Optmizer:StrategyV Grid.Column="1"
|
|
Grid.RowSpan="2"/>
|
|
|
|
<Optmizer:ParameterStrategyV Grid.Column="2"/>
|
|
|
|
<StackPanel Grid.Row="1"
|
|
Grid.Column="2"
|
|
Width="900"/>
|
|
</Grid>
|