c99654dbf0
- Milgiorie lavorazioni.
236 lines
9.9 KiB
XML
236 lines
9.9 KiB
XML
<UserControl x:Class="OperationExpanderView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:local="clr-namespace:EgtCAM5"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
|
|
|
|
<UserControl.Resources>
|
|
<local:OperationParamVisibilityConverter x:Key="OperationParamVisibilityConverter"/>
|
|
<sys:Int32 x:Key="BaseParameters">0</sys:Int32>
|
|
|
|
</UserControl.Resources>
|
|
|
|
<StackPanel>
|
|
|
|
<Expander Header="Operations List" IsExpanded="{Binding IsExpanded}">
|
|
|
|
<StackPanel>
|
|
|
|
<UniformGrid Rows="1">
|
|
<Button Content="New Machining" Command="{Binding NewMachiningCommand}" Height="40"/>
|
|
<Button Content="New Positioning" Command="{Binding NewPositioningCommand}" Height="40"/>
|
|
<Button Content="Cancel Operation" Command="{Binding CancelOperationCommand}" Height="40"/>
|
|
</UniformGrid>
|
|
<ListBox IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding OperationList}" SelectedItem="{Binding SelectedOperation}"
|
|
MaxHeight="400" x:Name="OperationList" IsEnabled="{Binding IsEnabledOperationList}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Image Source="{Binding Image}" Height="15" Margin="0,0,5,0"/>
|
|
<TextBlock Grid.Column="1" Text="{Binding Name}" Margin="0,0,5,0"/>
|
|
<TextBlock Grid.Column="2" Text="{Binding Tool}"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
</StackPanel>
|
|
</Expander>
|
|
|
|
<Expander Header="Operation Parameters">
|
|
<StackPanel>
|
|
<StackPanel Visibility="{Binding Path=SelectedItem.Type, ElementName=OperationList,
|
|
Converter={StaticResource OperationParamVisibilityConverter},
|
|
ConverterParameter={StaticResource BaseParameters}}">
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="{Binding DepthTxBl}"/>
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding ElementName=OperationList, Path=SelectedItem.Depth}"/>
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="{Binding InvertTxBl}"/>
|
|
<CheckBox HorizontalAlignment="Center" IsChecked="{Binding ElementName=OperationList, Path=SelectedItem.Invert}" />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="WorkSide"/>
|
|
<ComboBox ItemsSource="{Binding Path=SelectedItem.WorkSideList,
|
|
ElementName=OperationList, Mode=OneWay}"
|
|
SelectedIndex="{Binding Path=SelectedItem.SelectedWorkSide,
|
|
ElementName=OperationList}"
|
|
IsSynchronizedWithCurrentItem="True">
|
|
</ComboBox>
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
<Expander Header="Generic">
|
|
<StackPanel>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="Step"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="StepType"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="SideAngle"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="StartPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="StartSlowLen"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="EndSlowLen"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="OffsetSr"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="OffsetSl"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</Expander>
|
|
<Expander>
|
|
<Expander.Header>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="LeadInType"/>
|
|
<ComboBox>
|
|
<ComboBoxItem Content="None"/>
|
|
<ComboBoxItem Content="Linear"/>
|
|
<ComboBoxItem Content="Tangent" IsSelected="True"/>
|
|
<ComboBoxItem Content="Helix"/>
|
|
</ComboBox>
|
|
</UniformGrid>
|
|
</Expander.Header>
|
|
<StackPanel>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="StartAddLen"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<TextBox />
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</Expander>
|
|
<Expander HorizontalAlignment="Left">
|
|
<Expander.Header>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="LeadOutType"/>
|
|
<ComboBox>
|
|
<ComboBoxItem Content="None"/>
|
|
<ComboBoxItem Content="Linear"/>
|
|
<ComboBoxItem Content="Tangent" IsSelected="True"/>
|
|
<ComboBoxItem Content="Helix"/>
|
|
</ComboBox>
|
|
</UniformGrid>
|
|
</Expander.Header>
|
|
<StackPanel>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</Expander>
|
|
<Expander>
|
|
<Expander.Header>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="LeaveTab"/>
|
|
<CheckBox HorizontalAlignment="Center"/>
|
|
</UniformGrid>
|
|
</Expander.Header>
|
|
<StackPanel>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="ReturnPos"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</Expander>
|
|
<Expander Header="Tool">
|
|
<StackPanel>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="Speed"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="Feed"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="StartFeed"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="EndFeed"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="TipFeed"/>
|
|
<TextBox />
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</Expander>
|
|
</StackPanel>
|
|
</Expander>
|
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|