Files
egtbeamwall/EgtBEAMWALL.Supervisor/LeftPanel/OnlyProdLeftPanelV.xaml
T
Demetrio Cassarino a12ab8f531 -pulizia codice
2024-06-13 17:36:10 +02:00

167 lines
7.8 KiB
XML

<Grid x:Class="OnlyProdLeftPanelV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Supervisor">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="{Binding GridDims[0].GridLen, Mode=TwoWay}"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="{Binding GridDims[1].GridLen, Mode=TwoWay}"/>
</Grid.RowDefinitions>
<GroupBox Header="{Binding Channel_Msg}"
Visibility="{Binding Channel_Visibility}">
<ComboBox ItemsSource="{Binding ChannelList}"
SelectedItem="{Binding SelChannel}"
DisplayMemberPath="Name"/>
</GroupBox>
<GroupBox Grid.Row="1" Header="{Binding OPMode_Msg}"
Visibility="{Binding OPMode_Visibility}">
<ComboBox ItemsSource="{Binding OPModeList}"
SelectedItem="{Binding SelOPMode}"
DisplayMemberPath="Name"/>
</GroupBox>
<UniformGrid Grid.Row="2"
Columns="2"
TextBlock.TextAlignment="Center"
Margin="0,10,0,5">
<TextBlock Text="OPState"/>
<TextBlock Text="{Binding SelOPState.Name}"/>
</UniformGrid>
<UniformGrid Grid.Row="3"
Columns="6"
Visibility="{Binding E80000_Visibility}">
<TextBlock Text="E80000: "/>
<TextBlock Text="{Binding sE80000}"
HorizontalAlignment="Left"/>
<TextBlock Text="E80001: "/>
<TextBlock Text="{Binding sE80001}"
HorizontalAlignment="Left"/>
<TextBlock Text="E80002: "
Visibility="{Binding E80002_Visibility}"/>
<TextBlock Text="{Binding sE80002}"
HorizontalAlignment="Left"
Visibility="{Binding E80002_Visibility}"/>
</UniformGrid>
<Expander Grid.Row="4"
Margin="0,15,0,2">
<Expander.Header>
<TextBlock Text="Axis" FontSize="15"/>
</Expander.Header>
<EgtBEAMWALL:OnlyProdAxesPanelV DataContext="{StaticResource AxesPanelVM}"/>
</Expander>
<Grid Grid.Row="5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Border Grid.RowSpan="2" Style="{StaticResource OnlyProdPage_Border}" Margin="0,0,2.5,0"/>
<StackPanel Grid.Row="0"
Orientation="Horizontal"
HorizontalAlignment="Right"
Margin="0,3,5,2">
<Button Command="{Binding MoveUpRawPart_Command}"
IsEnabled="{Binding MoveRawPart_IsEnabled}"
Style="{StaticResource LeftPanel_Button}">
<Image Source="/Resources/LeftPanel/MoveUp.png" Stretch="Uniform"/>
</Button>
<Button Command="{Binding MoveDownRawPart_Command}"
IsEnabled="{Binding MoveRawPart_IsEnabled}"
Style="{StaticResource LeftPanel_Button}">
<Image Source="/Resources/LeftPanel/MoveDown.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding ProduceAll_ToolTip}"
Command="{Binding ProduceAll_Command}"
IsEnabled="{Binding LeftPanel_IsEnabled}"
Style="{StaticResource LeftPanel_Button}">
<Image Source="/Resources/LeftPanel/ProduceAll.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding DoneRawPart_ToolTip}"
Command="{Binding DoneRawPart_Command}"
IsEnabled="{Binding DoneRawPart_IsEnabled}"
Style="{StaticResource LeftPanel_Button}">
<Image Source="/Resources/LeftPanel/DoneRawPart.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding ResetRawPart_ToolTip}"
Command="{Binding ResetRawPart_Command}"
IsEnabled="{Binding ResetRawPart_IsEnabled}"
Style="{StaticResource LeftPanel_Button}">
<Image Source="/Resources/LeftPanel/ResetRawPart.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding DeleteRawPart_ToolTip}"
Command="{Binding DeleteRawPart_Command}"
IsEnabled="{Binding DeleteRawPart_IsEnabled}"
Style="{StaticResource LeftPanel_Button}">
<Image Source="/Resources/LeftPanel/DeleteRawPart.png" Stretch="Uniform"/>
</Button>
</StackPanel>
<EgtBEAMWALL:OnlyProdRawPartListV Grid.Row="1"
DataContext="{StaticResource RawPartListVM}"
Tag="{Binding Tag, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdLeftPanelV}}}"
Margin="2.5,0,5,0"/>
</Grid>
<GridSplitter Grid.Row="6"
Height="3"
HorizontalAlignment="Stretch"
ResizeDirection="Rows"
ResizeBehavior="PreviousAndNext"
Background="Transparent"/>
<Grid Grid.Row="7">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Border Grid.RowSpan="2" Style="{StaticResource OnlyProdPage_Border}" Margin="0,0,2.5,0"/>
<StackPanel Grid.Row="0"
Orientation="Horizontal"
HorizontalAlignment="Right"
Margin="0,3,5,2">
<Button ToolTip="{Binding PrintLabel_ToolTip}"
Command="{Binding PrintLabel_Command}"
IsEnabled="{Binding LeftPanel_IsEnabled}"
Visibility="{Binding PrintLabel_Visibility}"
Style="{StaticResource LeftPanel_Button}">
<Image Source="/Resources/LeftPanel/PrintLabel.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding DonePart_ToolTip}"
Command="{Binding DonePart_Command}"
IsEnabled="{Binding LeftPanel_IsEnabled}"
Visibility="{Binding DonePart_Visibility}"
Style="{StaticResource LeftPanel_Button}">
<Image Source="/Resources/LeftPanel/DonePart.png" Stretch="Uniform"/>
</Button>
</StackPanel>
<Grid Grid.Row="1" x:Name="PartFeatureGrid">
<Grid.Resources>
<EgtBEAMWALL:FeatureDataGridHeightConverter x:Key="FeatureDataGridHeightConverter"/>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtBEAMWALL:OnlyProdPartInRawPartListV DataContext="{StaticResource PartInRawPartListVM}"
Tag="{Binding Tag.SelectedMachGroup, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdLeftPanelV}}}"
Margin="2.5,0,5,0"/>
<EgtBEAMWALL:OnlyProdFeatureInPartInRawPartListV Grid.Row="1"
Height="{Binding ActualHeight, ElementName=PartFeatureGrid, Converter={StaticResource FeatureDataGridHeightConverter}}"
DataContext="{StaticResource FeatureInPartInRawPartListVM}"
Tag="{Binding Tag.SelectedMachGroup.SelPart, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdLeftPanelV}}}"
Visibility="{Binding DataContext.FeatureList_Visibility, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdLeftPanelV}}}"/>
</Grid>
</Grid>
</Grid>