1f5bd17912
- Aggiunta gestione simulazione.
103 lines
4.6 KiB
XML
103 lines
4.6 KiB
XML
<StackPanel x:Class="SimulTabV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Margin="5,5,5,0">
|
|
|
|
<GroupBox Header="Viste macchina" Margin="0,0,0,5">
|
|
<UniformGrid Columns="3">
|
|
|
|
<Button Content="{Binding MachModeMsg}"
|
|
Command="{Binding ToolModeCommand}"
|
|
Style="{StaticResource OptionPanel_NestingButton}"/>
|
|
<Button Content="{Binding MachModeMsg}"
|
|
Command="{Binding HeadModeCommand}"
|
|
Style="{StaticResource OptionPanel_NestingButton}"/>
|
|
<Button Command="{Binding MachModeCommand}"
|
|
Style="{StaticResource OptionPanel_NestingButton}">
|
|
<Image Source="/Resources/SimulTab/MachMode.png" Stretch="Uniform"/>
|
|
</Button>
|
|
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<ItemsControl ItemsSource="{Binding MachineAxisList}" Margin="0,0,0,5">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Margin="0,0,0,5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="{Binding Token}" FontSize="15"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
TextWrapping="Wrap" TextAlignment="Center"/>
|
|
<TextBox Text="{Binding Value, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1"
|
|
IsReadOnly="{Binding IsReadOnlyAxesValue}"
|
|
IsEnabled="{Binding IsEnabledAxesValue}"
|
|
TextAlignment="Right">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Key="Enter" Command="{Binding ManualAxisModifyCommand}"/>
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
|
|
<Grid Margin="0,0,0,5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="{Binding GCode}" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" Margin="5,5,5,0" Grid.ColumnSpan="2" />
|
|
<TextBlock Text="{Binding FValue}" Grid.Column="2" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Right" Margin="0,5,5,5" />
|
|
<TextBlock Text="{Binding TName}" Grid.Row="1" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" Margin="5,5,5,0" Grid.ColumnSpan="2" />
|
|
<TextBlock Text="{Binding SValue}" Grid.Column="2" Grid.Row="1" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Right" Margin="0,5,5,5" />
|
|
|
|
</Grid>
|
|
|
|
<UniformGrid Columns="3" Margin="0,0,0,5">
|
|
|
|
<Button Command="{Binding StepCommand}" Grid.Column="0" Grid.Row="3"
|
|
Style="{StaticResource OptionPanel_NestingButton}"
|
|
ToolTip="{Binding OneStepToolTip}" Margin="0,0,2.5,0">
|
|
<Image Source="/Resources/SimulTab/PlayStep.png"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Height="50" Width="50"/>
|
|
</Button>
|
|
|
|
<Button Command="{Binding PlayPauseCommand}" Grid.Column="1" Grid.Row="3"
|
|
Style="{StaticResource OptionPanel_NestingButton}"
|
|
ToolTip="{Binding PlayPauseToolTip}" Margin="2.5,0,2.5,0">
|
|
<Image Source="{Binding PlayPauseImage}" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" Height="50" Width="50"/>
|
|
</Button>
|
|
|
|
<Button Command="{Binding StopCommand}" Grid.Column="2" Grid.Row="3"
|
|
Style="{StaticResource OptionPanel_NestingButton}"
|
|
ToolTip="{Binding StopHomeToolTip}" Margin="2.5,0,0,0">
|
|
<Image Source="/Resources/SimulTab/Stop.png"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Height="50" Width="50"/>
|
|
</Button>
|
|
|
|
</UniformGrid>
|
|
|
|
<Slider Name="SpeedSlider" Grid.Row="5" Grid.ColumnSpan="3" Height="40"
|
|
Minimum="1" Maximum="100" TickPlacement="BottomRight" TickFrequency="10"
|
|
Margin="0,5,0,0" Value="{Binding SliderValue}"/>
|
|
|
|
</StackPanel>
|