Files
egtbeamwall/EgtBEAMWALL.ViewerOptimizer/LeftPanel/LeftPanelV.xaml
T
Emmanuele Sassi 515ce5ef33 Migliorie varie
2021-05-03 08:11:45 +02:00

105 lines
5.0 KiB
XML

<Grid x:Class="LeftPanelV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer"
Width="300">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<GroupBox Header="Search &amp; Filter"
Margin="3,1,3,3">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Parameter Type"/>
<ComboBox ItemsSource="{Binding Tag.SearchParamList, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:LeftPanelV}}}"
SelectedItem="{Binding Tag.SelSearchParam, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:LeftPanelV}}}"
Grid.Column="1"/>
<TextBlock Text="Text"
Grid.Row="1"/>
<EgtWPFLib5:EgtTextBox Text="{Binding Tag.SearchText, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:LeftPanelV}}}"
Grid.Column="1"
Grid.Row="1"/>
<TextBlock Text="Section"
Grid.Row="2"/>
<ComboBox ItemsSource="{Binding Tag.SectionList, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:LeftPanelV}}}"
SelectedItem="{Binding Tag.SelSection, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:LeftPanelV}}}"
DisplayMemberPath="sSectionXMaterial"
Grid.Column="1"
Grid.Row="2"/>
</Grid>
</GroupBox>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Right">
<Button Content="N"
Command="{Binding NewRawPart_Command}"
Visibility="{Binding MachiningPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="A"
Command="{Binding AddToRawPart_Command}"
Visibility="{Binding MachiningPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="C"
Command="{Binding CopyPart_Command}"
Visibility="{Binding ViewPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="+"
Command="{Binding AddPart_Command}"
Visibility="{Binding ViewPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="-"
Command="{Binding RemovePart_Command}"
Visibility="{Binding ViewPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
</StackPanel>
<EgtBEAMWALL:PartListV DataContext="{StaticResource PartListVM}"
Tag="{Binding Tag, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:LeftPanelV}}}"
Grid.Row="1"/>
</Grid>
<Grid Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Right">
<Button Content="C"
Command="{Binding CopyFeature_Command}"
Visibility="{Binding ViewPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="M"
Command="{Binding MacroFeature_Command}"
Visibility="{Binding ViewPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="+"
Command="{Binding AddFeature_Command}"
Visibility="{Binding ViewPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="-"
Command="{Binding RemoveFeature_Command}"
Visibility="{Binding ViewPage_Visibility}"
Style="{StaticResource LeftPanel_SmallButton}"/>
</StackPanel>
<EgtBEAMWALL:FeatureListV DataContext="{ StaticResource FeatureListVM}"
Tag="{Binding Tag.SelBTLPart, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:LeftPanelV}}}"
Grid.Row="1"/>
</Grid>
</Grid>