ad38e4d3e1
This reverts commit 00a338c202.
430 lines
26 KiB
XML
430 lines
26 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5">
|
|
|
|
<!--Colori predefiniti-->
|
|
<SolidColorBrush x:Key="EgaltechBlue1" Color="#FF4D84C4" />
|
|
<SolidColorBrush x:Key="EgaltechBlue2" Color="#FF7096CE" />
|
|
<SolidColorBrush x:Key="EgaltechBlue3" Color="#FF90ABD9" />
|
|
<SolidColorBrush x:Key="EgaltechBlue4" Color="#FFB2C3E4" />
|
|
<SolidColorBrush x:Key="EgaltechWhite" Color="#FFFFFFFF" />
|
|
<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" />
|
|
|
|
<Thickness x:Key="BorderBtn_Thickness">0.5</Thickness>
|
|
<Thickness x:Key="BorderGpBx_Thickness">1</Thickness>
|
|
<Thickness x:Key="BorderBrd_Thickness">1</Thickness>
|
|
|
|
<!-- Button Style -->
|
|
|
|
<Style x:Key="FocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
|
|
<SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
|
|
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
|
|
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
|
|
<SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
|
|
<SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
|
|
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
|
|
<Style TargetType="{x:Type Button}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
|
<Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="Margin" Value="1"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border x:Name="border" CornerRadius="3" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- EgtOpenFileDialog & EgtSaveFileDialog -->
|
|
|
|
<Style x:Key="EgtWPFLib5_InputButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Width" Value="60"/>
|
|
</Style>
|
|
|
|
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- EgtCustomWindow -->
|
|
|
|
<Style TargetType="{x:Type EgtWPFLib5:EgtCustomWindow}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtCustomWindow}}">
|
|
<Setter Property="TitleBarHeight" Value="32"/>
|
|
<Setter Property="TitleBarBrush" Value="{StaticResource EgaltechBlue2}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource EgaltechBlue2}"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- ItemsControl with Horizontal ScrollViewer -->
|
|
|
|
<Style x:Key="HorizontalScrollViewerItemsControlStyle" TargetType="{x:Type ItemsControl}">
|
|
<Setter Property="ItemsPanel">
|
|
<Setter.Value>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ItemsControl}">
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" >
|
|
<ItemsPresenter/>
|
|
</ScrollViewer>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</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}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="Margin" Value="1"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Border x:Name="border" CornerRadius="3" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="Button.IsDefaulted" Value="true">
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter Property="Background" TargetName="border" Value="{Binding ExitBtnBackgroundCol}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
|
|
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
|
|
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
|
|
<Setter Property="OpacityMask" Value="#54707070"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- 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="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="MachiningsComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<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="MachiningsToolTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
|
|
<Setter Property="Margin" Value="0,0,5,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="ToolsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="Margin" Value="10,0,0,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="ToolsComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<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>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- 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 -->
|
|
|
|
<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 -->
|
|
|
|
<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 -->
|
|
|
|
<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 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 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>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- 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>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- 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>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- 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 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 -->
|
|
|
|
<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>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- 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>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
|
|
<!-- EgtMessageBox -->
|
|
|
|
<Style x:Key="DialogWindow_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
</Style>
|
|
|
|
|
|
</ResourceDictionary>
|