b9a89fa212
-aggiunto combobox per scelte
52 lines
2.4 KiB
XML
52 lines
2.4 KiB
XML
<ItemsControl x:Class="ParameterStrategyV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Optmizer="clr-namespace:EgtBEAMWALL.Optimizer"
|
|
Foreground="Black"
|
|
Width="1000"
|
|
Margin="5,10,-5,0"
|
|
ItemsSource="{Binding SelectedStrategyParamList.ParameterList}">
|
|
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type Optmizer:GenericParameter}">
|
|
<UniformGrid Columns="2"
|
|
Margin="0,2,0,0">
|
|
<TextBlock Text="{Binding sDescriptionShort}"
|
|
HorizontalAlignment="Left"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TabControl SelectedIndex="{Binding SelTypeValue}"
|
|
Background="Transparent"
|
|
BorderBrush="Transparent">
|
|
<TabControl.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
</Style>
|
|
</TabControl.ItemContainerStyle>
|
|
<TabItem Header="TEXT">
|
|
<TextBox Text="{Binding sValue}"
|
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
|
</TabItem>
|
|
<TabItem Header="CHECKBOX">
|
|
<CheckBox IsChecked="{Binding sValue}"
|
|
Style="{StaticResource OnlyProdFeatureInPartInRawPartList_CheckBox}"/>
|
|
</TabItem>
|
|
<TabItem Header="COMBOBOX">
|
|
<ComboBox ItemsSource="{Binding Choices}"
|
|
SelectedItem="{Binding SelectedChoice}"
|
|
Margin="0,0,85,0"
|
|
Foreground="Black"
|
|
Style="{StaticResource OnlyProdCalcPanel_ComboBox}">
|
|
<ComboBox.Resources>
|
|
<DataTemplate DataType="{x:Type Optmizer:ChoiceParameter}">
|
|
<TextBlock Text="{Binding sValue}"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
</DataTemplate>
|
|
</ComboBox.Resources>
|
|
</ComboBox>
|
|
</TabItem>
|
|
</TabControl>
|
|
</UniformGrid>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|