ad38e4d3e1
This reverts commit 00a338c202.
370 lines
20 KiB
XML
370 lines
20 KiB
XML
<UserControl x:Class="GenMachiningParamPageV"
|
|
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:EgtWPFLib5="clr-namespace:EgtWPFLib5">
|
|
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.Resources>
|
|
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
|
|
</Grid.Resources>
|
|
|
|
<Grid Grid.Column="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
|
|
ParamTxBx="{Binding Path=NamePar,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<StackPanel Grid.Column="0" Grid.Row="1">
|
|
|
|
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
|
|
<UniformGrid Columns="2">
|
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DepthStrTxBl}"
|
|
ParamTxBx="{Binding Path=DepthStr,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}" />
|
|
|
|
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding InvertTxBl}"
|
|
ParamChBx="{Binding Path=Invert,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}" />
|
|
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
|
|
<GroupBox.Header>
|
|
<Label Content="{Binding GenericGpBxLbl}"/>
|
|
</GroupBox.Header>
|
|
<UniformGrid Columns="2">
|
|
|
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartPosTxBl}"
|
|
ParamTxBx="{Binding Path=StartPos,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}" />
|
|
|
|
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SubTypeTxBl}"
|
|
ParamCmBxList="{Binding Path=SubTypeList,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
|
|
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
|
|
<GroupBox.Header>
|
|
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
|
|
</GroupBox.Header>
|
|
<UniformGrid Columns="2">
|
|
|
|
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding InvertToolDirTxBl}"
|
|
ParamChBx="{Binding Path=InvertToolDir,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}" />
|
|
|
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding InitAngsTxBl}"
|
|
ParamTxBx="{Binding Path=InitAngs,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}" />
|
|
|
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding BlockedAxisTxBl}"
|
|
ParamTxBx="{Binding Path=BlockedAxis,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}" />
|
|
|
|
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SolChoiceTypeTxBl}"
|
|
ParamCmBxList="{Binding Path=SolChoiceTypeList,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
|
|
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
|
|
<UniformGrid Columns="1">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
|
|
ParamTxBx="{Binding Path=UserNotes,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}" />
|
|
|
|
<Button Grid.Column="1"
|
|
Content="+"
|
|
Command="{Binding ShowNoteListComboCommand}"
|
|
IsEnabled="{Binding ShowNoteListCombo_IsEnable}"
|
|
Visibility="{Binding ShowNoteListCombo_Visibility}"
|
|
Width="20"
|
|
Height="20"/>
|
|
|
|
</Grid>
|
|
|
|
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
|
|
ParamTxBx="{Binding Path=SystemNotes,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
Visibility="{Binding SysNotes_Visibility}"
|
|
IsParamReadOnly="True"/>
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.ColumnSpan="2" Visibility="{Binding ComboAddVisibility}" Style="{DynamicResource GroupBoxStyle_NoHeader}">
|
|
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="{Binding ToolNotesBxLbl,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
Margin="5,3,0,0"/>
|
|
|
|
<ComboBox ItemsSource="{Binding NotesListCombo,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
SelectedItem="{Binding SelNoteItemCombo,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
Margin="-13,1,2,1">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Description,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
Margin="2.5"/>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.ColumnSpan="2" Visibility="{Binding ToolNoteVisibility}" Style="{DynamicResource GroupBoxStyle_Margin}">
|
|
<GroupBox.Header>
|
|
<Label Content="{Binding ToolNotesBxLbl}"/>
|
|
</GroupBox.Header>
|
|
|
|
<ItemsControl ItemsSource="{Binding NotesList,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="{Binding Description,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
Margin="5,10,25,0"
|
|
Width="250"/>
|
|
<TabControl SelectedIndex="{Binding SelTypeValue}"
|
|
Grid.Column="1"
|
|
Background="Transparent"
|
|
BorderBrush="Transparent">
|
|
<TabControl.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
</Style>
|
|
</TabControl.ItemContainerStyle>
|
|
<TabItem Header="TEXT">
|
|
<TextBox Text="{Binding Value,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
Margin="0,5,0,0"
|
|
IsReadOnly="False"/>
|
|
</TabItem>
|
|
<TabItem Header="CHECKBOX">
|
|
<CheckBox IsChecked="{Binding Value,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
Margin="0,7,0,0"/>
|
|
</TabItem>
|
|
</TabControl>
|
|
<Button Command="{Binding RemoveItemNoteCommand}"
|
|
Content="-"
|
|
Grid.Column="2"
|
|
Width="20"
|
|
Height="20"
|
|
Margin="5,5.5,2,0"/>
|
|
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</GroupBox>
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<StackPanel Grid.Column="1">
|
|
|
|
<StackPanel.Resources>
|
|
<!--Stile che modifica l'aspetto del messaggio d'errore-->
|
|
<DataTemplate DataType="{x:Type ValidationError}">
|
|
<TextBlock FontStyle="Italic"
|
|
Foreground="Red"
|
|
HorizontalAlignment="Right"
|
|
Margin="0,1"
|
|
Text="{Binding Path=ErrorContent}"/>
|
|
</DataTemplate>
|
|
</StackPanel.Resources>
|
|
|
|
<GroupBox Grid.Column="1" Style="{DynamicResource MachToolGroupBoxStyle_NoHeader}">
|
|
<Grid Grid.Column="0" Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"/>
|
|
<ComboBox Grid.Row="0"
|
|
Grid.Column="1"
|
|
ItemsSource="{Binding Path=ToolList,
|
|
Mode=OneWay}"
|
|
Style="{DynamicResource MachiningsToolComboBox}"
|
|
SelectedIndex="{Binding Path=SelectedTool}"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
Margin="0,3,3,3"/>
|
|
|
|
<UniformGrid Columns="1" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
|
|
<EgtWPFLib5:StringParamWithButtonV Grid.Row="1"
|
|
ParamTxBl="{Binding SpeedTxBl}"
|
|
ParamTxBx="{Binding Path=Speed,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"
|
|
AutoToolParamChecked="{Binding Path=SpeedChecked}"
|
|
AutoToolParamEnabled="{Binding Path=SpeedEnabled}" />
|
|
</UniformGrid>
|
|
|
|
<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
|
|
ParamTxBl="{Binding FeedTxBl}"
|
|
ParamTxBx="{Binding Path=Feed,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
AutoToolParamChecked="{Binding Path=FeedChecked}"
|
|
AutoToolParamEnabled="{Binding Path=FeedEnabled}" />
|
|
|
|
<EgtWPFLib5:StringParamWithButtonV Grid.Row="1"
|
|
ParamTxBl="{Binding Path=TipFeedTxBl}"
|
|
ParamTxBx="{Binding Path=TipFeed,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
AutoToolParamChecked="{Binding Path=TipFeedChecked}"
|
|
AutoToolParamEnabled="{Binding Path=TipFeedEnabled}" />
|
|
|
|
<EgtWPFLib5:StringParamWithButtonV Grid.Row="2"
|
|
ParamTxBl="{Binding StartFeedTxBl}"
|
|
ParamTxBx="{Binding Path=StartFeed,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
AutoToolParamChecked="{Binding Path=StartFeedChecked}"
|
|
AutoToolParamEnabled="{Binding Path=StartFeedEnabled}" />
|
|
|
|
<EgtWPFLib5:StringParamWithButtonV Grid.Row="3"
|
|
ParamTxBl="{Binding EndFeedTxBl}"
|
|
ParamTxBx="{Binding Path=EndFeed,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
AutoToolParamChecked="{Binding Path=EndFeedChecked}"
|
|
AutoToolParamEnabled="{Binding Path=EndFeedEnabled}" />
|
|
|
|
</Grid>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_Lower}">
|
|
<GroupBox.Header>
|
|
<Label Content="{Binding OffsetGpBxLbl}"/>
|
|
</GroupBox.Header>
|
|
<UniformGrid Columns="1">
|
|
|
|
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
|
|
ParamTxBl="{Binding OffSrTxBl}"
|
|
ParamTxBx="{Binding Path=OffSr,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
AutoToolParamChecked="{Binding Path=OffSrChecked}"
|
|
AutoToolParamEnabled="{Binding Path=OffSrEnabled}"/>
|
|
|
|
<EgtWPFLib5:StringParamWithButtonV ParamTxBl="{Binding OffSlTxBl}"
|
|
ParamTxBx="{Binding Path=OffSl,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
ValidatesOnDataErrors=True}"
|
|
AutoToolParamChecked="{Binding Path=OffSlChecked}"
|
|
AutoToolParamEnabled="{Binding Path=OffSlEnabled}"/>
|
|
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</UserControl>
|
|
|