d8deb0c543
- Aggiunta pagina Open su tasto Load in CadCutPage. - Aggiunte immagini per liste di file. - Abbozzo gestione utensili.
207 lines
10 KiB
XML
207 lines
10 KiB
XML
<UserControl x:Class="RawPartPageUC"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="853.3" d:DesignWidth="1280" Loaded="RawPartPage_Loaded" Initialized="RawPartPage_Initialized" Unloaded="RawPartPage_Unloaded">
|
|
|
|
<!-- Chiamata al Dictionary -->
|
|
<UserControl.Resources>
|
|
<ResourceDictionary Source="OmagCUTDictionary.xaml"></ResourceDictionary>
|
|
</UserControl.Resources>
|
|
|
|
<!-- Definizione della RowPartPage -->
|
|
<Grid Name="RowPartPageGrid" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="3*"/>
|
|
<ColumnDefinition Width="12*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="8*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Definizione della Grid superiore -->
|
|
<Grid Name="UpperButtonGrid" Grid.Column="1" Grid.Row="0" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5*"/>
|
|
<ColumnDefinition Width="7*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</Grid>
|
|
|
|
<!-- Definizione della Grid Laterale -->
|
|
<Grid Name="LeftButtonGrid" Grid.RowSpan="3">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="3.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Definizione della Grid per definizione grezzo -->
|
|
<Grid Grid.ColumnSpan="3">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
</Grid.RowDefinitions>
|
|
<RadioButton Name="RectangleBtn" Style="{StaticResource {x:Type ToggleButton}}"
|
|
FontSize="20" FontWeight="Bold" GroupName="DefinitionMethod_GrezzoUC"/>
|
|
<RadioButton Name="ByPointsBtn" Style="{StaticResource {x:Type ToggleButton}}"
|
|
Grid.Column="1" FontSize="20" FontWeight="Bold" GroupName="DefinitionMethod_GrezzoUC"/>
|
|
<Label Name="LengthLbl" Grid.Row="1" FontSize="20" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
<TextBox Name="LengthTxBx" Grid.Column="1" Grid.Row="1" FontSize="20"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" TextAlignment="Right"
|
|
Style="{StaticResource NumericKeyboard}" />
|
|
<Label Name="WidthLbl" Grid.Row="2" FontSize="20" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
<TextBox Name="WidthTxBx" Grid.Column="1" Grid.Row="2" FontSize="20"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" TextAlignment="Right"
|
|
Style="{StaticResource NumericKeyboard}" />
|
|
<Label Name="HeightLbl" Grid.Row="3" FontSize="20" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
<TextBox Name="HeightTxBx" Grid.Column="1" Grid.Row="3" FontSize="20"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" TextAlignment="Right"
|
|
Style="{StaticResource NumericKeyboard}" />
|
|
<Label Name="OffsetXLbl" Grid.Row="4" FontSize="20" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
<TextBox Name="OffsetXTxBx" Grid.Column="1" Grid.Row="4" FontSize="20"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" TextAlignment="Right"
|
|
Style="{StaticResource NumericKeyboard}" />
|
|
<Label Name="OffsetYLbl" Grid.Row="5" FontSize="20" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
<TextBox Name="OffsetYTxBx" Grid.Column="1" Grid.Row="5" FontSize="20"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" TextAlignment="Right"
|
|
Style="{StaticResource NumericKeyboard}" />
|
|
</Grid>
|
|
|
|
<!-- Definizione della Grid per il Kerf -->
|
|
<Border Style="{StaticResource CustomBorder}" Grid.ColumnSpan="3"
|
|
Grid.Column="0" Grid.Row="1" >
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="KerfLbl" Grid.Row="0" FontSize="20" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" FontWeight="Bold" />
|
|
<TextBox Name="KerfTxBx" Grid.Column="1" Grid.Row="0" FontSize="20"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" Width="60" TextAlignment="Right"
|
|
Style="{StaticResource NumericKeyboard}" />
|
|
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Definizione della Grid per il materiale -->
|
|
<Border Style="{StaticResource CustomBorder}" Grid.ColumnSpan="3"
|
|
Grid.Column="0" Grid.Row="2" >
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="MaterialLbl" Grid.Row="0" FontSize="20" HorizontalAlignment="Left"
|
|
VerticalAlignment="Center" Margin="8,0,0,0" FontWeight="Bold"/>
|
|
<ComboBox Name="MaterialsCmbx" Grid.Row="1" Height="38" Width="200" VerticalAlignment="Top"
|
|
Margin="0,-5,0,0" Background="LightGray" >
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Label Content="{Binding Name}" FontSize="20" />
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Definizione della Grid per Zona rovinata -->
|
|
<Border Style="{StaticResource CustomBorder}" Grid.ColumnSpan="3"
|
|
Grid.Column="0" Grid.Row="4" >
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="DamagedAreaLbl" Grid.Row="0" FontSize="20" HorizontalAlignment="Left"
|
|
VerticalAlignment="Center" Grid.ColumnSpan="2" Margin="8,0,0,0" FontWeight="Bold"/>
|
|
<Button Name="NewBtn" Grid.Row="2" FontSize="20"/>
|
|
<Button Name="DeleteBtn" Grid.Row="2" Grid.Column="1" FontSize="20"/>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Definizione della Grid per Punti -->
|
|
<Border Style="{StaticResource CustomBorder}" Grid.ColumnSpan="3"
|
|
Grid.Column="0" Grid.Row="6" >
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="PointsLbl" Grid.Row="0" FontSize="20" HorizontalAlignment="Left"
|
|
VerticalAlignment="Center" Grid.ColumnSpan="2" Margin="8,0,0,0" FontWeight="Bold"/>
|
|
<Button Name="AddBtn" Grid.Row="1" FontSize="20"/>
|
|
<Button Name="RemoveBtn" Grid.Row="1" Grid.Column="1" FontSize="20"/>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<!-- Definizione della Grid Inferiore per i Button V e X -->
|
|
<Grid Name="LowerButtonGrid" Grid.Column="1" Grid.Row="3">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="10*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Grid.Column="2" Click="ExitBtnUC_Click" >
|
|
<Image Source="Resources/V.png" Width="65" Height="65" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|