-aggiunto lista note selezionabili

-pulito codice
This commit is contained in:
Demetrio Cassarino
2024-03-07 08:48:06 +01:00
parent 8501bf16e8
commit 95551c5049
54 changed files with 12188 additions and 12609 deletions
+8 -8
View File
@@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
<!--x:Name="Self">-->
<UserControl.Resources>
@@ -155,17 +155,17 @@
</Grid.RowDefinitions>
<TextBlock Text="{Binding ParamTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:CheckParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:CheckParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{Binding ForegroundChxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:CheckParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:CheckParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<CheckBox Style="{DynamicResource CheckBoxStyle1}" x:Name="CheckValue" Grid.Column="1" Height="20" Width="20" Margin="10,5,0,0"
IsChecked="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:CheckParamV}},
Path=ParamChBx,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}"/>
Path=ParamChBx,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}"/>
<!--<ContentPresenter Grid.Row="1" Grid.ColumnSpan="2"
Content="{Binding ElementName=LeaveTabTxBx,
Path=(Validation.Errors).CurrentItem,
+276 -273
View File
@@ -4,296 +4,299 @@
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<!--x:Name="Self">-->
<!--x:Name="Self">-->
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#F3F3F3" Offset="0"/>
<GradientStop Color="#EBEBEB" Offset="0.5"/>
<GradientStop Color="#DDDDDD" Offset="0.5"/>
<GradientStop Color="#CDCDCD" Offset="1"/>
</LinearGradientBrush>
<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
<LinearGradientBrush x:Key="TextBoxBorder" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0">
<GradientStop Color="#ABADB3" Offset="0.05"/>
<GradientStop Color="#E2E3EA" Offset="0.07"/>
<GradientStop Color="#E3E9EF" Offset="1"/>
</LinearGradientBrush>
<Style x:Key="ComboBoxFocusVisual">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle Margin="4,4,21,4" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--<Geometry x:Key="DownArrowGeometry">M 0 0 L 3.5 4 L 7 0 Z</Geometry>-->
<Geometry x:Key="DownArrowGeometry">F1 M 0,0 L 2.667,2.66665 L 5.3334,0 L 5.3334,-1.78168 L 2.6667,0.88501 L0,-1.78168 L0,0 Z</Geometry>
<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="IsTabStop" Value="false"/>
<Setter Property="Focusable" Value="false"/>
<Setter Property="ClickMode" Value="Press"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" SnapsToDevicePixels="true" BorderThickness="{TemplateBinding BorderThickness}">
<Grid HorizontalAlignment="Right" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
<Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}" Fill="{Binding ForegroundCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" Margin="3,1,0,0" VerticalAlignment="Center"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Fill" TargetName="Arrow" Value="#AFAFAF"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="IsTabStop" Value="false"/>
<Setter Property="Focusable" Value="false"/>
<Setter Property="ClickMode" Value="Press"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" SnapsToDevicePixels="true" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
<Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}" Fill="White" HorizontalAlignment="Center" Margin="0,1,0,0" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Fill" TargetName="Arrow" Value="#AFAFAF"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#F3F3F3" Offset="0"/>
<GradientStop Color="#EBEBEB" Offset="0.5"/>
<GradientStop Color="#DDDDDD" Offset="0.5"/>
<GradientStop Color="#CDCDCD" Offset="1"/>
</LinearGradientBrush>
<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
<LinearGradientBrush x:Key="TextBoxBorder" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0">
<GradientStop Color="#ABADB3" Offset="0.05"/>
<GradientStop Color="#E2E3EA" Offset="0.07"/>
<GradientStop Color="#E3E9EF" Offset="1"/>
</LinearGradientBrush>
<Style x:Key="ComboBoxFocusVisual">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle Margin="4,4,21,4" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--<Geometry x:Key="DownArrowGeometry">M 0 0 L 3.5 4 L 7 0 Z</Geometry>-->
<Geometry x:Key="DownArrowGeometry">F1 M 0,0 L 2.667,2.66665 L 5.3334,0 L 5.3334,-1.78168 L 2.6667,0.88501 L0,-1.78168 L0,0 Z</Geometry>
<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="IsTabStop" Value="false"/>
<Setter Property="Focusable" Value="false"/>
<Setter Property="ClickMode" Value="Press"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" SnapsToDevicePixels="true" BorderThickness="{TemplateBinding BorderThickness}">
<Grid HorizontalAlignment="Right" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
<Path x:Name="Arrow"
Data="{StaticResource DownArrowGeometry}"
Fill="{Binding ForegroundCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" Margin="3,1,0,0" VerticalAlignment="Center"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Fill" TargetName="Arrow" Value="#AFAFAF"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="IsTabStop" Value="false"/>
<Setter Property="Focusable" Value="false"/>
<Setter Property="ClickMode" Value="Press"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" SnapsToDevicePixels="true" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
<Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}" Fill="White" HorizontalAlignment="Center" Margin="0,1,0,0" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Fill" TargetName="Arrow" Value="#AFAFAF"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ComboBox}">
<Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
<Setter Property="Padding" Value="4,3"/>
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ComboBox}">
<Grid x:Name="MainGrid" SnapsToDevicePixels="true">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
</Grid.ColumnDefinitions>
<Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Margin="1" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Width="{Binding ActualWidth, ElementName=MainGrid}" >
<Border x:Name="DropDownBorder" Background="{TemplateBinding Background}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="{TemplateBinding BorderThickness}">
<ScrollViewer x:Name="DropDownScrollViewer">
<Grid RenderOptions.ClearTypeHint="Enabled">
<Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
<Rectangle x:Name="OpaqueRect" Fill="{Binding BackgroundListCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Height="{Binding ActualHeight, ElementName=DropDownBorder}" Width="{Binding ActualWidth, ElementName=DropDownBorder}"/>
</Canvas>
<ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
</ScrollViewer>
</Border>
</Popup>
<ToggleButton Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ComboBoxReadonlyToggleButton}"/>
<ContentPresenter ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" Content="{TemplateBinding SelectionBoxItem}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="false" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="HasItems" Value="false">
<Setter Property="Height" TargetName="DropDownBorder" Value="95"/>
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
<Setter Property="Background" Value="#FFF4F4F4"/>
</Trigger>
<!--<Trigger Property="IsDropDownOpen" Value="True">
<Style TargetType="{x:Type ComboBox}">
<Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
<Setter Property="Padding" Value="4,3"/>
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ComboBox}">
<Grid x:Name="MainGrid" SnapsToDevicePixels="true">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
</Grid.ColumnDefinitions>
<Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Margin="1" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Width="{Binding ActualWidth, ElementName=MainGrid}" >
<Border x:Name="DropDownBorder" Background="{TemplateBinding Background}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="{TemplateBinding BorderThickness}">
<ScrollViewer x:Name="DropDownScrollViewer">
<Grid RenderOptions.ClearTypeHint="Enabled">
<Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
<Rectangle x:Name="OpaqueRect"
Fill="{Binding BackgroundListCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Height="{Binding ActualHeight, ElementName=DropDownBorder}" Width="{Binding ActualWidth, ElementName=DropDownBorder}"/>
</Canvas>
<ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
</ScrollViewer>
</Border>
</Popup>
<ToggleButton Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ComboBoxReadonlyToggleButton}"/>
<ContentPresenter ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" Content="{TemplateBinding SelectionBoxItem}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="false" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="HasItems" Value="false">
<Setter Property="Height" TargetName="DropDownBorder" Value="95"/>
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
<Setter Property="Background" Value="#FFF4F4F4"/>
</Trigger>
<!--<Trigger Property="IsDropDownOpen" Value="True">
<Setter Property="Background" Value="White"/>
</Trigger>-->
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsGrouping" Value="true"/>
</MultiTrigger.Conditions>
<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
</MultiTrigger>
<Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
<Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
<Setter Property="Canvas.Left" TargetName="OpaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsGrouping" Value="true"/>
</MultiTrigger.Conditions>
<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
</MultiTrigger>
<Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
<Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
<Setter Property="Canvas.Left" TargetName="OpaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Raw_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Background" Value="{Binding BackgroundCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Foreground" Value="{Binding ForegroundCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="BorderThickness" Value="{Binding BorderThicknessCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="BorderBrush" Value="{Binding BorderBrushCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignmentCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Height" Value="{Binding HeightCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Width" Value="{Binding WidthCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Style>
<Style x:Key="Raw_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Background" Value="{Binding BackgroundCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Foreground" Value="{Binding ForegroundCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="BorderThickness" Value="{Binding BorderThicknessCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="BorderBrush" Value="{Binding BorderBrushCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignmentCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Height" Value="{Binding HeightCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Width" Value="{Binding WidthCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
</ResourceDictionary>
</UserControl.Resources>
<!--Visibility="{Binding ParamVisibility, ElementName=Self,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">-->
<Grid Style="{DynamicResource Param_GpBxHeaderAlignment}">
<!--<Grid Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
<!--Visibility="{Binding ParamVisibility, ElementName=Self,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">-->
<Grid Style="{DynamicResource Param_GpBxHeaderAlignment}">
<!--<Grid Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Invert}}">-->
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ParamTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Foreground="{Binding ForegroundTextBoxCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<!--Style="{DynamicResource MachiningsComboBox}-->
<ComboBox x:Name="ComboValue" Grid.Column="1"
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Path=ParamCmBxList,
Mode=OneWay}"
Style="{DynamicResource Raw_ComboBox}"
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
<TextBlock Text="{Binding ParamTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Foreground="{Binding ForegroundTextBoxCmBxTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<!--Style="{DynamicResource MachiningsComboBox}-->
<ComboBox x:Name="ComboValue" Grid.Column="1"
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Path=ParamCmBxList,
Mode=OneWay}"
Style="{DynamicResource Raw_ComboBox}"
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Path=ParamCmBxSelIndex,
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
DisplayMemberPath="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Path=ParamDisplayMemberPath,
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
IsSynchronizedWithCurrentItem="True" Margin="0,3,3,3"
DisplayMemberPath="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Path=ParamDisplayMemberPath,
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
IsSynchronizedWithCurrentItem="True" Margin="0,3,3,3"
/>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}}}"
Visibility="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,0,3"/>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}}}"
Visibility="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:ComboParamV}},
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,0,3"/>
</Grid>
</Grid>
</UserControl>
+13 -13
View File
@@ -1,13 +1,13 @@
<EgtWPFLib5:EgtCustomWindow x:Class="EgtOpenFileDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
Height="390" Width="300" Topmost="True"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
Height="390" Width="300" Topmost="True"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
<EgtWPFLib5:EgtCustomWindow.Resources>
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
@@ -20,19 +20,19 @@
</Grid.RowDefinitions>
<ListBox Grid.Row="0" ItemsSource="{Binding FileList}" Margin="5" Name="FileNameList"
SelectedItem="{Binding SelectedFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
SelectedItem="{Binding SelectedFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource FileNameConverter}}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<UniformGrid Columns="2" Grid.Row="1" Margin="0,0,0,5">
<Button IsDefault="True" Name="OpenBtn"
Content="{Binding OpenMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
Content="{Binding OpenMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
<Button IsCancel="True"
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
</UniformGrid>
</Grid>
+91 -91
View File
@@ -7,7 +7,7 @@
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<!--<UserControl.Resources>
<!--<UserControl.Resources>
<LinearGradientBrush x:Key="BrushBorderIsMouseOverFText" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0">
<GradientStop Color="#ABADB3" Offset="0.05"/>
<GradientStop Color="#E2E3EA" Offset="0.07"/>
@@ -15,99 +15,99 @@
</LinearGradientBrush>
</UserControl.Resources>-->
<Grid>
<Grid>
<Border x:Name="Brd"
BorderThickness="1"
Padding="1"
AllowDrop="true"
FocusVisualStyle="{x:Null}"
ScrollViewer.PanningMode="VerticalFirst"
Stylus.IsFlicksEnabled="False">
<!--Background="{Binding CCBackground, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"-->
<Border.Style>
<Style TargetType="Border">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<!--<Setter Property="Background" Value="{DynamicResource BackgroundBorderEnableTText}"/>-->
<Setter Property="Background" Value="{Binding BackgroundBrdEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<!--<Setter Property="Background" Value="{DynamicResource BackgroundBorderEnableFText}"/>-->
<Setter Property="Background" Value="{Binding BackgroundBrdDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<!--<Setter Property="BorderBrush" Value="{DynamicResource BrushBorderIsMouseOverTText}"/>-->
<Setter Property="BorderBrush" Value="{Binding BorderBrushIsMouseOver,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Cursor" Value="IBeam"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="False">
<!--<Setter Property="BorderBrush" Value="{DynamicResource BrushBorderIsMouseOverFText}"/>-->
<Setter Property="BorderBrush" Value="{Binding GeneralBorderBrush,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Cursor" Value="Arrow"/>
</Trigger>
<Trigger Property="IsKeyboardFocused" Value="True">
<!--<Setter Property="BorderBrush" Value="{DynamicResource BrushBorderIsKeyboardFocusedTText}"/>-->
<Setter Property="BorderBrush" Value="{Binding BorderBrushBrdIsFocused,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock Name="TxBl"
Visibility="Visible"
Padding="2,0,2,0">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<!--<Setter Property="Background" Value="{DynamicResource BackgroundTextBlockIsEnableFText}"/>-->
<Setter Property="Background" Value="{Binding BackgroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<!--<Setter Property="Foreground" Value="{DynamicResource ForegroundTextBlockIsEnableFText}"/>-->
<Setter Property="Foreground" Value="{Binding ForegroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Border x:Name="Brd"
BorderThickness="1"
Padding="1"
AllowDrop="true"
FocusVisualStyle="{x:Null}"
ScrollViewer.PanningMode="VerticalFirst"
Stylus.IsFlicksEnabled="False">
<!--Background="{Binding CCBackground, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"-->
<Border.Style>
<Style TargetType="Border">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<!--<Setter Property="Background" Value="{DynamicResource BackgroundBorderEnableTText}"/>-->
<Setter Property="Background" Value="{Binding BackgroundBrdEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<!--<Setter Property="Background" Value="{DynamicResource BackgroundBorderEnableFText}"/>-->
<Setter Property="Background" Value="{Binding BackgroundBrdDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<!--<Setter Property="BorderBrush" Value="{DynamicResource BrushBorderIsMouseOverTText}"/>-->
<Setter Property="BorderBrush" Value="{Binding BorderBrushIsMouseOver,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Cursor" Value="IBeam"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="False">
<!--<Setter Property="BorderBrush" Value="{DynamicResource BrushBorderIsMouseOverFText}"/>-->
<Setter Property="BorderBrush" Value="{Binding GeneralBorderBrush,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Cursor" Value="Arrow"/>
</Trigger>
<Trigger Property="IsKeyboardFocused" Value="True">
<!--<Setter Property="BorderBrush" Value="{DynamicResource BrushBorderIsKeyboardFocusedTText}"/>-->
<Setter Property="BorderBrush" Value="{Binding BorderBrushBrdIsFocused,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock Name="TxBl"
Visibility="Visible"
Padding="2,0,2,0">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<!--<Setter Property="Background" Value="{DynamicResource BackgroundTextBlockIsEnableFText}"/>-->
<Setter Property="Background" Value="{Binding BackgroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<!--<Setter Property="Foreground" Value="{DynamicResource ForegroundTextBlockIsEnableFText}"/>-->
<Setter Property="Foreground" Value="{Binding ForegroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="True">
<!--<Setter Property="Background" Value="{DynamicResource BackgroundTextBlockIsEnableTText}"/>-->
<Setter Property="Background" Value="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<!--<Setter Property="Foreground" Value="{DynamicResource ForegroundTextBlockIsEnableTText}"/>-->
<Setter Property="Foreground" Value="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
<Trigger Property="IsEnabled" Value="True">
<!--<Setter Property="Background" Value="{DynamicResource BackgroundTextBlockIsEnableTText}"/>-->
<Setter Property="Background" Value="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<!--<Setter Property="Foreground" Value="{DynamicResource ForegroundTextBlockIsEnableTText}"/>-->
<Setter Property="Foreground" Value="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
<!--Background="{DynamicResource BackgroundTextBoxText}"-->
<!--Foreground="{DynamicResource ForegroundTextBoxText}"-->
<!--Background="{DynamicResource BackgroundTextBoxText}"-->
<!--Foreground="{DynamicResource ForegroundTextBoxText}"-->
<TextBox Name="TxBx"
Visibility="Hidden"
Padding="1,1,1,0"
Foreground="{Binding GeneralForeground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Background="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
CharacterCasing="{Binding MyCharacterCasing,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
Visibility="Hidden"
Padding="1,1,1,0"
Foreground="{Binding GeneralForeground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Background="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
CharacterCasing="{Binding MyCharacterCasing,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtTextBox}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Grid>
</UserControl>
+212 -212
View File
@@ -1,6 +1,6 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5">
<!--Colori predefiniti-->
<SolidColorBrush x:Key="EgaltechBlue1" Color="#FF4D84C4" />
@@ -11,34 +11,34 @@
<SolidColorBrush x:Key="EgaltechGray" Color="#FF58585B" />
<SolidColorBrush x:Key="EgaltechLightGray" Color="LightGray" />
<!--Definizione colori per UserControl EgtTextBox-->
<LinearGradientBrush x:Key="BrushBorderIsMouseOverFText" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0">
<GradientStop Color="#ABADB3" Offset="0.05"/>
<GradientStop Color="#E2E3EA" Offset="0.07"/>
<GradientStop Color="#E3E9EF" Offset="1"/>
</LinearGradientBrush>
<!--<SolidColorBrush x:Key="BackgroundBorderEnableTText" Color="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />-->
<SolidColorBrush x:Key="BackgroundBorderEnableTText" Color="White" />
<!--<SolidColorBrush x:Key="BackgroundBorderEnableFText" Color="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />-->
<SolidColorBrush x:Key="BackgroundBorderEnableFText" Color="Black" />
<SolidColorBrush x:Key="BrushBorderIsMouseOverTText" Color="#FF7EB4EA" />
<SolidColorBrush x:Key="BrushBorderIsKeyboardFocusedTText" Color="#FF569DE5" />
<SolidColorBrush x:Key="BackgroundTextBlockIsEnableTText" Color="White" />
<!--<SolidColorBrush x:Key="BackgroundTextBlockIsEnableFText" Color="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />-->
<SolidColorBrush x:Key="BackgroundTextBlockIsEnableFText" Color="White" />
<!--<SolidColorBrush x:Key="ForegroundTextBlockIsEnableTText" Color="{x:Static SystemColors.ControlTextBrushKey}" />-->
<SolidColorBrush x:Key="ForegroundTextBlockIsEnableTText" Color="Black" />
<!--<SolidColorBrush x:Key="ForegroundTextBlockIsEnableFText" Color="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />-->
<SolidColorBrush x:Key="ForegroundTextBlockIsEnableFText" Color="Gray" />
<!--<SolidColorBrush x:Key="ForegroundTextBoxText" Color="{x:Static SystemColors.ControlTextBrushKey}" />-->
<SolidColorBrush x:Key="ForegroundTextBoxText" Color="Black" />
<SolidColorBrush x:Key="BackgroundTextBoxText" Color="White" />
<!--Definizione colori per UserControl EgtTextBox-->
<LinearGradientBrush x:Key="BrushBorderIsMouseOverFText" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0">
<GradientStop Color="#ABADB3" Offset="0.05"/>
<GradientStop Color="#E2E3EA" Offset="0.07"/>
<GradientStop Color="#E3E9EF" Offset="1"/>
</LinearGradientBrush>
<!--<SolidColorBrush x:Key="BackgroundBorderEnableTText" Color="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />-->
<SolidColorBrush x:Key="BackgroundBorderEnableTText" Color="White" />
<!--<SolidColorBrush x:Key="BackgroundBorderEnableFText" Color="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />-->
<SolidColorBrush x:Key="BackgroundBorderEnableFText" Color="Black" />
<SolidColorBrush x:Key="BrushBorderIsMouseOverTText" Color="#FF7EB4EA" />
<SolidColorBrush x:Key="BrushBorderIsKeyboardFocusedTText" Color="#FF569DE5" />
<SolidColorBrush x:Key="BackgroundTextBlockIsEnableTText" Color="White" />
<!--<SolidColorBrush x:Key="BackgroundTextBlockIsEnableFText" Color="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />-->
<SolidColorBrush x:Key="BackgroundTextBlockIsEnableFText" Color="White" />
<!--<SolidColorBrush x:Key="ForegroundTextBlockIsEnableTText" Color="{x:Static SystemColors.ControlTextBrushKey}" />-->
<SolidColorBrush x:Key="ForegroundTextBlockIsEnableTText" Color="Black" />
<!--<SolidColorBrush x:Key="ForegroundTextBlockIsEnableFText" Color="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />-->
<SolidColorBrush x:Key="ForegroundTextBlockIsEnableFText" Color="Gray" />
<!--<SolidColorBrush x:Key="ForegroundTextBoxText" Color="{x:Static SystemColors.ControlTextBrushKey}" />-->
<SolidColorBrush x:Key="ForegroundTextBoxText" Color="Black" />
<SolidColorBrush x:Key="BackgroundTextBoxText" Color="White" />
<Thickness x:Key="BorderBtn_Thickness">0.5</Thickness>
<Thickness x:Key="BorderGpBx_Thickness">1</Thickness>
<Thickness x:Key="BorderBrd_Thickness">1</Thickness>
<Thickness x:Key="BorderBtn_Thickness">0.5</Thickness>
<Thickness x:Key="BorderGpBx_Thickness">1</Thickness>
<Thickness x:Key="BorderBrd_Thickness">1</Thickness>
<!-- Button Style -->
<!-- Button Style -->
<Style x:Key="FocusVisual">
<Setter Property="Control.Template">
@@ -143,7 +143,7 @@
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<Style x:Key="SetUpToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
<Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
@@ -188,119 +188,119 @@
</Setter>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- TextBlock -->
<!-- TextBlock -->
<Style x:Key="ValidationErrorTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="FontStyle" Value="Italic"/>
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="Foreground" Value="Red"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Margin" Value="0,1"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<Style x:Key="ValidationErrorTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="FontStyle" Value="Italic"/>
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="Foreground" Value="Red"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Margin" Value="0,1"/>
</Style>
<Style x:Key="MachiningsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="10,0,0,0"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<Style x:Key="MachiningsTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
<Setter Property="Margin" Value="0,0,0,10"/>
</Style>
<Style x:Key="MachiningsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="10,0,0,0"/>
</Style>
<Style x:Key="MachiningsComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Margin" Value="0,0,0,10"/>
</Style>
<Style x:Key="MachiningsTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
<Setter Property="Margin" Value="0,0,0,10"/>
</Style>
<Style x:Key="MachiningsToolTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="5,5,0,0"/>
</Style>
<Style x:Key="MachiningsComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Margin" Value="0,0,0,10"/>
</Style>
<Style x:Key="MachiningsToolTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
<Setter Property="Margin" Value="0,0,5,0"/>
</Style>
<Style x:Key="MachiningsToolTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="5,5,0,0"/>
</Style>
<Style x:Key="MachiningsToolComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Margin" Value="0,0,3,0"/>
</Style>
<Style x:Key="MachiningsToolTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
<Setter Property="Margin" Value="0,0,5,0"/>
</Style>
<Style x:Key="ToolsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="10,0,0,0"/>
</Style>
<Style x:Key="MachiningsToolComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Margin" Value="0,0,3,0"/>
</Style>
<Style x:Key="ToolsTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
<Setter Property="Margin" Value="0,0,5,0"/>
</Style>
<Style x:Key="ToolsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Margin" Value="10,0,0,0"/>
</Style>
<Style x:Key="ToolsComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Margin" Value="0,0,5,0"/>
</Style>
<Style x:Key="ToolsTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
<Setter Property="Margin" Value="0,0,5,0"/>
</Style>
<Style x:Key="Param_GpBxHeaderAlignment" TargetType="{x:Type Grid}">
<Setter Property="Margin" Value="-1,0,0,0"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<Style x:Key="ToolsComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Margin" Value="0,0,5,0"/>
</Style>
<!-- GroupBox with margins -->
<Style x:Key="Param_GpBxHeaderAlignment" TargetType="{x:Type Grid}">
<Setter Property="Margin" Value="-1,0,0,0"/>
</Style>
<Style x:Key="GroupBoxStyle_Margin" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="3,0,1.5,0"/>
<Setter Property="Padding" Value="5,-5,0,0"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox with margins -->
<Style x:Key="GroupBoxStyle_Margin" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="3,0,1.5,0"/>
<Setter Property="Padding" Value="5,-5,0,0"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox with margins and no border -->
<!-- GroupBox with margins and no border -->
<Style x:Key="GroupBoxStyle_Margin_NoBorder" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="3,0,3,-5"/>
<Setter Property="Padding" Value="5,5,0,0"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style x:Key="GroupBoxStyle_Margin_NoBorder" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="3,0,3,-5"/>
<Setter Property="Padding" Value="5,5,0,0"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox containing 1 parameter (or 2 on a single line) with margins and no border -->
<!-- GroupBox containing 1 parameter (or 2 on a single line) with margins and no border -->
<Style x:Key="GroupBoxStyle_Margin_NoBorder_SingleParam" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="3,0,3,-10"/>
<Setter Property="Padding" Value="5,5,0,0"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style x:Key="GroupBoxStyle_Margin_NoBorder_SingleParam" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="3,0,3,-10"/>
<Setter Property="Padding" Value="5,5,0,0"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox with margins and no header -->
<!-- GroupBox with margins and no header -->
<Style x:Key="GroupBoxStyle_NoHeader" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="3,3,1.5,0"/>
<Setter Property="Padding" Value="5,5,0,0"/>
<Setter Property="BorderBrush" Value="#FFD5DFE5"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupBox}">
<Grid SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="6"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="6"/>
</Grid.RowDefinitions>
<Border BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
<!--<Border.OpacityMask>
<Style x:Key="GroupBoxStyle_NoHeader" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="3,3,1.5,0"/>
<Setter Property="Padding" Value="5,5,0,0"/>
<Setter Property="BorderBrush" Value="#FFD5DFE5"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupBox}">
<Grid SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="6"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="6"/>
</Grid.RowDefinitions>
<Border BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
<!--<Border.OpacityMask>
<MultiBinding ConverterParameter="7" UpdateSourceTrigger="Default">
<MultiBinding.Converter>
<BorderGapMaskConverter/>
@@ -310,87 +310,87 @@
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/>
</MultiBinding>
</Border.OpacityMask>-->
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
</Border>
</Border>
<Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
<ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Border>
<ContentPresenter Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" ContentStringFormat="{TemplateBinding ContentStringFormat}" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
</Border>
</Border>
<Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
<ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Border>
<ContentPresenter Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" ContentStringFormat="{TemplateBinding ContentStringFormat}" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox with margins for Tool parameters in Machinings Db -->
<Style x:Key="MachToolGroupBoxStyle_Margin" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,-12,3,0"/>
<Setter Property="Padding" Value="4,-5,0,0"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
</Style>
<!-- GroupBox with margins for Tool parameters in Machinings Db -->
<Style x:Key="MachToolGroupBoxStyle_Margin" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,-12,3,0"/>
<Setter Property="Padding" Value="4,-5,0,0"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox with margins for Tool parameters in Machinings Db located under another MachToolGroupBoxStyle_Margin -->
<!-- GroupBox with margins for Tool parameters in Machinings Db located under another MachToolGroupBoxStyle_Margin -->
<Style x:Key="MachToolGroupBoxStyle_Margin_Lower" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,-6.5,3,0"/>
<Setter Property="Padding" Value="4,-5,0,0"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
</Style>
<Style x:Key="MachToolGroupBoxStyle_Margin_Lower" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,-6.5,3,0"/>
<Setter Property="Padding" Value="4,-5,0,0"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox with margins and no border for Tool parameters in Machinings Db -->
<!-- GroupBox with margins and no border for Tool parameters in Machinings Db -->
<Style x:Key="MachToolGroupBoxStyle_Margin_NoBorder" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,-6,3,0"/>
<Setter Property="Padding" Value="4,5,0,0"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style x:Key="MachToolGroupBoxStyle_Margin_NoBorder" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,-6,3,0"/>
<Setter Property="Padding" Value="4,5,0,0"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox for the Tool parameter in the Machinings Db -->
<!-- GroupBox for the Tool parameter in the Machinings Db -->
<Style x:Key="MachToolGroupBoxStyle_Margin_NoBorder_SingleParam" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,0,3,0"/>
<Setter Property="Padding" Value="3,5,0,0"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style x:Key="MachToolGroupBoxStyle_Margin_NoBorder_SingleParam" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,0,3,0"/>
<Setter Property="Padding" Value="3,5,0,0"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox with margins and no header for Tool parameters in Machinings Db -->
<!-- GroupBox with margins and no header for Tool parameters in Machinings Db -->
<Style x:Key="MachToolGroupBoxStyle_NoHeader" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,3,3,0"/>
<Setter Property="Padding" Value="5,5,0,0"/>
<Setter Property="BorderBrush" Value="#FFD5DFE5"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupBox}">
<Grid SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="6"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="6"/>
</Grid.RowDefinitions>
<Border BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
<!--<Border.OpacityMask>
<Style x:Key="MachToolGroupBoxStyle_NoHeader" TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="1.5,3,3,0"/>
<Setter Property="Padding" Value="5,5,0,0"/>
<Setter Property="BorderBrush" Value="#FFD5DFE5"/>
<Setter Property="BorderThickness" Value="{StaticResource BorderGpBx_Thickness}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupBox}">
<Grid SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="6"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="6"/>
</Grid.RowDefinitions>
<Border BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
<!--<Border.OpacityMask>
<MultiBinding ConverterParameter="7" UpdateSourceTrigger="Default">
<MultiBinding.Converter>
<BorderGapMaskConverter/>
@@ -400,41 +400,41 @@
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/>
</MultiBinding>
</Border.OpacityMask>-->
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
</Border>
</Border>
<Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
<ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Border>
<ContentPresenter Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" ContentStringFormat="{TemplateBinding ContentStringFormat}" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
<Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
</Border>
</Border>
<Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
<ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Border>
<ContentPresenter Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" ContentStringFormat="{TemplateBinding ContentStringFormat}" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- Tools Db: Auto Draw and Open Draw File buttons margin -->
<!-- Tools Db: Auto Draw and Open Draw File buttons margin -->
<Style x:Key="AutoDrawButtonMargin" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Margin" Value="5,3,0,0"/>
</Style>
<Style x:Key="AutoDrawButtonMargin" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Margin" Value="5,3,0,0"/>
</Style>
<Style x:Key="OpenDrawFileButtonMargin" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Margin" Value="5,3,5,0"/>
</Style>
<Style x:Key="OpenDrawFileButtonMargin" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Margin" Value="5,3,5,0"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- GroupBox for the Tool parameter in the Machinings Db -->
<!-- GroupBox for the Tool parameter in the Machinings Db -->
<Style x:Key="DataGridMargin" TargetType="{x:Type DataGrid}">
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
</Style>
<Style x:Key="DataGridMargin" TargetType="{x:Type DataGrid}">
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
</Style>
<!-- ______________________________________________________________________________________________________________________________________________ -->
<!-- ______________________________________________________________________________________________________________________________________________ -->
</ResourceDictionary>
@@ -1,14 +1,14 @@
<EgtWPFLib5:EgtCustomWindow x:Class="EstimationsDetailsWndV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding TitleMsg}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="32"
Width="300" Height="300"
IsResizable="True"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding TitleMsg}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="32"
Width="300" Height="300"
IsResizable="True"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
<WebBrowser Name="EstimationsWebBrowser" Margin="10"/>
</EgtWPFLib5:EgtCustomWindow>
+14 -14
View File
@@ -1,9 +1,9 @@
<EgtFloating:EgtFloatingPanel x:Class="EgtMachGroupPanelV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating"
Visibility="{Binding MachGroupPanel_Visibility}">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating"
Visibility="{Binding MachGroupPanel_Visibility}">
<EgtFloating:EgtFloatingPanel.Resources>
<SolidColorBrush x:Key="ListBox.Static.Background" Color="#FFFFFFFF"/>
@@ -23,7 +23,7 @@
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
</EgtFloating:EgtFloatingPanel.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
@@ -53,17 +53,17 @@
<ListBox.ItemTemplate>
<DataTemplate>
<RadioButton GroupName="MachiningGroups"
Height="30" MaxWidth="250" Padding="5,0,5,0"
ToolTip="{Binding MachGroupToolTip}"
Style="{Binding MachGroupButtonStyle,RelativeSource={RelativeSource AncestorType={x:Type EgtFloating:EgtFloatingPanel}}}"
IsChecked="{Binding Path=IsSelected,
RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}},
Mode=TwoWay}"
IsEnabled="{Binding IsEnabled, Mode=TwoWay}">
Height="30" MaxWidth="250" Padding="5,0,5,0"
ToolTip="{Binding MachGroupToolTip}"
Style="{Binding MachGroupButtonStyle,RelativeSource={RelativeSource AncestorType={x:Type EgtFloating:EgtFloatingPanel}}}"
IsChecked="{Binding Path=IsSelected,
RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}},
Mode=TwoWay}"
IsEnabled="{Binding IsEnabled, Mode=TwoWay}">
<RadioButton.Content>
<TextBlock Text="{Binding Name}"/>
</RadioButton.Content>
</RadioButton>
</DataTemplate>
</ListBox.ItemTemplate>
@@ -1,13 +1,13 @@
<EgtWPFLib5:EgtCustomWindow x:Class="NewMachGroupWndV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding TitleMsg}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="32" Width="290"
IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
IsClosable="{Binding IsClosable}" SizeToContent="Height">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding TitleMsg}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="32" Width="290"
IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
IsClosable="{Binding IsClosable}" SizeToContent="Height">
<StackPanel Margin="0,5,0,0">
@@ -23,7 +23,7 @@
<TextBox Text="{Binding Name}"
Grid.Column="1"/>
</Grid>
<Grid Margin="5,0,5,5" Visibility="{Binding MachineVisibility}">
<Grid.ColumnDefinitions>
<ColumnDefinition Name="MachineColumn" Width="Auto"/>
@@ -39,9 +39,9 @@
SelectedValuePath="Name"
SelectedItem="{Binding SelectedMachine}"
Grid.Row="1" Grid.Column="1"/>
</Grid>
<Grid Margin="5,0,5,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
@@ -51,9 +51,9 @@
<Button Name="OkBtn" Content="Ok" Width="60" IsDefault="True"/>
<Button Content="Annulla" Width="60" Grid.Column="2" IsCancel="True"
IsEnabled="{Binding IsClosable}"/>
</Grid>
</StackPanel>
</EgtWPFLib5:EgtCustomWindow>
@@ -251,7 +251,7 @@
<ComboBox Grid.Row="0"
Grid.Column="1"
ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
@@ -43,7 +43,7 @@
<CheckBox Name="ActiveTxBx" Grid.Column="0" Height="15" Width="15" Margin="-15,0,5,0" VerticalContentAlignment="Center"
IsChecked="{Binding Active}"
Visibility="{Binding Path=DataContext.Active_Visibility,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
</Grid>
+44 -44
View File
@@ -1,20 +1,20 @@
<EgtWPFLib5:EgtCustomWindow x:Class="MachiningDbWindowV"
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"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
CloseCommand="{Binding CloseMachiningsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
CloseCommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
MyForegroundText="DeepSkyBlue"
x:Name="PLUTO">
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"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
CloseCommand="{Binding CloseMachiningsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
CloseCommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
MyForegroundText="DeepSkyBlue"
x:Name="PLUTO">
<EgtWPFLib5:EgtCustomWindow.InputBindings>
<KeyBinding Key="Escape" Command="{Binding ReloadMachiningCommand}"
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"/>
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"/>
</EgtWPFLib5:EgtCustomWindow.InputBindings>
<EgtWPFLib5:EgtCustomWindow.Resources>
@@ -79,20 +79,20 @@
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</EgtWPFLib5:EgtCustomWindow.Resources>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</EgtWPFLib5:EgtCustomWindow.Resources>
<Grid>
<Grid.ColumnDefinitions>
@@ -110,18 +110,18 @@
<UniformGrid Grid.Row="0" Columns="3">
<Button Content="{Binding NewMsg}" Command="{Binding NewCommand}"
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}" Height="30"/>
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}" Height="30"/>
<Button Content="{Binding SaveMsg}" Command="{Binding SaveCommand}"
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}" Height="30"/>
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}" Height="30"/>
<Button Content="{Binding RemoveMsg}" Command="{Binding RemoveCommand}"
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}" Height="30"/>
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}" Height="30"/>
</UniformGrid>
<TreeView Name="MachiningsTreeView" Grid.Row="1"
ItemsSource="{Binding Path=MachiningsList}">
ItemsSource="{Binding Path=MachiningsList}">
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
@@ -167,17 +167,17 @@
</TreeView>
<UniformGrid Grid.Row="2" Columns="3">
<Button Content="{Binding ImportMsg}" Command="{Binding ImportCommand}" Height="30"/>
<Button Content="{Binding ExportMsg}" Command="{Binding ExportCommand}" Height="30"/>
<Button Content="{Binding ResetMsg}" Command="{Binding ReloadMachiningCommand}"
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}" Height="30"/>
</UniformGrid>
<UniformGrid Grid.Row="2" Columns="3">
<Button Content="{Binding ImportMsg}" Command="{Binding ImportCommand}" Height="30"/>
<Button Content="{Binding ExportMsg}" Command="{Binding ExportCommand}" Height="30"/>
<Button Content="{Binding ResetMsg}" Command="{Binding ReloadMachiningCommand}"
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}" Height="30"/>
</UniformGrid>
</Grid>
</Grid>
<ContentControl Content="{Binding Path=ParamPageV}" Grid.Column="1" Grid.ColumnSpan="2"/>
<ContentControl Content="{Binding Path=ParamPageV}" Grid.Column="1" Grid.ColumnSpan="2"/>
</Grid>
</Grid>
</EgtWPFLib5:EgtCustomWindow>
+130 -58
View File
@@ -4539,6 +4539,7 @@ Public Class MachiningTreeViewItem
End Get
Set(value As ObservableCollection(Of NoteListBoxItem))
m_NotesList = value
NotifyPropertyChanged(NameOf(NotesList))
End Set
End Property
@@ -4552,22 +4553,53 @@ Public Class MachiningTreeViewItem
End Set
End Property
Private m_sDescriptionVal As Object
Public Property sDescriptionVal As Object
Get
Return m_sDescriptionVal
End Get
Set(value As Object)
m_sDescriptionVal = value
End Set
End Property
Public ReadOnly Property NoteExpanderVisibility As Visibility
Get
Return If(Not String.IsNullOrEmpty(m_UserNotes) AndAlso m_UserNotes <> "Split;", Visibility.Visible, Visibility.Collapsed)
End Get
End Property
Private m_bComboAddVisibility As Visibility = Visibility.Collapsed
Public Property ComboAddVisibility As Visibility
Get
Return m_bComboAddVisibility
End Get
Set(value As Visibility)
m_bComboAddVisibility = value
NotifyPropertyChanged(NameOf(ComboAddVisibility))
End Set
End Property
Private m_NotesListCombo As New ObservableCollection(Of NoteListBoxItem)
Public Property NotesListCombo As ObservableCollection(Of NoteListBoxItem)
Get
Return m_NotesListCombo
End Get
Set(value As ObservableCollection(Of NoteListBoxItem))
m_NotesListCombo = value
End Set
End Property
Private m_SelNoteItemCombo As NoteListBoxItem
Public Property SelNoteItemCombo As NoteListBoxItem
Get
Return m_SelNoteItemCombo
End Get
Set(value As NoteListBoxItem)
m_SelNoteItemCombo = value
If Not IsNothing(m_SelNoteItemCombo) Then
For Index As Integer = 0 To NotesList.Count - 1
If NotesList(Index).Description <> m_SelNoteItemCombo.Description Then m_NotesList.Add(m_SelNoteItemCombo)
Exit For
Next
End If
NotifyPropertyChanged(NameOf(NotesList))
End Set
End Property
' Comandi
Private m_cmdUpdateNote As ICommand
#End Region ' Note Property
#Region "Messages"
@@ -5827,6 +5859,7 @@ Public Class MachiningTreeViewItem
MyBase.New(Name)
Me.m_Type = Type
Me.m_CurrMachTreeViewItemType = MachTreeViewItemType.OPERATION
LibMap.SetRefMachiningTreeViewItem(Me)
End Sub
#End Region ' Constructors
@@ -6413,35 +6446,6 @@ Public Class MachiningTreeViewItem
RaiseEvent m_IsModified(IsModified())
End Sub
Private Sub GetFileNote()
Dim sNoteDescription As String = String.Empty
Dim IndexNote As Integer = 0
' Divido UserNotes in un array di String
Dim sUserNotes() As String = m_UserNotes.TrimEnd(";"c).Split(New Char() {";"c, "="c})
For Index As Integer = 0 To sUserNotes.Count - 1
sUserNotes(Index) = sUserNotes(Index).Trim()
Next
' Recupero le info dal file Notes.ini
While EgtUILib.GetPrivateProfileString(m_Type.ToString(), IndexNote.ToString(), String.Empty, sNoteDescription, "C:\EgtData\EgtCAM5\Config\Notes.ini") > 0
Dim sNotes() As String = sNoteDescription.Split(","c)
For Index As Integer = 0 To sNotes.Count - 1
sNotes(Index) = sNotes(Index).Trim()
Next
For IndexNoteUser As Integer = 0 To sUserNotes.Count - 1
If IndexNoteUser < sUserNotes.Count AndAlso sUserNotes(IndexNoteUser) = sNotes(1) Then
m_NotesList.Add(New NoteListBoxItem(IndexNote, sNotes(0), sNotes(1)))
End If
Next
IndexNote += 1
End While
m_SelNoteItem = m_NotesList(0)
NotifyPropertyChanged(NameOf(SelNoteItem))
NotifyPropertyChanged(NameOf(sDescriptionVal))
End Sub
Friend Sub ReadMachiningName()
EgtMdbGetCurrMachiningParam(MCH_MP.NAME, NamePar)
End Sub
@@ -7038,6 +7042,10 @@ Public Class MachiningTreeViewItem
If EgtSetMachiningParam(MCH_MP.USERNOTES, m_UserNotes) Then
m_IsModifiedUserNotes = False
End If
Else
WriteOperationParamNote()
m_bComboAddVisibility = Visibility.Collapsed
NotifyPropertyChanged(NameOf(ComboAddVisibility))
End If
If m_IsModifiedInitAngs Then
If EgtSetMachiningParam(MCH_MP.INITANGS, m_InitAngs) Then
@@ -7121,31 +7129,97 @@ Public Class MachiningTreeViewItem
End If
End Sub
Public Sub WriteMachiningName()
EgtMdbSetCurrMachiningParam(MCH_MP.NAME, NamePar)
End Sub
#Region "Methods Note"
Public Sub GetFileNote()
Dim sNoteDescription As String = String.Empty
Dim IndexNote As Integer = 0
' Divido UserNotes in un array di String
Dim sUserNotes() As String = m_UserNotes.TrimEnd(";"c).Split(New Char() {";"c, "="c})
For Index As Integer = 0 To sUserNotes.Count - 1
sUserNotes(Index) = sUserNotes(Index).Trim()
Next
' Recupero le info dal file Notes.ini
While EgtUILib.GetPrivateProfileString(m_Type.ToString(), IndexNote.ToString(), String.Empty, sNoteDescription, "C:\EgtData\EgtCAM5\Config\Notes.ini") > 0
Dim sNotes() As String = sNoteDescription.Split(","c)
For Index As Integer = 0 To sNotes.Count - 1
sNotes(Index) = sNotes(Index).Trim()
Next
For IndexNoteUser As Integer = 0 To sUserNotes.Count - 1
If sUserNotes(IndexNoteUser) = sNotes(1) Then
m_NotesList.Add(New NoteListBoxItem(IndexNote, sNotes(0), sNotes(1), sUserNotes(IndexNoteUser + 1)))
End If
Next
IndexNote += 1
End While
'm_SelNoteItem = m_NotesList(0)
NotifyPropertyChanged(NameOf(SelNoteItem))
NotifyPropertyChanged(NameOf(NotesList))
End Sub
Private Sub GetComboNoteList()
Dim sNoteDescription As String = String.Empty
Dim IndexNote As Integer = 0
Dim IndexN As Integer = 0
' Divido UserNotes in un array di String
Dim sUserNotes() As String = m_UserNotes.TrimEnd(";"c).Split(New Char() {";"c, "="c})
For Index As Integer = 0 To sUserNotes.Count - 1
sUserNotes(Index) = sUserNotes(Index).Trim()
Next
' Recupero le info dal file Notes.ini
While EgtUILib.GetPrivateProfileString(m_Type.ToString(), IndexNote.ToString(), String.Empty, sNoteDescription, "C:\EgtData\EgtCAM5\Config\Notes.ini") > 0
Dim sNotes() As String = sNoteDescription.Split(","c)
For Index As Integer = 0 To sNotes.Count - 1
sNotes(Index) = sNotes(Index).Trim()
Next
For IndexNApp As Integer = IndexN To sUserNotes.Count - 1
If sUserNotes(IndexN) <> sNotes(1) Then m_NotesListCombo.Add(New NoteListBoxItem(IndexNote, sNotes(0), sNotes(1), sNotes(2)))
Exit For
Next
If IndexN < sUserNotes.Count - 2 Then IndexN += 2
IndexNote += 1
End While
NotifyPropertyChanged(NameOf(SelNoteItemCombo))
End Sub
Public Overridable Sub WriteOperationParamNote()
Dim sUserNotes() As String = m_UserNotes.TrimEnd(";"c).Split(New Char() {";"c, "="c})
Dim sNotes As New StringBuilder()
m_UserNotes = String.Empty
For Index As Integer = 0 To sUserNotes.Length - 1 Step 2
Dim sUser As String = sUserNotes(Index).Trim()
Dim valueNote As String = If(Index + 1 < sUserNotes.Length, sUserNotes(Index + 1).Trim(), "")
If sUser.Equals(m_SelNoteItem.Description) Then
sNotes.Append(m_SelNoteItem.Description).Append("=").Append(m_sDescriptionVal.ToString()).Append(";")
For IndexNote As Integer = 0 To m_NotesList.Count - 1
Dim sUser As String = sUserNotes(IndexNote).Trim()
Dim valueNote As String = If(IndexNote + 1 < sUserNotes.Count, sUserNotes(IndexNote + 1).Trim(), "")
If sUser.Equals(m_NotesList(IndexNote).Description) Then
sNotes.Append(m_NotesList(IndexNote).Description).Append("=").Append(m_NotesList(IndexNote).DescriptionVal).Append(";")
Else
sNotes.Append(sUser).Append("=").Append(valueNote).Append(";")
m_UserNotes &= sUser & "=" & valueNote & ";"
sNotes.Append(m_NotesList(IndexNote).Description).Append("=").Append(m_NotesList(IndexNote).DescriptionVal).Append(";")
m_UserNotes &= m_NotesList(IndexNote).Description & "=" & m_NotesList(IndexNote).DescriptionVal & ";"
End If
Next
EgtSetMachiningParam(MCH_MP.USERNOTES, sNotes.ToString())
NotifyPropertyChanged(NameOf(UserNotes))
End Sub
Public Sub WriteMachiningName()
EgtMdbSetCurrMachiningParam(MCH_MP.NAME, NamePar)
Public Sub RemoveNote()
m_NotesList.Remove(m_SelNoteItem)
NotifyPropertyChanged(NameOf(NotesList))
End Sub
#End Region ' Methods Note
#End Region ' Methods
#Region "Validation"
@@ -7641,13 +7715,10 @@ Public Class MachiningTreeViewItem
#End Region ' Validation
Private m_cmdUpdateNote As ICommand
#Region "COMMANDS"
#Region "UpdateNoteCommand"
''' <summary>
''' Restituisce funzione per ricalcolo lavorazione.
''' </summary>
Public ReadOnly Property UpdateNoteCommand As ICommand
Get
If m_cmdUpdateNote Is Nothing Then
@@ -7657,16 +7728,17 @@ Public Class MachiningTreeViewItem
End Get
End Property
''' <summary>
''' Ricalcola una lavorazione.
''' </summary>
Public Sub UpdateNote(ByVal param As Object)
' aggiorno valori modificati
WriteOperationParamNote()
m_NotesListCombo.Clear()
m_bComboAddVisibility = Visibility.Visible
GetComboNoteList()
NotifyPropertyChanged(NameOf(ComboAddVisibility))
End Sub
#End Region ' UpdateNoteCommand
#End Region ' Commands
End Class
+314 -334
View File
@@ -4,389 +4,369 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<GroupBox 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}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding InvertToolDirTxBl}"
ParamChBx="{Binding Path=InvertToolDir,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding FaceUseTypeTxBl}"
ParamCmBxList="{Binding Path=FaceUseTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedFaceUseType}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding InvertToolDirTxBl}"
ParamChBx="{Binding Path=InvertToolDir,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding FaceUseTypeTxBl}"
ParamCmBxList="{Binding Path=FaceUseTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedFaceUseType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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>
<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}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Margin="0,3,3,3"/>
<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Row="0" Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
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>
<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>
<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="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="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="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}" />
<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>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
</UserControl>
+336 -361
View File
@@ -4,422 +4,397 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<GroupBox 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>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SubTypeTxBl}"
ParamCmBxList="{Binding Path=SubTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SubTypeTxBl}"
ParamCmBxList="{Binding Path=SubTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EpicyclesRadTxBl}"
ParamTxBx="{Binding Path=EpicyclesRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding Epicycles_Visibility}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EpicyclesDistTxBl}"
ParamTxBx="{Binding Path=EpicyclesDist,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding Epicycles_Visibility}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EpicyclesRadTxBl}"
ParamTxBx="{Binding Path=EpicyclesRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding Epicycles_Visibility}"/>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EpicyclesDistTxBl}"
ParamTxBx="{Binding Path=EpicyclesDist,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding Epicycles_Visibility}"/>
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding InvertToolDirTxBl}"
ParamChBx="{Binding Path=InvertToolDir,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding InvertToolDirTxBl}"
ParamChBx="{Binding Path=InvertToolDir,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LiTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LeadElevTxBl}"
ParamTxBx="{Binding Path=LiElev,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LiTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LoTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LeadElevTxBl}"
ParamTxBx="{Binding Path=LiElev,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LoTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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>
<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}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Margin="0,3,3,3"/>
<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Row="0" Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
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>
<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>
<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="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="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="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}" />
<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>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
</UserControl>
+289 -298
View File
@@ -4,226 +4,220 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding ReturnPosTxBl}"
ParamTxBx="{Binding Path=ReturnPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThrouAddLenTxBl}"
ParamTxBx="{Binding Path=ThrouAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartSlowLenTxBl}"
ParamTxBx="{Binding Path=StartSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding ReturnPosTxBl}"
ParamTxBx="{Binding Path=ReturnPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding EndSlowLenTxBl}"
ParamTxBx="{Binding Path=EndSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThrouAddLenTxBl}"
ParamTxBx="{Binding Path=ThrouAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartSlowLenTxBl}"
ParamTxBx="{Binding Path=StartSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding EndSlowLenTxBl}"
ParamTxBx="{Binding Path=EndSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
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>
<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">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
@@ -231,121 +225,118 @@
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
/>
</Grid>
</GroupBox>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<Grid Grid.Column="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>
<Grid Grid.Column="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="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="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="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>
</GroupBox>
<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>
</GroupBox>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</UserControl>
+292 -300
View File
@@ -4,227 +4,222 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<Rectangle/>
<EgtWPFLib5:ComboParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding LeadInTypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding LeadOutTypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<Rectangle/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding LeadInTypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding LeadOutTypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"/>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
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>
<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">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
@@ -232,121 +227,118 @@
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
/>
</Grid>
</GroupBox>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<Grid Grid.Column="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>
<Grid Grid.Column="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="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="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="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>
</GroupBox>
<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>
</GroupBox>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</UserControl>
@@ -4,422 +4,407 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<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 Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SubTypeTxBl}"
ParamCmBxList="{Binding Path=SubTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<EgtWPFLib5:CheckParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SubTypeTxBl}"
ParamCmBxList="{Binding Path=SubTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<Rectangle/>
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<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}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding StepGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<Rectangle/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AddLenGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartAddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding StepGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndAddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
</UniformGrid>
</GroupBox>
<Rectangle/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AddLenGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartAddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndAddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
/>
</Grid>
</GroupBox>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<Grid Grid.Column="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>
<Grid Grid.Column="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=SpeedEnabled}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=SpeedEnabled}" />
<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="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="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}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="3"
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=EndFeedChecked}"
AutoToolParamEnabled="{Binding Path=EndFeedEnabled}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="4"
ParamTxBl="{Binding VertFeedTxBl}"
ParamTxBx="{Binding Path=VertFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=VertFeedChecked}"
AutoToolParamEnabled="{Binding Path=VertFeedEnabled}" />
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="4"
ParamTxBl="{Binding VertFeedTxBl}"
ParamTxBx="{Binding Path=VertFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=VertFeedChecked}"
AutoToolParamEnabled="{Binding Path=VertFeedEnabled}" />
</Grid>
</GroupBox>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_Lower}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="1">
<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}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSrChecked}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</UserControl>
+336 -349
View File
@@ -4,262 +4,252 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle Grid.Column="1" Grid.Row="1" Visibility="Hidden"/>
<Rectangle/>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<Rectangle Grid.Column="1" Grid.Row="1" Visibility="Hidden"/>
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding StepGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<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}">
<GroupBox.Header>
<Label Content="{Binding AddLenGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding StepGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartAddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndAddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AddLenGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartAddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndAddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
@@ -267,145 +257,142 @@
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
/>
</Grid>
</GroupBox>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<Grid Grid.Column="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>
<Grid Grid.Column="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="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="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="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>
</GroupBox>
<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>
</GroupBox>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_Lower}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="1">
<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 Grid.Row="0"
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSrChecked}"
AutoToolParamEnabled="{Binding Path=OffSrEnabled}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSlChecked}"
AutoToolParamEnabled="{Binding Path=OffSlEnabled}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSlChecked}"
AutoToolParamEnabled="{Binding Path=OffSlEnabled}" />
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</UserControl>
+415 -434
View File
@@ -1,342 +1,326 @@
<UserControl x:Class="Stone5SawingParamPageV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<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>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
<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:ComboParamV ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExtLinkTypeTxBl}"
ParamCmBxList="{Binding Path=ExtLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExtLinkType}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExtLinkTypeTxBl}"
ParamCmBxList="{Binding Path=ExtLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExtLinkType}"/>
<EgtWPFLib5:StringParamV Grid.Row="0"
ParamTxBl="{Binding LiTangStoneTxBl}"
ParamTxBx="{Binding Path=LiTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Row="2"
ParamTxBl="{Binding LiElevStoneTxBl}"
ParamTxBx="{Binding Path=LiElev,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}" />
<EgtWPFLib5:StringParamV Grid.Row="0"
ParamTxBl="{Binding LiTangStoneTxBl}"
ParamTxBx="{Binding Path=LiTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Row="2"
ParamTxBl="{Binding LiElevStoneTxBl}"
ParamTxBx="{Binding Path=LiElev,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<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}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding StepGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding StepGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding StepBackTxBl}"
ParamTxBx="{Binding Path=StepBack,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding StepSideAngTxBl}"
ParamTxBx="{Binding Path=StepSideAng,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding StepSideAngBackTxBl}"
ParamTxBx="{Binding Path=StepSideAngBack,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding StepIntArcTxBl}"
ParamTxBx="{Binding Path=StepIntArc,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding StepBackTxBl}"
ParamTxBx="{Binding Path=StepBack,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding StepExtArcTxBl}"
ParamTxBx="{Binding Path=StepExtArc,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding StepSideAngTxBl}"
ParamTxBx="{Binding Path=StepSideAng,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding StepSideAngBackTxBl}"
ParamTxBx="{Binding Path=StepSideAngBack,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding StepIntArcTxBl}"
ParamTxBx="{Binding Path=StepIntArc,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding StepExtArcTxBl}"
ParamTxBx="{Binding Path=StepExtArc,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding StepLastTxBl}"
ParamTxBx="{Binding Path=StepLast,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding StepLastTxBl}"
ParamTxBx="{Binding Path=StepLast,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
@@ -344,163 +328,160 @@
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
/>
</Grid>
</GroupBox>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<Grid Grid.Column="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>
<Grid Grid.Column="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="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="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="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}"/>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="3"
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=EndFeedChecked}"
AutoToolParamEnabled="{Binding Path=EndFeedEnabled}"/>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="4"
ParamTxBl="{Binding BackFeedTxBl}"
ParamTxBx="{Binding Path=BackFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=BackFeedChecked}"
AutoToolParamEnabled="{Binding Path=BackFeedEnabled}"/>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="4"
ParamTxBl="{Binding BackFeedTxBl}"
ParamTxBx="{Binding Path=BackFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=BackFeedChecked}"
AutoToolParamEnabled="{Binding Path=BackFeedEnabled}"/>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="5"
ParamTxBl="{Binding SideAngFeedTxBl}"
ParamTxBx="{Binding Path=SideAngFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=SideAngFeedChecked}"
AutoToolParamEnabled="{Binding Path=SideAngFeedEnabled}"/>
</Grid>
</GroupBox>
<!--MyTest-->
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}"
<EgtWPFLib5:StringParamWithButtonV Grid.Row="5"
ParamTxBl="{Binding SideAngFeedTxBl}"
ParamTxBx="{Binding Path=SideAngFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=SideAngFeedChecked}"
AutoToolParamEnabled="{Binding Path=SideAngFeedEnabled}"/>
</Grid>
</GroupBox>
<!--MyTest-->
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}"
Margin="1.5,-6,3,0">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"/>
</GroupBox.Header>
<Grid Grid.Column="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Grid Grid.Column="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="1"
ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSlChecked}"
AutoToolParamEnabled="{Binding Path=OffSlEnabled}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="1"
ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSlChecked}"
AutoToolParamEnabled="{Binding Path=OffSlEnabled}" />
</Grid>
</GroupBox>
<!--FineMyTest-->
</StackPanel>
</Grid>
</Grid>
</GroupBox>
<!--FineMyTest-->
</StackPanel>
</Grid>
</UserControl>
@@ -4,361 +4,346 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<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}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
</Grid>
<Rectangle/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ForwardAngleTxBl}"
ParamTxBx="{Binding Path=ForwardAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
</UniformGrid>
</GroupBox>
<Rectangle/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ForwardAngleTxBl}"
ParamTxBx="{Binding Path=ForwardAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LiTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="2"
ParamTxBl="{Binding LeadPerpTxBl}"
ParamTxBx="{Binding Path=LiPerp,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:CheckParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding LiHoleTxBl}"
ParamChBx="{Binding Path=LiHole,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding LiHoleRadTxBl}"
ParamTxBx="{Binding Path=LiHoleRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding LpTurnsTxBl}"
ParamTxBx="{Binding Path=LpTurns,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LiTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding HpTurnsTxBl}"
ParamTxBx="{Binding Path=HpTurns,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="2"
ParamTxBl="{Binding LeadPerpTxBl}"
ParamTxBx="{Binding Path=LiPerp,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:CheckParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding LiHoleTxBl}"
ParamChBx="{Binding Path=LiHole,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"/>
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding LiHoleRadTxBl}"
ParamTxBx="{Binding Path=LiHoleRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding LpTurnsTxBl}"
ParamTxBx="{Binding Path=LpTurns,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LoTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding HpTurnsTxBl}"
ParamTxBx="{Binding Path=HpTurns,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="2"
ParamTxBl="{Binding LeadPerpTxBl}"
ParamTxBx="{Binding Path=LoPerp,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AnglesGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExtCornTypeTxBl}"
ParamCmBxList="{Binding Path=ExtCornTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExtCornType}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LoTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding IntCornTypeTxBl}"
ParamCmBxList="{Binding Path=IntCornTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedIntCornType}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="2"
ParamTxBl="{Binding LeadPerpTxBl}"
ParamTxBx="{Binding Path=LoPerp,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CornSlowLenTxBl}"
ParamTxBx="{Binding Path=CornSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CornSlowPercTxBl}"
ParamTxBx="{Binding Path=CornSlowPerc,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AnglesGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Grid>
<EgtWPFLib5:CheckParamV ParamTxBl="{Binding ProbingGpBxLbl}"
ParamChBx="{Binding Path=Probing,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</Grid>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExtCornTypeTxBl}"
ParamCmBxList="{Binding Path=ExtCornTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExtCornType}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding ProbingMinDistTxBl}"
ParamTxBx="{Binding Path=ProbingMinDist,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding IntCornTypeTxBl}"
ParamCmBxList="{Binding Path=IntCornTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedIntCornType}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CornSlowLenTxBl}"
ParamTxBx="{Binding Path=CornSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CornSlowPercTxBl}"
ParamTxBx="{Binding Path=CornSlowPerc,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Grid>
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding ProbingGpBxLbl}"
ParamChBx="{Binding Path=Probing,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</Grid>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding ProbingMinDistTxBl}"
ParamTxBx="{Binding Path=ProbingMinDist,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding ProbingMaxDistTxBl}"
ParamTxBx="{Binding Path=ProbingMaxDist,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding ProbingMaxDistTxBl}"
ParamTxBx="{Binding Path=ProbingMaxDist,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
@@ -366,123 +351,119 @@
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
/>
</Grid>
</GroupBox>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList,Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
</Grid>
</GroupBox>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<Grid Grid.Column="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>
<Grid Grid.Column="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="2"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=FeedEnabled}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="2"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=FeedEnabled}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="5"
ParamTxBl="{Binding Path=TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=TipFeedChecked}"
AutoToolParamEnabled="{Binding Path=TipFeedEnabled}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="5"
ParamTxBl="{Binding Path=TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=TipFeedChecked}"
AutoToolParamEnabled="{Binding Path=TipFeedEnabled}" />
<Grid Grid.Row="6">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThicknessFeedTxBl}"
ParamTxBx="{Binding Path=ThicknessFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</Grid>
</Grid>
</GroupBox>
<Grid Grid.Row="6">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_Lower}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThicknessFeedTxBl}"
ParamTxBx="{Binding Path=ThicknessFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</Grid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSrChecked}"
AutoToolParamEnabled="{Binding Path=OffSrEnabled}" />
</UniformGrid>
</GroupBox>
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_Lower}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="1">
</StackPanel>
</Grid>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSrChecked}"
AutoToolParamEnabled="{Binding Path=OffSrEnabled}" />
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</UserControl>
+382 -393
View File
@@ -5,234 +5,230 @@
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundChxTxBl}"/>
</Style>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundChxTxBl}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding GenericGpBxLbl}">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding ReturnPosTxBl}"
ParamTxBx="{Binding Path=ReturnPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding GenericGpBxLbl}">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThrouAddLenTxBl}"
ParamTxBx="{Binding Path=ThrouAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartSlowLenTxBl}"
ParamTxBx="{Binding Path=StartSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding ReturnPosTxBl}"
ParamTxBx="{Binding Path=ReturnPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding EndSlowLenTxBl}"
ParamTxBx="{Binding Path=EndSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThrouAddLenTxBl}"
ParamTxBx="{Binding Path=ThrouAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartSlowLenTxBl}"
ParamTxBx="{Binding Path=StartSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding EndSlowLenTxBl}"
ParamTxBx="{Binding Path=EndSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<DataGrid Name="AssociationDataGrid" Style="{DynamicResource DataGridMargin}"
<DataGrid Name="AssociationDataGrid" Style="{DynamicResource DataGridMargin}"
ItemsSource="{Binding Path=MaterialList}"
SelectedItem="{Binding Path=SelMaterial, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
IsSynchronizedWithCurrentItem="False"
@@ -251,209 +247,202 @@
HeadersVisibility="{Binding ElementName=PIPPO, Path=HeaderVisibility}"
Background="{Binding ElementName=PIPPO, Path=BackgroundDataGrid}"
BorderBrush="{Binding ElementName=PIPPO, Path=BorderBrushDataGrid}">
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackGroundHeader}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundHeader}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushHeader}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessHeader}"/>
<Setter Property="FontWeight" Value="{Binding ElementName=PIPPO, Path=FontWeightHeader}"/>
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundDataGridRow}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundDataGridRow}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridRow}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridRow}"/>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridCell}" />
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridCell}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#484D55"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#484D55"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackGroundHeader}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundHeader}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushHeader}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessHeader}"/>
<Setter Property="FontWeight" Value="{Binding ElementName=PIPPO, Path=FontWeightHeader}"/>
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundDataGridRow}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundDataGridRow}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridRow}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridRow}"/>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridCell}" />
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridCell}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#484D55"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#484D55"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding sName}" IsReadOnly="True"
Width="2*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaterialMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MinThickness}"
Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MinThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MaxThickness}"
Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaxThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding sName}" IsReadOnly="True" Width="2*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaterialMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MinThickness}" Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MinThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MaxThickness}" Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaxThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid.Columns>
</DataGrid>
</DataGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Background="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"
BorderThickness="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"
VerticalContentAlignment="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"
Height="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"
Width="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
</Grid>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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}"
</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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Background="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"
BorderThickness="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"
VerticalContentAlignment="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"
Height="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"
Width="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<Grid Grid.Column="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>
<Grid Grid.Column="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="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="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="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>
</GroupBox>
<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>
</GroupBox>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</UserControl>
+386 -396
View File
@@ -5,235 +5,232 @@
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundChxTxBl}"/>
</Style>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundChxTxBl}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}"/>
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}" Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<Rectangle/>
<EgtWPFLib5:ComboParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding LeadInTypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}"/>
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding LeadOutTypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}" Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding LeadInTypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding LeadOutTypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"/>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<DataGrid Name="AssociationDataGrid" Style="{DynamicResource DataGridMargin}"
<DataGrid Name="AssociationDataGrid" Style="{DynamicResource DataGridMargin}"
ItemsSource="{Binding Path=MaterialList}"
SelectedItem="{Binding Path=SelMaterial, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
IsSynchronizedWithCurrentItem="False"
@@ -252,210 +249,203 @@
HeadersVisibility="{Binding ElementName=PIPPO, Path=HeaderVisibility}"
Background="{Binding ElementName=PIPPO, Path=BackgroundDataGrid}"
BorderBrush="{Binding ElementName=PIPPO, Path=BorderBrushDataGrid}">
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackGroundHeader}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundHeader}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushHeader}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessHeader}"/>
<Setter Property="FontWeight" Value="{Binding ElementName=PIPPO, Path=FontWeightHeader}"/>
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundDataGridRow}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundDataGridRow}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridRow}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridRow}"/>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridCell}" />
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridCell}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#484D55"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#484D55"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackGroundHeader}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundHeader}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushHeader}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessHeader}"/>
<Setter Property="FontWeight" Value="{Binding ElementName=PIPPO, Path=FontWeightHeader}"/>
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundDataGridRow}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundDataGridRow}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridRow}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridRow}"/>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridCell}" />
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridCell}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#484D55"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#484D55"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding sName}" IsReadOnly="True" Width="2*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaterialMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MinThickness}"
Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MinThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MaxThickness}"
Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaxThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding sName}" IsReadOnly="True" Width="2*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaterialMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MinThickness}" Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MinThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MaxThickness}" Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaxThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid.Columns>
</DataGrid>
</DataGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Background="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"
BorderThickness="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"
VerticalContentAlignment="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"
Height="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"
Width="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
</Grid>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
</StackPanel>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
</Grid>
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
</GroupBox.Header>
<StackPanel Grid.Column="1">
<Grid Grid.Column="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>
<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>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=FeedEnabled}" />
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<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}" />
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Background="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"
BorderThickness="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"
VerticalContentAlignment="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"
Height="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"
Width="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="2"
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=StartFeedChecked}"
AutoToolParamEnabled="{Binding Path=StartFeedEnabled}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<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>
</GroupBox>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource MachToolGroupBoxStyle_Margin}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
</StackPanel>
</Grid>
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}" Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
</GroupBox.Header>
<Grid Grid.Column="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>
</GroupBox>
</StackPanel>
</Grid>
</UserControl>
+445 -461
View File
@@ -5,284 +5,275 @@
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundChxTxBl}"/>
</Style>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundChxTxBl}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<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 Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SubTypeTxBl}"
ParamCmBxList="{Binding Path=SubTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding GenericGpBxLbl}">
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<EgtWPFLib5:CheckParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SubTypeTxBl}"
ParamCmBxList="{Binding Path=SubTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding StepGpBxLbl}">
<UniformGrid Columns="2">
<Rectangle/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
<Rectangle/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding GenericGpBxLbl}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding AddLenGpBxLbl}">
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartAddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding StepGpBxLbl}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndAddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
</UniformGrid>
</GroupBox>
<Rectangle/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding AddLenGpBxLbl}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartAddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndAddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<DataGrid Name="AssociationDataGrid" Style="{DynamicResource DataGridMargin}"
<DataGrid Name="AssociationDataGrid" Style="{DynamicResource DataGridMargin}"
ItemsSource="{Binding Path=MaterialList}"
SelectedItem="{Binding Path=SelMaterial, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
IsSynchronizedWithCurrentItem="False"
@@ -301,232 +292,225 @@
HeadersVisibility="{Binding ElementName=PIPPO, Path=HeaderVisibility}"
Background="{Binding ElementName=PIPPO, Path=BackgroundDataGrid}"
BorderBrush="{Binding ElementName=PIPPO, Path=BorderBrushDataGrid}">
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackGroundHeader}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundHeader}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushHeader}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessHeader}"/>
<Setter Property="FontWeight" Value="{Binding ElementName=PIPPO, Path=FontWeightHeader}"/>
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundDataGridRow}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundDataGridRow}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridRow}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridRow}"/>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridCell}" />
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridCell}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#484D55"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#484D55"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackGroundHeader}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundHeader}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushHeader}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessHeader}"/>
<Setter Property="FontWeight" Value="{Binding ElementName=PIPPO, Path=FontWeightHeader}"/>
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundDataGridRow}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundDataGridRow}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridRow}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridRow}"/>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridCell}" />
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridCell}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#484D55"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#484D55"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding sName}" IsReadOnly="True"
Width="2*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaterialMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MinThickness}"
Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MinThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MaxThickness}"
Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaxThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding sName}" IsReadOnly="True" Width="2*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaterialMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MinThickness}" Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MinThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MaxThickness}" Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaxThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid.Columns>
</DataGrid>
</DataGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Background="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"
BorderThickness="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"
VerticalContentAlignment="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"
Height="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"
Width="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
</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" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
</StackPanel>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
</Grid>
<Grid Grid.Column="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>
<StackPanel Grid.Column="1">
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=SpeedEnabled}" />
<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>
<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}" />
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="2"
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=StartFeedChecked}"
AutoToolParamEnabled="{Binding Path=StartFeedEnabled}" />
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Background="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"
BorderThickness="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"
VerticalContentAlignment="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"
Height="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"
Width="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="3"
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=EndFeedChecked}"
AutoToolParamEnabled="{Binding Path=EndFeedEnabled}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="4"
ParamTxBl="{Binding VertFeedTxBl}"
ParamTxBx="{Binding Path=VertFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=VertFeedChecked}"
AutoToolParamEnabled="{Binding Path=VertFeedEnabled}" />
</Grid>
</GroupBox>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OffsetGpBxLbl}">
<UniformGrid Columns="1">
<Grid Grid.Column="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 OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSrChecked}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=SpeedEnabled}" />
</UniformGrid>
</GroupBox>
<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}" />
</StackPanel>
</Grid>
<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}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="4"
ParamTxBl="{Binding VertFeedTxBl}"
ParamTxBx="{Binding Path=VertFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=VertFeedChecked}"
AutoToolParamEnabled="{Binding Path=VertFeedEnabled}" />
</Grid>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OffsetGpBxLbl}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSrChecked}" />
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</UserControl>
+427 -441
View File
@@ -5,270 +5,263 @@
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundChxTxBl}"/>
</Style>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundChxTxBl}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding GenericGpBxLbl}">
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle Grid.Column="1" Grid.Row="1" Visibility="Hidden"/>
<Rectangle/>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding GenericGpBxLbl}">
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding StepGpBxLbl}">
<UniformGrid Columns="2">
<Rectangle Grid.Column="1" Grid.Row="1" Visibility="Hidden"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding StepGpBxLbl}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding AddLenGpBxLbl}">
<UniformGrid Columns="2">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartAddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartAddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndAddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndAddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<DataGrid Name="AssociationDataGrid" Style="{DynamicResource DataGridMargin}"
<DataGrid Name="AssociationDataGrid" Style="{DynamicResource DataGridMargin}"
ItemsSource="{Binding Path=MaterialList}"
SelectedItem="{Binding Path=SelMaterial, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
IsSynchronizedWithCurrentItem="False"
@@ -287,232 +280,225 @@
HeadersVisibility="{Binding ElementName=PIPPO, Path=HeaderVisibility}"
Background="{Binding ElementName=PIPPO, Path=BackgroundDataGrid}"
BorderBrush="{Binding ElementName=PIPPO, Path=BorderBrushDataGrid}">
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackGroundHeader}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundHeader}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushHeader}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessHeader}"/>
<Setter Property="FontWeight" Value="{Binding ElementName=PIPPO, Path=FontWeightHeader}"/>
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundDataGridRow}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundDataGridRow}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridRow}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridRow}"/>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridCell}" />
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridCell}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#484D55"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#484D55"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackGroundHeader}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundHeader}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushHeader}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessHeader}"/>
<Setter Property="FontWeight" Value="{Binding ElementName=PIPPO, Path=FontWeightHeader}"/>
<Setter Property="Margin" Value="3,4.5,1.5,1"/>
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundDataGridRow}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundDataGridRow}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridRow}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridRow}"/>
</Style>
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushDataGridCell}" />
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessDataGridCell}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#484D55"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#484D55"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding sName}" IsReadOnly="True"
Width="2*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaterialMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MinThickness}"
Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MinThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MaxThickness}"
Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaxThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding sName}" IsReadOnly="True" Width="2*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaterialMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MinThickness}" Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MinThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding MaxThickness}" Width="1*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.MaxThicknessMsg, RelativeSource={RelativeSource AncestorType=DataGrid}}" TextWrapping="Wrap"/>
</DataTemplate>
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid.Columns>
</DataGrid>
</DataGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</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 Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Background="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"
BorderThickness="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"
VerticalContentAlignment="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"
Height="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"
Width="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
</Grid>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
</StackPanel>
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
</Grid>
<Grid Grid.Column="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>
<StackPanel Grid.Column="1">
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=FeedEnabled}" />
<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>
<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}" />
<GroupBox Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder_SingleParam}">
<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*"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="2"
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=StartFeedChecked}"
AutoToolParamEnabled="{Binding Path=StartFeedEnabled}" />
<TextBlock Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Background="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"
BorderThickness="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"
VerticalContentAlignment="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"
Height="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"
Width="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
</Grid>
</GroupBox>
<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>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource MachToolGroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<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>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OffsetGpBxLbl}">
<UniformGrid Columns="1">
<GroupBox Grid.Row="0" Grid.Column="0" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSrChecked}"
AutoToolParamEnabled="{Binding Path=OffSrEnabled}" />
<Grid Grid.Column="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 OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSlChecked}"
AutoToolParamEnabled="{Binding Path=OffSlEnabled}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=FeedEnabled}" />
</StackPanel>
</Grid>
<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>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OffsetGpBxLbl}">
<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 Grid.Row="0"
ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSlChecked}"
AutoToolParamEnabled="{Binding Path=OffSlEnabled}" />
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</UserControl>
File diff suppressed because it is too large Load Diff
+350 -370
View File
@@ -4,431 +4,411 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<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 Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SubTypeTxBl}"
ParamCmBxList="{Binding Path=SubTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OverLapTxBl}"
ParamTxBx="{Binding Path=OverLap,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DepthStrTxBl}"
ParamTxBx="{Binding Path=DepthStr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<EgtWPFLib5:CheckParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SubTypeTxBl}"
ParamCmBxList="{Binding Path=SubTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSubType}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ApproxTxBl}"
ParamTxBx="{Binding Path=Approx,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding OverLapTxBl}"
ParamTxBx="{Binding Path=OverLap,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding StepGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding LeadLinkTypeTxBl}"
ParamCmBxList="{Binding Path=LeadLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadLinkType}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ApproxTxBl}"
ParamTxBx="{Binding Path=Approx,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding StepGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideStepTxBl}"
ParamTxBx="{Binding Path=SideStep,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LiTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LeadPerpTxBl}"
ParamTxBx="{Binding Path=LiPerp,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding LeadOutTypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LoTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LeadPerpTxBl}"
ParamTxBx="{Binding Path=LoPerp,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LiTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LeadPerpTxBl}"
ParamTxBx="{Binding Path=LiPerp,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding LeadOutTypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LeadTangTxBl}"
ParamTxBx="{Binding Path=LoTang,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LeadPerpTxBl}"
ParamTxBx="{Binding Path=LoPerp,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<StackPanel Grid.Column="1">
<StackPanel.Resources>
<!--Stile che modifica l'aspetto del messaggio d'errore-->
<DataTemplate DataType="{x:Type ValidationError}">
<TextBlock
<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>
</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>
<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"/>
<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>
<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>
<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="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="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="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>
<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}"></Label>
</GroupBox.Header>
<UniformGrid Columns="1">
<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 Grid.Row="0"
ParamTxBl="{Binding OffSrTxBl}"
ParamTxBx="{Binding Path=OffSr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=OffSrChecked}"
AutoToolParamEnabled="{Binding Path=OffSrEnabled}"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</UserControl>
File diff suppressed because it is too large Load Diff
+282 -297
View File
@@ -4,231 +4,219 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<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>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<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:StringParamV ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ReturnPosTxBl}"
ParamTxBx="{Binding Path=ReturnPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThrouAddLenTxBl}"
ParamTxBx="{Binding Path=ThrouAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartSlowLenTxBl}"
ParamTxBx="{Binding Path=StartSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ReturnPosTxBl}"
ParamTxBx="{Binding Path=ReturnPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndSlowLenTxBl}"
ParamTxBx="{Binding Path=EndSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThrouAddLenTxBl}"
ParamTxBx="{Binding Path=ThrouAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartSlowLenTxBl}"
ParamTxBx="{Binding Path=StartSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndSlowLenTxBl}"
ParamTxBx="{Binding Path=EndSlowLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
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>
<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">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
@@ -236,115 +224,112 @@
</StackPanel>
</Grid>
</Grid>
<StackPanel Grid.Column="1">
<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>
<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>
<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}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Margin="0,3,3,3"/>
<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
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>
<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>
<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="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="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="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}" />
<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>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
</UserControl>
File diff suppressed because it is too large Load Diff
+351 -372
View File
@@ -4,430 +4,409 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<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>
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<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>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
</Grid>
<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}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<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:StringParamV ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:CheckParamV
ParamTxBl="{Binding InvertTxBl}"
ParamChBx="{Binding Path=Invert,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding WorkSideTxBl}"
ParamCmBxList="{Binding Path=WorkSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedWorkSide}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadSideTxBl}"
ParamCmBxList="{Binding Path=HeadSideList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHeadSide}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding GenericGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartPosTxBl}"
ParamTxBx="{Binding Path=StartPos,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding StepTypeTxBl}"
ParamCmBxList="{Binding Path=StepTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedStepType}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StepParTxBl}"
ParamTxBx="{Binding Path=StepPar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding SideAngleTxBl}"
ParamTxBx="{Binding Path=SideAngle,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding OffSlTxBl}"
ParamTxBx="{Binding Path=OffSl,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding AdvancedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding InitAngsTxBl}"
ParamTxBx="{Binding Path=InitAngs,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="1"
ParamTxBl="{Binding BlockedAxisTxBl}"
ParamTxBx="{Binding Path=BlockedAxis,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding SolChoiceTypeTxBl}"
ParamCmBxList="{Binding Path=SolChoiceTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedSolChoiceType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadInTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadInTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadInType}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=StartAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExtLinkTypeTxBl}"
ParamCmBxList="{Binding Path=ExtLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExtLinkType}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding LeadOutTypeGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=LeadOutTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedLeadOutType}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding CurveUseGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding AddLenTxBl}"
ParamTxBx="{Binding Path=EndAddLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=CurveUseList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedCurveUse}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding ApproxTxBl}"
ParamTxBx="{Binding Path=Approx,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExtLinkTypeTxBl}"
ParamCmBxList="{Binding Path=ExtLinkTypeList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExtLinkType}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding CurveUseGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TypeTxBl}"
ParamCmBxList="{Binding Path=CurveUseList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedCurveUse}" />
<EgtWPFLib5:StringParamV Grid.Column="1" Grid.Row="0"
ParamTxBl="{Binding ApproxTxBl}"
ParamTxBx="{Binding Path=Approx,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
<StackPanel Grid.Column="1">
</Grid>
<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>
<StackPanel Grid.Column="1">
<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>
<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>
<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Path=ToolList,
Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Margin="0,3,3,3"/>
<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>
<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>
<TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding ToolTxBl}" Style="{DynamicResource MachiningsToolTextBlock}"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Path=ToolList, Mode=OneWay}"
Style="{DynamicResource MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedTool}"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Type,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"
Margin="0,3,3,3"/>
<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>
<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>
<EgtWPFLib5:StringParamWithButtonV Grid.Row="0"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=FeedEnabled}" />
<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="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="0"
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=FeedChecked}"
AutoToolParamEnabled="{Binding Path=FeedEnabled}" />
<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="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="3"
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=EndFeedChecked}"
AutoToolParamEnabled="{Binding Path=EndFeedEnabled}" />
<EgtWPFLib5:StringParamWithButtonV Grid.Row="2"
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
AutoToolParamChecked="{Binding Path=StartFeedChecked}"
AutoToolParamEnabled="{Binding Path=StartFeedEnabled}" />
</Grid>
</Grid>
</GroupBox>
</StackPanel>
</Grid>
<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>
</StackPanel>
</Grid>
</UserControl>
+16 -16
View File
@@ -1,13 +1,13 @@
<EgtWPFLib5:EgtCustomWindow x:Class="NameDialogV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
Height="130" Width="300" Topmost="True">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
Height="130" Width="300" Topmost="True">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
@@ -16,16 +16,16 @@
<EgtWPFLib5:EgtTextBox Margin="5" Height="24" x:Name="FilePath"
Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
<UniformGrid Columns="2" Grid.Row="1" Margin="0,0,0,5">
<Button IsDefault="True" Name="SaveBtn"
Content="{Binding SaveMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
Content="{Binding SaveMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
<Button IsCancel="True"
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
</UniformGrid>
</Grid>
</EgtWPFLib5:EgtCustomWindow>
+36 -1
View File
@@ -33,16 +33,51 @@
End Set
End Property
Friend m_DescriptionVal As String
Public Property DescriptionVal As String
Get
Return m_DescriptionVal
End Get
Set(value As String)
m_DescriptionVal = value
End Set
End Property
'Comandi
Private m_cmdRemoveNoteItem As ICommand
#End Region ' Fields & Properties
#Region "CONSTRUCTOR"
Sub New(Id As Integer, Type As String, Description As String)
Sub New(Id As Integer, Type As String, Description As String, DescriptionVal As String)
m_Id = Id
m_Type = Type
m_Description = Description
m_DescriptionVal = DescriptionVal
End Sub
#End Region ' Constructor
#Region "COMMANDS"
#Region "RemoveItemNoteCommand"
Public ReadOnly Property RemoveItemNoteCommand As ICommand
Get
If m_cmdRemoveNoteItem Is Nothing Then
m_cmdRemoveNoteItem = New Command(AddressOf RemoveItemNote)
End If
Return m_cmdRemoveNoteItem
End Get
End Property
Public Sub RemoveItemNote(ByVal param As Object)
LibMap.refMachiningTreeViewItem.RemoveNote()
End Sub
#End Region ' RemoveItemNoteCommand
#End Region ' Commands
End Class
+19 -19
View File
@@ -1,36 +1,36 @@
<EgtWPFLib5:EgtCustomWindow x:Class="SaveFileDialogV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
Height="130" Width="300" Topmost="True"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
Height="130" Width="300" Topmost="True"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
<!--<EgtWPFLib5:EgtCustomWindow.Resources>
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
</EgtWPFLib5:EgtCustomWindow.Resources>-->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBox Margin="5" Height="24" x:Name="FilePath"
Text="{Binding WriteFileName, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
Text="{Binding WriteFileName, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
<UniformGrid Columns="2" Grid.Row="1" Margin="0,0,0,5">
<Button IsDefault="True" Name="SaveBtn"
Content="{Binding SaveMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
Content="{Binding SaveMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
<Button IsCancel="True"
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
</UniformGrid>
</Grid>
</EgtWPFLib5:EgtCustomWindow>
@@ -1,45 +1,45 @@
<EgtWPFLib5:EgtCustomWindow x:Class="SaveFileDialogWithListV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
Height="390" Width="300" Topmost="True"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
Height="390" Width="300" Topmost="True"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
<EgtWPFLib5:EgtCustomWindow.Resources>
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
</EgtWPFLib5:EgtCustomWindow.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="4*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
</Grid.RowDefinitions>
<ListBox Grid.Row="0" ItemsSource="{Binding FileList}" Margin="5" Name="FileNameList"
SelectedItem="{Binding SelectedFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource FileNameConverter}}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<ListBox Grid.Row="0" ItemsSource="{Binding FileList}" Margin="5" Name="FileNameList"
SelectedItem="{Binding SelectedFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource FileNameConverter}}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<TextBox Margin="5" Height="24" x:Name="FilePath" Grid.Row="1"
Text="{Binding WriteFileName, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
<TextBox Margin="5" Height="24" x:Name="FilePath" Grid.Row="1"
Text="{Binding WriteFileName, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
<UniformGrid Columns="2" Grid.Row="2" Margin="0,0,0,5">
<Button IsDefault="True" Name="SaveBtn"
Content="{Binding SaveMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
Content="{Binding SaveMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
<Button IsCancel="True"
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
</UniformGrid>
</Grid>
</EgtWPFLib5:EgtCustomWindow>
+5 -5
View File
@@ -1,8 +1,8 @@
<WindowsFormsHost x:Class="SceneHostV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtUILib="clr-namespace:EgtUILib;assembly=EgtUILib">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtUILib="clr-namespace:EgtUILib;assembly=EgtUILib">
<EgtUILib:Scene x:Name="MainScene"/>
</WindowsFormsHost>
+23 -23
View File
@@ -1,13 +1,13 @@
<EgtWPFLib5:EgtCustomWindow x:Class="SetUpWindowV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding TitleMsg}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
CloseCommand="{Binding CloseSetUpCommand, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
Title="{Binding TitleMsg}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
CloseCommand="{Binding CloseSetUpCommand, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}">
<EgtWPFLib5:EgtCustomWindow.Resources>
<Style x:Key="HorizontalScrollViewerItemsControlStyle" TargetType="{x:Type ItemsControl}">
<Setter Property="ItemsPanel">
@@ -43,14 +43,14 @@
<UniformGrid Columns="4">
<Button Content="{Binding ApplyMsg}" Command="{Binding ApplyCommand}"
IsEnabled="{Binding IsEnabledApplyBtn}" Height="30"/>
IsEnabled="{Binding IsEnabledApplyBtn}" Height="30"/>
<Button Content="{Binding ArchiveMsg}" Command="{Binding ArchiveCommand}"/>
<Button Content="{Binding RetrievesMsg}" Command="{Binding RetrievesCommand}"
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"/>
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"/>
<Button Content="{Binding AutomaticMsg}" Command="{Binding AutomaticCommand}"
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"/>
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"/>
</UniformGrid>
<TreeView Grid.Row="1" Name="ToolsTreeView" ItemsSource="{Binding ToolsList}">
<TreeView.ItemContainerStyle>
@@ -105,11 +105,11 @@
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Image Source="{Binding SetUpImage}" MaxWidth="300"/>
<ItemsControl Grid.Column="1" ItemsSource="{Binding PositionGroupList}"
Style="{DynamicResource HorizontalScrollViewerItemsControlStyle}">
Style="{DynamicResource HorizontalScrollViewerItemsControlStyle}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
@@ -134,7 +134,7 @@
<TextBlock Text="{Binding TcPos}"/>
<ItemsControl Grid.Column="1" ItemsSource="{Binding ExitToolAssociationList}"
HorizontalAlignment="Left">
HorizontalAlignment="Left">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<!--<WrapPanel Orientation="Horizontal" MaxWidth="200"/>-->
@@ -150,14 +150,14 @@
</Grid.ColumnDefinitions>
<ToggleButton Content="{Binding ExitPar}" Name="ExitBtn"
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"
IsChecked="{Binding IsOccupied}" Height="25" Width="25" Margin="0,0,5,0"
Command="{Binding SetUpToolCommand}"
IsEnabled="{Binding IsEnabledPos}"
Background="{Binding ExitBtnBackgroundCol}"
Style="{DynamicResource SetUpToggleButton}"/>
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"
IsChecked="{Binding IsOccupied}" Height="25" Width="25" Margin="0,0,5,0"
Command="{Binding SetUpToolCommand}"
IsEnabled="{Binding IsEnabledPos}"
Background="{Binding ExitBtnBackgroundCol}"
Style="{DynamicResource SetUpToggleButton}"/>
<Border x:Name="ToolBorder" Grid.Column="1" BorderBrush="{DynamicResource EgaltechBlue1}"
BorderThickness="1" ToolTip="{Binding ToolTipMsg}">
BorderThickness="1" ToolTip="{Binding ToolTipMsg}">
<Border.Style>
<Style TargetType="{x:Type Border}">
<Setter Property="Visibility" Value="Hidden"/>
+7 -7
View File
@@ -1,7 +1,7 @@
<StatusBar x:Class="StatusBarV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Background="{StaticResource EgaltechBlue1}">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Background="{StaticResource EgaltechBlue1}">
<StatusBar.ItemsPanel>
<ItemsPanelTemplate>
@@ -23,7 +23,7 @@
Height="20" Width="150"
Visibility="{Binding LoadingProgress_Visibility}"/>
</StatusBarItem>
<!--Bottone interruzione caricamento-->
<StatusBarItem Grid.Column="1">
<Button x:Name="StopLoadingBtn"
@@ -42,14 +42,14 @@
<TextBlock Text="{Binding OutputMessage}"
Foreground="{Binding OutputMessage_Foreground}"/>
</StatusBarItem>
<!--Indica il tipo di punto notevole selezionato-->
<StatusBarItem Grid.Column="2">
<Button Content="{Binding SnapPointType}"
Background="{Binding SnapPointType_Background}"
Width="80"/>
</StatusBarItem>
<!--Indica la posizione del mouse quando è sulla scena-->
<StatusBarItem Grid.Column="3">
<TextBlock Text="{Binding CurrPos}"
@@ -57,7 +57,7 @@
Foreground="{StaticResource EgaltechWhite}"
Width="250"/>
</StatusBarItem>
<!--Indica l'unità di misura-->
<StatusBarItem Grid.Column="4">
<TextBlock Text="{Binding MeasureUnit}"
+157 -156
View File
@@ -1,171 +1,172 @@
<UserControl x:Class="StringParamV"
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">
<!--x:Name="Self">-->
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">
<!--x:Name="Self">-->
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<!--Visibility="{Binding ParamVisibility, ElementName=Self,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">-->
<Grid Style="{DynamicResource Param_GpBxHeaderAlignment}">
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<!--Visibility="{Binding ParamVisibility, ElementName=Self,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">-->
<Grid Style="{DynamicResource Param_GpBxHeaderAlignment}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Grid.Resources>
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Invert">0</sys:Int32>
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
<sys:Int32 x:Key="StepType">8</sys:Int32>
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
<sys:Int32 x:Key="Speed">10</sys:Int32>
<sys:Int32 x:Key="Feed">11</sys:Int32>
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
<sys:Int32 x:Key="OffSr">15</sys:Int32>
<sys:Int32 x:Key="OffSl">16</sys:Int32>
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
<sys:Int32 x:Key="Approx">18</sys:Int32>
<sys:Int32 x:Key="StartPos">19</sys:Int32>
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
<sys:Int32 x:Key="StepPar">23</sys:Int32>
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
<sys:Int32 x:Key="TabLen">25</sys:Int32>
<sys:Int32 x:Key="TabDist">26</sys:Int32>
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
<sys:Int32 x:Key="LiTang">29</sys:Int32>
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
<sys:Int32 x:Key="LiElev">31</sys:Int32>
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
<sys:Int32 x:Key="LoTang">33</sys:Int32>
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
<sys:Int32 x:Key="LoElev">35</sys:Int32>
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
<sys:Int32 x:Key="SideStep">41</sys:Int32>
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
<sys:Int32 x:Key="NamePar">43</sys:Int32>
<sys:Int32 x:Key="Tool">44</sys:Int32>
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
<sys:Int32 x:Key="OverLap">47</sys:Int32>
<sys:Int32 x:Key="SubType">49</sys:Int32>
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
<sys:Int32 x:Key="StepBack">55</sys:Int32>
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
<sys:Int32 x:Key="Probing">60</sys:Int32>
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
<sys:Int32 x:Key="LiHole">67</sys:Int32>
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
</Grid.Resources>
<TextBlock Text="{Binding ParamTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<EgtWPFLib5:EgtTextBox x:Name="TextValue" Grid.Column="1"
BorderBrushIsMouseOver="{Binding BorderBrushIsMouseOver,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBorderBrush="{Binding GeneralBorderBrush,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BorderBrushIsFocused="{Binding BorderBrushIsFocused,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdEnable="{Binding BackgroundBrdEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdDisable="{Binding BackgroundBrdDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundTxBlDisable="{Binding BackgroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlEnable="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlDisable="{Binding ForegroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralForeground="{Binding GeneralForeground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBackground="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ParamTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<EgtWPFLib5:EgtTextBox x:Name="TextValue" Grid.Column="1"
BorderBrushIsMouseOver="{Binding BorderBrushIsMouseOver,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBorderBrush="{Binding GeneralBorderBrush,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BorderBrushIsFocused="{Binding BorderBrushIsFocused,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdEnable="{Binding BackgroundBrdEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdDisable="{Binding BackgroundBrdDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundTxBlDisable="{Binding BackgroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlEnable="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlDisable="{Binding ForegroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralForeground="{Binding GeneralForeground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBackground="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Text="{Binding ParamTxBx,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" Margin="0,3,3,3"
IsReadOnly="{Binding IsParamReadOnly,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}}}"/>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}}}"
Visibility="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,0,3"/>
<!--Visibility="{Binding Path=SelectedItem.SpeedErrorMsg, ElementName=MachiningsTreeView,
Text="{Binding ParamTxBx,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" Margin="0,3,3,3"
IsReadOnly="{Binding IsParamReadOnly,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}}}"/>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}}}"
Visibility="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Converter={StaticResource ErrorVisibilityConverter}}"
Margin="0,0,0,3"/>
<!--Visibility="{Binding Path=SelectedItem.SpeedErrorMsg, ElementName=MachiningsTreeView,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>-->
<!--Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
<!--Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Path=ParamErrorMsgVisibility,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>-->
<!--<TextBlock x:Name="ParamMsg" Style="{DynamicResource MachiningsToolTextBlock}"/>
<!--<TextBlock x:Name="ParamMsg" Style="{DynamicResource MachiningsToolTextBlock}"/>
<EgtWPFLib5:EgtTextBox x:Name="ParamValue" Grid.Column="1" Style="{DynamicResource MachiningsToolTextBox}"
/>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{StaticResource ValidationErrorTextBlock}"
@@ -173,6 +174,6 @@
Visibility="{Binding Path=SelectedItem.SpeedErrorMsg, ElementName=MachiningsTreeView,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>-->
</Grid>
</Grid>
</UserControl>
+65 -63
View File
@@ -1,9 +1,9 @@
<UserControl x:Class="StringParamWithButtonV"
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"
xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
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"
xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
<!--x:Name="Self">-->
<UserControl.Resources>
@@ -30,17 +30,17 @@
<Style x:Key="ToggleButtonStyleManage" TargetType="{x:Type ToggleButton}">
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
<Setter Property="Background" Value="{Binding BackgroundIsChecked,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="BorderBrush" Value="{Binding BorderBrushIsChecked,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="BorderThickness" Value="{Binding BorderThicknessIsChecked,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="Foreground" Value="{Binding ForegroundIsChecked,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
@@ -53,8 +53,8 @@
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Opacity" Value="{Binding OpacityIsChecked,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
@@ -155,12 +155,12 @@
</Grid.RowDefinitions>
<TextBlock Text="{Binding ParamTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{Binding ForegroundParamBtnTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{Binding ForegroundParamBtnTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
@@ -170,58 +170,60 @@
<EgtWPFLib5:EgtTextBox x:Name="TextValue" Grid.Column="0"
BorderBrushIsMouseOver="{Binding BorderBrushIsMouseOver,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBorderBrush="{Binding GeneralBorderBrush,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BorderBrushIsFocused="{Binding BorderBrushIsFocused,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdEnable="{Binding BackgroundBrdEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdDisable="{Binding BackgroundBrdDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundTxBlDisable="{Binding BackgroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlEnable="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlDisable="{Binding ForegroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralForeground="{Binding GeneralForeground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBackground="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BorderBrushIsMouseOver="{Binding BorderBrushIsMouseOver,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBorderBrush="{Binding GeneralBorderBrush,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BorderBrushIsFocused="{Binding BorderBrushIsFocused,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdEnable="{Binding BackgroundBrdEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdDisable="{Binding BackgroundBrdDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundTxBlDisable="{Binding BackgroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlEnable="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlDisable="{Binding ForegroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralForeground="{Binding GeneralForeground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBackground="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Text="{Binding ParamTxBx,
Text="{Binding ParamTxBx,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" Margin="0,3,3,3"/>
UpdateSourceTrigger=PropertyChanged}"
Margin="0,3,3,3"/>
<ToggleButton Style="{DynamicResource ToggleButtonStyleManage}" Grid.Column="1" Margin="0,3,3,3" Content="A" Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
IsChecked="{Binding AutoToolParamChecked,
Mode=TwoWay,
RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}}}"
IsEnabled="{Binding AutoToolParamEnabled,
Mode=TwoWay,
RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}}}"/>
Mode=TwoWay,
RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}}}"
IsEnabled="{Binding AutoToolParamEnabled,
Mode=TwoWay,
RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}}}"
Visibility="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,0,3"/>
Text="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}}}"
Visibility="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamWithButtonV}},
Converter={StaticResource ErrorVisibilityConverter}}"
Margin="0,0,0,3"/>
<!--Visibility="{Binding Path=SelectedItem.SpeedErrorMsg, ElementName=MachiningsTreeView,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>-->
+925 -947
View File
File diff suppressed because it is too large Load Diff
+294 -318
View File
@@ -4,373 +4,349 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</Grid.Resources>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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>
<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}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}"
Margin="0,0,5,0"/>
</Grid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
<Grid Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
</Grid>
</Grid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"/>
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
</UniformGrid>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}"/>
</UniformGrid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}"/>
</UniformGrid>
</Grid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StemDiamTxBl}"
ParamTxBx="{Binding Path=StemDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=StemDiamErrorMsg}"/>
</UniformGrid>
<UniformGrid Grid.Row="1" Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CornRadTxBl}"
ParamTxBx="{Binding Path=CornRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=CornRadErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}"/>
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StemDiamTxBl}"
ParamTxBx="{Binding Path=StemDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=StemDiamErrorMsg}"/>
</UniformGrid>
<UniformGrid Grid.Row="1" Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideAngTxBl}"
ParamTxBx="{Binding Path=SideAng,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CornRadTxBl}"
ParamTxBx="{Binding Path=CornRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=CornRadErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideAngTxBl}"
ParamTxBx="{Binding Path=SideAng,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
</UniformGrid>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+250 -268
View File
@@ -4,315 +4,297 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</Grid.Resources>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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>
<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}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
</Grid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
<StackPanel Grid.Column="0" Grid.Row="1">
<Grid Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</Grid>
</Grid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
<Rectangle/>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
</UniformGrid>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+3 -3
View File
@@ -41,9 +41,9 @@
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
<CheckBox Name="ActiveTxBx" Grid.Column="0" Height="15" Width="15" Margin="-15,0,5,0" VerticalContentAlignment="Center"
IsChecked="{Binding Active}"
Visibility="{Binding Path=DataContext.Active_Visibility,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
IsChecked="{Binding Active}"
Visibility="{Binding Path=DataContext.Active_Visibility,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
</Grid>
+288 -312
View File
@@ -4,372 +4,348 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
<sys:Int32 x:Key="Dist">26</sys:Int32>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
<sys:Int32 x:Key="Dist">26</sys:Int32>
</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>
<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}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
</Grid>
</Grid>
</GroupBox>
<Grid Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
</Grid>
</Grid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DistTxBl}"
ParamTxBx="{Binding Path=Dist,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DistErrorMsg}" />
</UniformGrid>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2">
</UniformGrid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DistTxBl}"
ParamTxBx="{Binding Path=Dist,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DistErrorMsg}" />
</UniformGrid>
</UniformGrid>
</Grid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CornRadTxBl}"
ParamTxBx="{Binding Path=CornRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=CornRadErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CornRadTxBl}"
ParamTxBx="{Binding Path=CornRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=CornRadErrorMsg}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
</UniformGrid>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+355 -371
View File
@@ -5,425 +5,409 @@
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundChColor}"/>
</Style>
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
<Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Manage_ButtonStyle" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5,3,0,0"/>
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundButton}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundButton}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushButton}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessButton}"/>
</Style>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundChColor}"/>
</Style>
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
<Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Manage_ButtonStyle" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5,3,0,0"/>
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundButton}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundButton}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushButton}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessButton}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</Grid.Resources>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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>
<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}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource Manage_ButtonStyle}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource Manage_ButtonStyle}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
</Grid>
</Grid>
</GroupBox>
<Grid Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Text="{Binding DrawTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource Manage_ButtonStyle}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource Manage_ButtonStyle}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding SpeedGpBxLbl}">
</Grid>
</Grid>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding SpeedGpBxLbl}">
<UniformGrid Columns="2">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
</UniformGrid>
</Grid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
<UniformGrid Columns="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding CoolantTxBl}"
ParamCmBxList="{Binding Path=CoolantList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelCoolant}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding CoolantTxBl}"
ParamCmBxList="{Binding Path=CoolantList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelCoolant}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
</UniformGrid>
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<Rectangle/>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<UniformGrid Columns="2">
</UniformGrid>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MinFeedTxBl}"
ParamTxBx="{Binding Path=MinFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MaxAbsorptionTxBl}"
ParamTxBx="{Binding Path=MaxAbsorption,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<Rectangle/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}" Visibility="{Binding SysNotes_Visibility}">
<UniformGrid Columns="1">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MinFeedTxBl}"
ParamTxBx="{Binding Path=MinFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MaxAbsorptionTxBl}"
ParamTxBx="{Binding Path=MaxAbsorption,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}" Visibility="{Binding SysNotes_Visibility}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+412 -430
View File
@@ -5,476 +5,458 @@
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundChColor}"/>
</Style>
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
<Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="DataGridTemplate1" TargetType="{x:Type DataGrid}">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
<ScrollViewer.Template>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button Command="{x:Static DataGrid.SelectAllCommand}" Focusable="false" Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}}" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" Grid.ColumnSpan="2" Grid.Row="1"/>
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" Grid.Row="1" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
<Grid Grid.Column="1" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
</Grid>
</Grid>
</ControlTemplate>
</ScrollViewer.Template>
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>
</Border>
</ControlTemplate>
<Style x:Key="Manage_ButtonStyle" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5,3,0,0"/>
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundButton}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundButton}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushButton}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessButton}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource Manage_ButtonStyle}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource Manage_ButtonStyle}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundChColor}"/>
</Style>
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
<Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="DataGridTemplate1" TargetType="{x:Type DataGrid}">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
<ScrollViewer.Template>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button Command="{x:Static DataGrid.SelectAllCommand}" Focusable="false" Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}}" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" Grid.ColumnSpan="2" Grid.Row="1"/>
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" Grid.Row="1" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
<Grid Grid.Column="1" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
</Grid>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
</ControlTemplate>
</ScrollViewer.Template>
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>
</Border>
</ControlTemplate>
<Style x:Key="Manage_ButtonStyle" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5,3,0,0"/>
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundButton}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundButton}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushButton}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessButton}"/>
</Style>
</Grid>
</Grid>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource Manage_ButtonStyle}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource Manage_ButtonStyle}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
</Grid>
</Grid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding SpeedGpBxLbl}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding SpeedGpBxLbl}">
<UniformGrid Columns="2">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<UniformGrid Columns="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding CoolantTxBl}"
ParamCmBxList="{Binding Path=CoolantList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelCoolant}"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OffsetGpBxLbl}">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding CoolantTxBl}"
ParamCmBxList="{Binding Path=CoolantList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelCoolant}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OffsetGpBxLbl}">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<Rectangle/>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<UniformGrid Columns="2">
</UniformGrid>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MaxAbsorptionTxBl}"
ParamTxBx="{Binding Path=MaxAbsorption,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MinFeedTxBl}"
ParamTxBx="{Binding Path=MinFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<Rectangle/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}" Visibility="{Binding SysNotes_Visibility}">
<UniformGrid Columns="1">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MaxAbsorptionTxBl}"
ParamTxBx="{Binding Path=MaxAbsorption,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MinFeedTxBl}"
ParamTxBx="{Binding Path=MinFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}" Visibility="{Binding SysNotes_Visibility}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+416 -435
View File
@@ -5,481 +5,462 @@
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundChColor}"/>
</Style>
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
<Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="DataGridTemplate1" TargetType="{x:Type DataGrid}">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
<ScrollViewer.Template>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button Command="{x:Static DataGrid.SelectAllCommand}" Focusable="false" Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}}" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" Grid.ColumnSpan="2" Grid.Row="1"/>
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" Grid.Row="1" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
<Grid Grid.Column="1" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
</Grid>
</Grid>
</ControlTemplate>
</ScrollViewer.Template>
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>
</Border>
</ControlTemplate>
<Style x:Key="Manage_ButtonStyle" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5,3,0,0"/>
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundButton}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundButton}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushButton}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessButton}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource Manage_ButtonStyle}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource Manage_ButtonStyle}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundChColor}"/>
</Style>
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
<Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="DataGridTemplate1" TargetType="{x:Type DataGrid}">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
<ScrollViewer.Template>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button Command="{x:Static DataGrid.SelectAllCommand}" Focusable="false" Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}}" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" Grid.ColumnSpan="2" Grid.Row="1"/>
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" Grid.Row="1" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
<Grid Grid.Column="1" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
</Grid>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
</ControlTemplate>
</ScrollViewer.Template>
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>
</Border>
</ControlTemplate>
<Style x:Key="Manage_ButtonStyle" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5,3,0,0"/>
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundButton}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundButton}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushButton}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessButton}"/>
</Style>
</Grid>
</Grid>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource Manage_ButtonStyle}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource Manage_ButtonStyle}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
</Grid>
</Grid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding SpeedGpBxLbl}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"/>
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding SpeedGpBxLbl}">
<UniformGrid Columns="2">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}"/>
</UniformGrid>
</Grid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding CoolantTxBl}"
ParamCmBxList="{Binding Path=CoolantList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelCoolant}"/>
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}"/>
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OffsetGpBxLbl}">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV Grid.Column="1" Grid.Row="1"
ParamTxBl="{Binding CoolantTxBl}"
ParamCmBxList="{Binding Path=CoolantList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelCoolant}"/>
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OffsetGpBxLbl}">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}" />
<Rectangle/>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<UniformGrid Columns="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MaxAbsorptionTxBl}"
ParamTxBx="{Binding Path=MaxAbsorption,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<Rectangle/>
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MinFeedTxBl}"
ParamTxBx="{Binding Path=MinFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}" Visibility="{Binding SysNotes_Visibility}">
<UniformGrid Columns="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MaxAbsorptionTxBl}"
ParamTxBx="{Binding Path=MaxAbsorption,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV Grid.Column="0" Grid.Row="0"
ParamTxBl="{Binding MinFeedTxBl}"
ParamTxBx="{Binding Path=MinFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}" Visibility="{Binding SysNotes_Visibility}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+51 -53
View File
@@ -1,17 +1,17 @@
<EgtWPFLib5:EgtCustomWindow x:Class="ToolDbWindowV"
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"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
CloseCommand="{Binding CloseToolsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
CloseCommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}">
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"
Title="{Binding Title}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
CloseCommand="{Binding CloseToolsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
CloseCommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}">
<EgtWPFLib5:EgtCustomWindow.InputBindings>
<KeyBinding Key="Escape" Command="{Binding ReloadToolCommand}"
CommandParameter="{Binding Path=SelectedItem,ElementName=ToolsTreeView}"/>
CommandParameter="{Binding Path=SelectedItem,ElementName=ToolsTreeView}"/>
</EgtWPFLib5:EgtCustomWindow.InputBindings>
<EgtWPFLib5:EgtCustomWindow.Resources>
@@ -62,63 +62,62 @@
<UniformGrid Grid.Row="0" Columns="3">
<Button Content="{Binding NewMsg}" Command="{Binding NewCommand}"
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}" Height="30"/>
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}" Height="30"/>
<Button Content="{Binding SaveMsg}" Command="{Binding SaveCommand}"
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}" Height="30"/>
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}" Height="30"/>
<Button Content="{Binding RemoveMsg}" Command="{Binding RemoveCommand}"
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}" Height="30"/>
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}" Height="30"/>
</UniformGrid>
<TreeView Name="ToolsTreeView" Grid.Row="1"
ItemsSource="{Binding ToolsList}">
<TreeView Name="ToolsTreeView" Grid.Row="1" ItemsSource="{Binding ToolsList}">
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
<Setter Property="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
</Style>
</TreeView.ItemContainerStyle>
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
<Setter Property="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
</Style>
</TreeView.ItemContainerStyle>
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyToolTreeViewItem}" ItemsSource="{Binding Items}">
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyToolTreeViewItem}" ItemsSource="{Binding Items}">
<Grid Height="20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid Height="20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Source="{Binding PictureString}" Height="20" Width="20" Margin="0,0,5,0" />
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
</Grid>
</Grid>
</HierarchicalDataTemplate>
</HierarchicalDataTemplate>
<DataTemplate DataType="{x:Type EgtWPFLib5:ToolTreeViewItem}">
<Grid Height="20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<DataTemplate DataType="{x:Type EgtWPFLib5:ToolTreeViewItem}">
<Grid Height="20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
<CheckBox Name="ActiveTxBx" Grid.Column="0" Height="15" Width="15" Margin="-15,0,5,0" VerticalContentAlignment="Center"
IsChecked="{Binding Active}"
Visibility="{Binding Path=DataContext.Active_Visibility,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
<TextBlock Grid.Column="1" Text="{Binding NamePar}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
<CheckBox Name="ActiveTxBx" Grid.Column="0" Height="15" Width="15" Margin="-15,0,5,0" VerticalContentAlignment="Center"
IsChecked="{Binding Active}"
Visibility="{Binding Path=DataContext.Active_Visibility,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
<TextBlock Grid.Column="1" Text="{Binding NamePar}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
</Grid>
</DataTemplate>
</Grid>
</DataTemplate>
</TreeView.Resources>
</TreeView.Resources>
</TreeView>
</TreeView>
<UniformGrid Grid.Row="2" Columns="3">
<Button Content="{Binding ImportMsg}"
@@ -137,10 +136,9 @@
</Grid>
<ContentControl Content="{Binding Path=ParamPageV}" Grid.Column="1"/>
<!--ContentControl che ospita la scena restituita sotto forma di WindowsFormsHost-->
<!--ContentControl che ospita la scena restituita sotto forma di WindowsFormsHost-->
<ContentControl Content="{Binding ToolSceneHost}" Grid.Column="2"/>
</Grid>
+364 -378
View File
@@ -5,415 +5,401 @@
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
x:Name="PIPPO">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundChColor}"/>
</Style>
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
<Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="DataGridTemplate1" TargetType="{x:Type DataGrid}">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
<ScrollViewer.Template>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button Command="{x:Static DataGrid.SelectAllCommand}" Focusable="false" Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}}" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" Grid.ColumnSpan="2" Grid.Row="1"/>
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" Grid.Row="1" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
<Grid Grid.Column="1" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
</Grid>
</Grid>
</ControlTemplate>
</ScrollViewer.Template>
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>
</Border>
</ControlTemplate>
<Style x:Key="Manage_ButtonStyle" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5,3,0,0"/>
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundButton}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundButton}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushButton}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessButton}"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource Manage_ButtonStyle}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource Manage_ButtonStyle}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<!--Recupero il colore delle textblock dal controllo StoneSawingParamPageV-->
<Style TargetType="{x:Type EgtWPFLib5:ComboParamV}">
<Setter Property="ForegroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundCmBxTxBl}"/>
<Setter Property="BackgroundCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundCmBxTxBl}"/>
<Setter Property="BorderThicknessCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderThicknessCmBxTxBl}"/>
<Setter Property="BorderBrushCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BorderBrushCmBxTxBl}"/>
<Setter Property="VerticalContentAlignmentCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=VerticalContentAlignmentCmBxTxBl}"/>
<Setter Property="HeightCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=HeightCmBxTxBl}"/>
<Setter Property="WidthCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=WidthCmBxTxBl}"/>
<Setter Property="ForegroundTextBoxCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=ForegroundTextBoxCmBxTxBl}"/>
<Setter Property="BackgroundListCmBxTxBl" Value="{Binding ElementName=PIPPO, Path=BackgroundListCmBxTxBl}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamV}">
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:StringParamWithButtonV}">
<Setter Property="ForegroundParamBtnTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"/>
<Setter Property="BorderBrushIsMouseOver" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsMouseOver}"/>
<Setter Property="GeneralBorderBrush" Value="{Binding ElementName=PIPPO, Path=GeneralBorderBrush}"/>
<Setter Property="BorderBrushIsFocused" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsFocused}"/>
<Setter Property="BackgroundBrdEnable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdEnable}"/>
<Setter Property="BackgroundBrdDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundBrdDisable}"/>
<Setter Property="BackgroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=BackgroundTxBlDisable}"/>
<Setter Property="ForegroundTxBlEnable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlEnable}"/>
<Setter Property="ForegroundTxBlDisable" Value="{Binding ElementName=PIPPO, Path=ForegroundTxBlDisable}"/>
<Setter Property="GeneralForeground" Value="{Binding ElementName=PIPPO, Path=GeneralForeground}"/>
<Setter Property="GeneralBackground" Value="{Binding ElementName=PIPPO, Path=GeneralBackground}"/>
<Setter Property="BackgroundIsChecked" Value="{Binding ElementName=PIPPO, Path=BackgroundIsChecked}"/>
<Setter Property="ForegroundIsChecked" Value="{Binding ElementName=PIPPO, Path=ForegroundIsChecked}"/>
<Setter Property="BorderBrushIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderBrushIsChecked}"/>
<Setter Property="BorderThicknessIsChecked" Value="{Binding ElementName=PIPPO, Path=BorderThicknessIsChecked}"/>
<Setter Property="OpacityIsChecked" Value="{Binding ElementName=PIPPO, Path=OpacityIsChecked}"/>
</Style>
<Style TargetType="{x:Type EgtWPFLib5:CheckParamV}">
<Setter Property="ForegroundChxTxBl" Value="{Binding ElementName=PIPPO, Path=MyForegroundChColor}"/>
</Style>
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
<Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="DataGridTemplate1" TargetType="{x:Type DataGrid}">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
<ScrollViewer.Template>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button Command="{x:Static DataGrid.SelectAllCommand}" Focusable="false" Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}}" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" Grid.ColumnSpan="2" Grid.Row="1"/>
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" Grid.Row="1" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
<Grid Grid.Column="1" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
</Grid>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
</ControlTemplate>
</ScrollViewer.Template>
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>
</Border>
</ControlTemplate>
<Style x:Key="Manage_ButtonStyle" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5,3,0,0"/>
<Setter Property="Background" Value="{Binding ElementName=PIPPO, Path=BackgroundButton}"/>
<Setter Property="Foreground" Value="{Binding ElementName=PIPPO, Path=ForegroundButton}"/>
<Setter Property="BorderBrush" Value="{Binding ElementName=PIPPO, Path=BorderBrushButton}"/>
<Setter Property="BorderThickness" Value="{Binding ElementName=PIPPO, Path=BorderThicknessButton}"/>
</Style>
</Grid>
</Grid>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource Manage_ButtonStyle}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource Manage_ButtonStyle}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
</Grid>
</Grid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding FeedGpBxLbl}">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
</UniformGrid>
</Grid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
</UniformGrid>
</GroupBox>
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OvertableGpBxLbl}">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}"
Header="{Binding OvertableGpBxLbl}">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<UniformGrid Columns="2">
</UniformGrid>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_NoHeader}"
Foreground="{Binding ElementName=PIPPO, Path=MyForegroundGrbColor}"
BorderThickness="{Binding ElementName=PIPPO, Path=MyBorderGrbThickness}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<Rectangle/>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}" Visibility="{Binding SysNotes_Visibility}">
<UniformGrid Columns="1">
</UniformGrid>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<Rectangle/>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder_SingleParam}" Visibility="{Binding SysNotes_Visibility}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
</GroupBox>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+251 -269
View File
@@ -4,313 +4,295 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</Grid.Resources>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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>
<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}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
</Grid>
</Grid>
</GroupBox>
<Grid Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
</Grid>
</Grid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"/>
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}"/>
</UniformGrid>
</UniformGrid>
</Grid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}"/>
</UniformGrid>
</GroupBox>
</UniformGrid>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}"/>
</UniformGrid>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
@@ -318,7 +300,7 @@
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+292 -317
View File
@@ -4,373 +4,348 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</Grid.Resources>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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>
<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}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
</Grid>
</Grid>
</GroupBox>
<Grid Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</Grid>
</Grid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"/>
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
</UniformGrid>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}"/>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}"/>
</UniformGrid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}"/>
</UniformGrid>
</Grid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StemDiamTxBl}"
ParamTxBx="{Binding Path=StemDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=StemDiamErrorMsg}"/>
</UniformGrid>
<UniformGrid Grid.Row="1" Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CornRadTxBl}"
ParamTxBx="{Binding Path=CornRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=CornRadErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}"/>
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StemDiamTxBl}"
ParamTxBx="{Binding Path=StemDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=StemDiamErrorMsg}"/>
</UniformGrid>
<UniformGrid Grid.Row="1" Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SideAngTxBl}"
ParamTxBx="{Binding Path=SideAng,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CornRadTxBl}"
ParamTxBx="{Binding Path=CornRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=CornRadErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SideAngTxBl}"
ParamTxBx="{Binding Path=SideAng,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
</UniformGrid>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+275 -297
View File
@@ -4,343 +4,321 @@
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>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/EgtWPFLib5;component/EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</Grid.Resources>
<Grid.Resources>
<EgtWPFLib5:ToolParamVisibilityConverter x:Key="ToolParamVisibilityConverter"/>
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
<sys:Int32 x:Key="Corr">0</sys:Int32>
<sys:Int32 x:Key="ExitPar">1</sys:Int32>
<sys:Int32 x:Key="Coolant">2</sys:Int32>
<sys:Int32 x:Key="CornRad">3</sys:Int32>
<sys:Int32 x:Key="Diam">4</sys:Int32>
<sys:Int32 x:Key="TotDiam">5</sys:Int32>
<sys:Int32 x:Key="Feed">6</sys:Int32>
<sys:Int32 x:Key="EndFeed">7</sys:Int32>
<sys:Int32 x:Key="StartFeed">8</sys:Int32>
<sys:Int32 x:Key="TipFeed">9</sys:Int32>
<sys:Int32 x:Key="Len">10</sys:Int32>
<sys:Int32 x:Key="TotLen">11</sys:Int32>
<sys:Int32 x:Key="MaxMat">12</sys:Int32>
<sys:Int32 x:Key="LonOffset">13</sys:Int32>
<sys:Int32 x:Key="RadOffset">14</sys:Int32>
<sys:Int32 x:Key="Speed">15</sys:Int32>
<sys:Int32 x:Key="SideAng">16</sys:Int32>
<sys:Int32 x:Key="MaxSpeed">17</sys:Int32>
<sys:Int32 x:Key="Thick">18</sys:Int32>
<sys:Int32 x:Key="MaxAbsorption">19</sys:Int32>
<sys:Int32 x:Key="MinFeed">20</sys:Int32>
<sys:Int32 x:Key="Draw">21</sys:Int32>
<sys:Int32 x:Key="Head">22</sys:Int32>
<sys:Int32 x:Key="NamePar">23</sys:Int32>
<sys:Int32 x:Key="UserNotes">24</sys:Int32>
<sys:Int32 x:Key="TcPos">25</sys:Int32>
</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>
<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}">
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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 Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding NameParTxBl}"
ParamTxBx="{Binding Path=NamePar,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=NameErrorMsg}"/>
</Grid>
</Grid>
</GroupBox>
<Grid Grid.Column="1" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="1">
<TextBlock Text="{Binding DrawTxBl}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0.5,1,0.5,0.5" Margin="0,3,0,0" BorderBrush="#FFABAdB3"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}">
<TextBlock Name="DrawTxBx" Grid.Column="0" Margin="3,0,0,0"
VerticalAlignment="Center" Foreground="Gray"
ToolTip="{Binding Path=Draw, UpdateSourceTrigger=PropertyChanged,
Converter={StaticResource ToolDrawUUIDConverter}}"
Text="{Binding Path=Draw,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Converter={StaticResource ToolDrawUUIDConverter}}"/>
</Border>
<Button Grid.Column="1" Style="{DynamicResource AutoDrawButtonMargin}" Content="A"
Command="{Binding Path=AutoDrawCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<Button Grid.Column="2" Style="{DynamicResource OpenDrawFileButtonMargin}" Content=". . ."
Command="{Binding Path=OpenDrawFileCommand}"
Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Visibility="{Binding Path=Type,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
</Grid>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding Path=DrawErrorMsg}"
Visibility="{Binding Path=DrawErrorMsg,
Converter={StaticResource ErrorVisibilityConverter}}" Margin="0,0,5,0"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</Grid>
</Grid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}" />
</UniformGrid>
</GroupBox>
<StackPanel Grid.Column="0" Grid.Row="1">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding SpeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxSpeedTxBl}"
ParamTxBx="{Binding Path=MaxSpeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SpeedTxBl}"
ParamTxBx="{Binding Path=Speed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=SpeedErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding FeedGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding FeedTxBl}"
ParamTxBx="{Binding Path=Feed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TipFeedTxBl}"
ParamTxBx="{Binding Path=TipFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding StartFeedTxBl}"
ParamTxBx="{Binding Path=StartFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding EndFeedTxBl}"
ParamTxBx="{Binding Path=EndFeed,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
</UniformGrid>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotLenTxBl}"
ParamTxBx="{Binding Path=TotLen,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotLenErrorMsg}" />
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LenTxBl}"
ParamTxBx="{Binding Path=Len,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=LenErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
</UniformGrid>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
</UniformGrid>
</Grid>
</GroupBox>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding TotDiamTxBl}"
ParamTxBx="{Binding Path=TotDiam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=TotDiamErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CornRadTxBl}"
ParamTxBx="{Binding Path=CornRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=CornRadErrorMsg}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding DiamTxBl}"
ParamTxBx="{Binding Path=Diam,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=DiamErrorMsg}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding ThickTxBl}"
ParamTxBx="{Binding Path=Thick,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=ThickErrorMsg}" />
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"/>
</GroupBox.Header>
<UniformGrid Columns="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CornRadTxBl}"
ParamTxBx="{Binding Path=CornRad,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=CornRadErrorMsg}" />
<EgtWPFLib5:StringParamV ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding MaxMatTxBl}"
ParamTxBx="{Binding Path=MaxMat,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamErrorMsg="{Binding Path=MaxMatErrorMsg}"/>
</UniformGrid>
</GroupBox>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin}">
<GroupBox.Header>
<Label Content="{Binding OffsetGpBxLbl}"></Label>
</GroupBox.Header>
<UniformGrid Columns="2">
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding RadOffsetTxBl}"
ParamTxBx="{Binding Path=RadOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding LonOffsetTxBl}"
ParamTxBx="{Binding Path=LonOffset,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}"/>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_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*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
</UniformGrid>
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding HeadTxBl}"
ParamCmBxList="{Binding Path=HeadList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedHead}"
ParamDisplayMemberPath="HText"
ParamErrorMsg="{Binding Path=SelectedHeadErrorMsg}"/>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding ExitParTxBl}"
ParamCmBxList="{Binding Path=ExitList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedExit}"
ParamErrorMsg="{Binding Path=SelectedExitErrorMsg}"/>
<EgtWPFLib5:StringParamV ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
</UniformGrid>
<UniformGrid Columns="2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding CorrTxBl}"
ParamTxBx="{Binding Path=Corr,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:ComboParamV
ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<EgtWPFLib5:ComboParamV ParamTxBl="{Binding TcPosTxBl}"
ParamCmBxList="{Binding Path=TcPosList,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
ParamCmBxSelIndex="{Binding Path=SelectedTcPos}" />
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.ColumnSpan="2" Style="{DynamicResource GroupBoxStyle_Margin_NoBorder}">
<UniformGrid Columns="1">
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding UserNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding UserNotesTxBl}"
ParamTxBx="{Binding Path=UserNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}" />
<EgtWPFLib5:StringParamV
ParamTxBl="{Binding SystemNotesTxBl}"
<EgtWPFLib5:StringParamV ParamTxBl="{Binding SystemNotesTxBl}"
ParamTxBx="{Binding Path=SystemNotes,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
Visibility="{Binding SysNotes_Visibility}"
IsParamReadOnly="True"/>
</UniformGrid>
@@ -349,8 +327,8 @@
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
+12
View File
@@ -18,6 +18,7 @@ Public Module LibMap
'Private m_refMoveRawModeVM As MoveRawModeVM
'Private m_refSimulTabVM As SimulTabVM
Private m_refWaterjetDbWindowVM As WaterjetDbWindowVM
Private m_refMachiningTreeViewItem As MachiningTreeViewItem
#Region "Get"
@@ -123,6 +124,12 @@ Public Module LibMap
End Get
End Property
Public ReadOnly Property refMachiningTreeViewItem As MachiningTreeViewItem
Get
Return m_refMachiningTreeViewItem
End Get
End Property
#End Region ' Get
#Region "Set"
@@ -207,6 +214,11 @@ Public Module LibMap
Return Not IsNothing(m_refWaterjetDbWindowVM)
End Function
Public Function SetRefMachiningTreeViewItem(MachiningTreeViewItem As MachiningTreeViewItem) As Boolean
m_refMachiningTreeViewItem = MachiningTreeViewItem
Return Not IsNothing(m_refMachiningTreeViewItem)
End Function
#End Region ' Set
#Region "Init"
+28 -37
View File
@@ -1,14 +1,13 @@
<EgtWPFLib5:EgtCustomWindow x:Class="WaterjetDbWindowV"
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"
Title="{Binding Title_Msg}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
CloseCommand="{Binding CloseWaterjetDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
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"
Title="{Binding Title_Msg}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
CloseCommand="{Binding CloseWaterjetDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
<Grid>
<Grid.RowDefinitions>
@@ -25,25 +24,24 @@
</Grid.ColumnDefinitions>
<ListBox x:Name="MaterialListBox"
ItemsSource="{Binding MaterialList}"
DisplayMemberPath="Name"
SelectedItem="{Binding SelMaterial}"
Grid.Column="0"/>
ItemsSource="{Binding MaterialList}"
DisplayMemberPath="Name"
SelectedItem="{Binding SelMaterial}"
Grid.Column="0"/>
<ListBox x:Name="SubMaterialListBox"
ItemsSource="{Binding Path=SelectedItem.SubMaterialList, ElementName=MaterialListBox}"
DisplayMemberPath="Name"
SelectedItem="{Binding Path=SelectedItem.SelSubMaterial, ElementName=MaterialListBox}"
Grid.Column="1"/>
ItemsSource="{Binding Path=SelectedItem.SubMaterialList, ElementName=MaterialListBox}"
DisplayMemberPath="Name"
SelectedItem="{Binding Path=SelectedItem.SelSubMaterial, ElementName=MaterialListBox}"
Grid.Column="1"/>
<DataGrid ItemsSource="{Binding Path=SelectedItem.ParamList, ElementName=SubMaterialListBox}"
SelectedItem="{Binding Path=SelectedItem.SelWjParam, ElementName=SubMaterialListBox}"
Grid.Column="2"
AutoGenerateColumns="False">
SelectedItem="{Binding Path=SelectedItem.SelWjParam, ElementName=SubMaterialListBox}"
Grid.Column="2"
AutoGenerateColumns="False">
<DataGrid.Columns>
<!--Thickness-->
<DataGridTextColumn Binding="{Binding Thickness}"
Width="*">
<DataGridTextColumn Binding="{Binding Thickness}" Width="*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.Thickness_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
@@ -51,8 +49,7 @@
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<!--Q1-->
<DataGridTextColumn Binding="{Binding Q1}"
Width="*">
<DataGridTextColumn Binding="{Binding Q1}" Width="*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.Q1_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
@@ -60,8 +57,7 @@
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<!--Q2-->
<DataGridTextColumn Binding="{Binding Q2}"
Width="*">
<DataGridTextColumn Binding="{Binding Q2}" Width="*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.Q2_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
@@ -69,8 +65,7 @@
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<!--Q3-->
<DataGridTextColumn Binding="{Binding Q3}"
Width="*">
<DataGridTextColumn Binding="{Binding Q3}" Width="*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.Q3_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
@@ -78,8 +73,7 @@
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<!--Q4-->
<DataGridTextColumn Binding="{Binding Q4}"
Width="*">
<DataGridTextColumn Binding="{Binding Q4}" Width="*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.Q4_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
@@ -87,8 +81,7 @@
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<!--Q5-->
<DataGridTextColumn Binding="{Binding Q5}"
Width="*">
<DataGridTextColumn Binding="{Binding Q5}" Width="*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.Q5_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
@@ -96,8 +89,7 @@
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<!--QExtra-->
<DataGridTextColumn Binding="{Binding QExtra}"
Width="*">
<DataGridTextColumn Binding="{Binding QExtra}" Width="*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.QExtra_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
@@ -105,8 +97,7 @@
</DataGridTextColumn.HeaderTemplate>
</DataGridTextColumn>
<!--AngComp-->
<DataGridTextColumn Binding="{Binding dAngComp}"
Width="*">
<DataGridTextColumn Binding="{Binding dAngComp}" Width="*">
<DataGridTextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataContext.AngComp_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>