75 lines
3.2 KiB
XML
75 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="2,0,2,0"
|
|
Style="{StaticResource OnlyProdPage_Border}">
|
|
<ListBox ItemsSource="{Binding StrategyList}"
|
|
SelectedItem="{Binding SelStrategy}"
|
|
Height="Auto"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
Style="{StaticResource NewAddFeature_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}"
|
|
Stretch="Uniform"
|
|
Width="100"
|
|
Height="100"/>
|
|
<TextBlock Text="{Binding sStrategyName}"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.Resources>
|
|
<ListBox.ItemContainerStyle>
|
|
<Style TargetType="ListBoxItem">
|
|
<!--<EventSetter Event="PreviewMouseDown" Handler="AvailableStrategyList_PreviewMouseDown"/>-->
|
|
</Style>
|
|
</ListBox.ItemContainerStyle>
|
|
</ListBox>
|
|
</Border>
|
|
|
|
<GroupBox Grid.Column="1"
|
|
Foreground="Black"
|
|
BorderThickness="2"
|
|
Margin="0,-5,0,0"
|
|
BorderBrush="{StaticResource BeamWall_Glacier}">
|
|
<GroupBox.Header>
|
|
<TextBlock Text="{Binding SelStrategy.sStrategyName}"
|
|
FontWeight="Bold"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
</GroupBox.Header>
|
|
<OPTIMIZER:ParameterStrategyV Tag="{Binding SelStrategy}"/>
|
|
</GroupBox>
|
|
|
|
<StackPanel Grid.Row="2"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Right"
|
|
Style="{StaticResource OnlyProdPartManager_StackPanel}">
|
|
<Button Command="{Binding Ok_Command}"
|
|
ToolTip="{Binding Ok_Msg}"
|
|
Style="{StaticResource ToolBarViewPanel_Button}">
|
|
<Image Source="/Resources/NewPage/Ok.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding Cancel_Command}"
|
|
ToolTip="{Binding Cancel_Msg}"
|
|
Style="{StaticResource ToolBarViewPanel_Button}">
|
|
<Image Source="/Resources/PDFEditor/Delete.png" Stretch="Uniform"/>
|
|
</Button>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</UserControl>
|