Files
EgtCAM5/ProjectPage/OptionPanel/DrawOptionPanel/SimulationExpander/SimulationExpanderView.xaml
T
Emmanuele Sassi f8b17066de EgtCAM5 :
- Migliorie varie.
2016-07-10 11:34:07 +00:00

84 lines
5.2 KiB
XML

<UserControl x:Class="SimulationExpanderView"
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">
<Expander Header="Simulation" IsExpanded="{Binding IsExpanded}">
<StackPanel >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding L1Name}" Grid.Column="0" Grid.Row="0" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding L1Value}" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding L2Name}" Grid.Column="0" Grid.Row="1" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding L2Value}" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding L3Name}" Grid.Column="0" Grid.Row="2" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding L3Value}" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding R1Name}" Grid.Column="0" Grid.Row="3" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding R1Value}" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding R2Name}" Grid.Column="0" Grid.Row="4" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding R2Value}" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding GCode}" Grid.Column="0" Grid.Row="5" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" />
<EgtWPFLib5:EgtTextBox Text="{Binding FValue}" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding TName}" Grid.Column="0" Grid.Row="6" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" Margin="0,0,-50,0" />
<TextBlock Text="{Binding SValue}" Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="2" FontSize="15" HorizontalAlignment="Right"
VerticalAlignment="Center" TextAlignment="Right" Margin="0,0,50,0" />
</Grid>
<UniformGrid Columns="3" Margin="0,10,0,0">
<Button Command="{Binding StepCommand}" Grid.Column="0" Grid.Row="3" Style="{StaticResource EgtCAM5_SimulationButton}">
<Image Source="/Resources/OptionPanel/MachiningOptionPanel/SimulationExpander/PlayStep.png"
HorizontalAlignment="Center" VerticalAlignment="Center"
Height="50" Width="50"/>
</Button>
<Button Command="{Binding PlayPauseCommand}" Grid.Column="1" Grid.Row="3" Style="{StaticResource EgtCAM5_SimulationButton}">
<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 EgtCAM5_SimulationButton}">
<Image Source="/Resources/OptionPanel/MachiningOptionPanel/SimulationExpander/Stop.png"
HorizontalAlignment="Center" VerticalAlignment="Center"
Height="50" Width="50"/>
</Button>
</UniformGrid>
<Slider Name="SpeedSlider" Grid.Row="5" Grid.ColumnSpan="3" Width="230" Height="40"
Minimum="1" Maximum="100" TickPlacement="BottomRight" TickFrequency="10"
Margin="10,10,10,0" Value="{Binding SliderValue}"/>
</StackPanel>
</Expander>
</UserControl>