Files
egtbeamwall/EgtBEAMWALL.ViewerOptimizer/TopPanel/TopPanelV.xaml
T
2021-05-31 15:27:20 +02:00

95 lines
4.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<Grid x:Class="TopPanelV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer"
Height="300">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="270"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Right">
<Button Content="P"
Command="{Binding ProduceRawPart_Command}"
ToolTip="{Binding ProduceRawPart_ToolTip}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="PA"
Command="{Binding ProduceAllRawPart_Command}"
ToolTip="{Binding ProduceAllRawPart_ToolTip}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="C"
Command="{Binding CopyRawPart_Command}"
ToolTip="{Binding CopyRawPart_ToolTip}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="-"
Command="{Binding RemoveRawPart_Command}"
ToolTip="{Binding RemoveRawPart_ToolTip}"
Style="{StaticResource LeftPanel_SmallButton}"/>
</StackPanel>
<EgtBEAMWALL:RawPartListV Grid.Row="1"
DataContext="{StaticResource RawPartListVM}"
Tag="{Binding Tag, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:TopPanelV}}}"/>
<StackPanel Grid.Row="2"
Orientation="Horizontal"
HorizontalAlignment="Right">
<Button Content="O"
Command="{Binding ReOrderPart_Command}"
Visibility="{Binding MovePart_Visibility}"
ToolTip="{Binding ReOrderPart_ToolTip}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="˄"
Command="{Binding MoveUpPart_Command}"
Visibility="{Binding MovePart_Visibility}"
ToolTip="{Binding MoveUpPart_ToolTip}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="˅"
Command="{Binding MoveDownPart_Command}"
Visibility="{Binding MovePart_Visibility}"
ToolTip="{Binding MoveDownPart_ToolTip}"
Style="{StaticResource LeftPanel_SmallButton}"/>
<Button Content="-"
Command="{Binding RemovePart_Command}"
ToolTip="{Binding RemovePart_ToolTip}"
Style="{StaticResource LeftPanel_SmallButton}"/>
</StackPanel>
<EgtBEAMWALL:PartInRawPartListV Grid.Row="3"
DataContext="{StaticResource PartInRawPartListVM}"
Tag="{Binding Tag.SelectedMachGroup, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:TopPanelV}}}"/>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<Style TargetType="TextBlock">
<Style.Triggers>
<Trigger Property="Text" Value="">
<Setter Property="Visibility" Value="Collapsed"/>
</Trigger>
</Style.Triggers>
</Style>
</Grid.Resources>
<EgtBEAMWALL:FeatureInPartInRawPartListV Grid.Row="0"
DataContext="{StaticResource FeatureInPartInRawPartListVM}"
Tag="{Binding Tag.SelectedMachGroup.SelPart, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:TopPanelV}}}"/>
<TextBlock Grid.Row="1"
Text="{Binding Tag.SelectedMachGroup.SelPart.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:TopPanelV}}}"
Foreground="{Binding Tag.SelectedMachGroup.SelPart.Calc_Background, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:TopPanelV}}}"/>
<TextBlock Grid.Row="2"
Text="{Binding Tag.SelectedMachGroup.SelPart.SelFeatureVM.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:TopPanelV}}}"
Margin="5,0,5,0"
Foreground="{Binding Tag.SelectedMachGroup.SelPart.SelFeatureVM.Calc_Background, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:TopPanelV}}}"/>
</Grid>
</Grid>