79 lines
3.2 KiB
XML
79 lines
3.2 KiB
XML
<UserControl x:Class="ForcedStrategyPanelV"
|
|
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>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.RowSpan="2"
|
|
Margin="-9,0,2,0"
|
|
Style="{StaticResource Optimizer_Border}">
|
|
<ListBox ItemsSource="{Binding StrategyList}"
|
|
SelectedItem="{Binding SelStrategy}"
|
|
Style="{StaticResource ForcedStrategyBTL_ListBox}">
|
|
<ListBox.Resources>
|
|
<DataTemplate DataType="{x:Type OPTIMIZER:Strategy}">
|
|
<StackPanel Orientation="Horizontal">
|
|
<RadioButton IsChecked="{Binding IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
|
|
GroupName="ForcedStrategy"/>
|
|
<Image Source="{Binding sStrategyImagePath}"
|
|
Height="100"
|
|
Width="100"
|
|
Stretch="Uniform"/>
|
|
<TextBlock Text="{Binding sStrategyName}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="13"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.Resources>
|
|
</ListBox>
|
|
</Border>
|
|
|
|
<GroupBox Grid.Column="1"
|
|
Margin="0"
|
|
Style="{StaticResource ProjectParameters_GroupBox}">
|
|
<GroupBox.Header>
|
|
<TextBlock Text="{Binding SelStrategy.sStrategyName}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontWeight="Bold"
|
|
FontSize="13"
|
|
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
|
</GroupBox.Header>
|
|
<OPTIMIZER:ParameterStrategyV Tag="{Binding SelStrategy}"/>
|
|
</GroupBox>
|
|
|
|
<StackPanel Grid.Row="2"
|
|
Grid.ColumnSpan="2"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Right">
|
|
<Button Command="{Binding Ok_Command}"
|
|
ToolTip="{Binding Ok_Msg}"
|
|
Height="30"
|
|
Width="30"
|
|
Margin="5,2,5,2"
|
|
Style="{StaticResource Optimizer_Button}">
|
|
<Image Source="{StaticResource Ok_Image}"
|
|
Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding Cancel_Command}"
|
|
ToolTip="{Binding Cancel_Msg}"
|
|
Height="30"
|
|
Width="30"
|
|
Margin="5,2,5,2"
|
|
Style="{StaticResource Optimizer_Button}">
|
|
<Image Source="{StaticResource Delete_Image}"
|
|
Stretch="Uniform"/>
|
|
</Button>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</UserControl>
|