<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer"
                    xmlns:EgtBEAMWALLCore="clr-namespace:EgtBEAMWALL.Core;assembly=EgtBEAMWALL.Core"
                    xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
                    xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5"
                    xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2">

   <!--#region Panel ViewModel-->
   
   <!-- 
   Assign a Key to every Panel ViewModel to use 
   it in xaml file(ProjectView.xaml).
   -->
   <EgtBEAMWALL:MainWindowVM x:Key="MainWindowVM"/>
   <!--<EgtBEAMWALL:MySceneHostVM x:Key="MySceneHostVM"/>-->
   <EgtBEAMWALL:ProjManagerVM x:Key="ProjManagerVM"/>
   <EgtBEAMWALL:ProdManagerVM x:Key="ProdManagerVM"/>
   <EgtBEAMWALL:MainMenuVM x:Key="MainMenuVM"/>
   <EgtBEAMWALL:MyStatusBarVM x:Key="StatusBarVM"/>
   <EgtBEAMWALL:ProjectVM x:Key="ProjectVM"/>
   <EgtWPFLib5:ShowPanelVM x:Key="ShowPanelVM"/>
   <EgtBEAMWALL:ShowBeamPanelVM x:Key="ShowBeamPanelVM"/>
   <EgtBEAMWALLCore:ViewPanelVM x:Key="ViewPanelVM"/>
   <EgtBEAMWALL:MyInstrumentPanelVM x:Key="InstrumentPanelVM"/>
   <EgtBEAMWALL:CALCPanelVM x:Key="CALCPanelVM"/>
   <EgtBEAMWALL:MachinePanelVM x:Key="MachinePanelVM"/>
   <EgtBEAMWALL:PartParametersVM x:Key="PartParametersVM"/>
   <EgtBEAMWALL:LeftPanelVM x:Key="LeftPanelVM"/>
   <EgtBEAMWALL:BottomPanelVM x:Key="BottomPanelVM"/>
   <EgtBEAMWALL:ConfigurationPageVM x:Key="ConfigurationPageVM"/>
   <EgtBEAMWALL:TopPanelVM x:Key="TopPanelVM"/>
   <EgtBEAMWALL:RawPartListVM x:Key="RawPartListVM"/>
   <EgtBEAMWALL:BTLPartListVM x:Key="PartListVM"/>
   <EgtBEAMWALL:FeatureListVM x:Key="FeatureListVM"/>
   <EgtBEAMWALL:PartInRawPartListVM x:Key="PartInRawPartListVM"/>
   <EgtBEAMWALL:FeatureInPartInRawPartListVM x:Key="FeatureInPartInRawPartListVM"/>
   <EgtBEAMWALL:PParameterListVM x:Key="PParameterListVM"/>
   <EgtBEAMWALL:QParameterListVM x:Key="QParameterListVM"/>
   <EgtBEAMWALL:DuploQParameterListVM x:Key="DuploQParameterListVM"/>
   <EgtBEAMWALL:BTLDataWndVM x:Key="BTLDataWndVM"/>
   <EgtBEAMWALL:OptimizePanelVM x:Key="OptimizePanelVM"/>
   <EgtBEAMWALL:FreeContourManagerVM x:Key="FreeContourManagerVM"/>
   <EgtBEAMWALL:FreeContourInputVM x:Key="FreeContourInputVM"/>
   <EgtBEAMWALL:FeatureManagerVM x:Key="FeatureManagerVM"/>
   <EgtBEAMWALL:StatisticsVM x:Key="StatisticsVM"/>
   <EgtBEAMWALL:PartManagerVM x:Key="PartManagerVM"/>
   <EgtBEAMWALL:StatisticsTimePanelVM x:Key="StatisticsTimePanelVM"/>
   <!--<OmagOFFICE:VeinMatchPanelVM x:Key="VeinMatchPanelVM"/>
   <OmagOFFICE:OptionPanelVM x:Key="OptionPanelVM"/>
   <OmagOFFICE:RawPartTabVM x:Key="RawPartTabVM"/>
   <OmagOFFICE:NestingTabVM x:Key="NestingTabVM"/>
   <OmagOFFICE:MachiningTabVM x:Key="MachiningTabVM"/>
   <OmagOFFICE:SimulTabVM x:Key="SimulTabVM"/>-->
   <EgtBEAMWALL:MyMachGroupPanelVM x:Key="MachGroupPanelVM"/>
   <EgtBEAMWALL:OnlyProdManagerVM x:Key="OnlyProdManagerVM"/>
   <EgtBEAMWALL:PartParametersVM x:Key="PartParametersWndVM"/>
   <EgtBEAMWALL:BTLPartManagerVM x:Key="BTLPartManagerVM"/>
   <EgtBEAMWALL:FeatureListManagerVM x:Key="FeatureListManagerVM"/>
   <EgtBEAMWALL:RawPartManagerVM x:Key="RawPartManagerVM"/>
   <EgtBEAMWALL:PartInRawPartManagerVM x:Key="PartInRawPartManagerVM"/>
   <EgtBEAMWALL:ProdProjManagerVM x:Key="ProdProjManagerVM"/>
   <EgtBEAMWALL:ProjWndVM x:Key="ProjWndVM"/>
   <EgtBEAMWALL:SpecialPanelVM x:Key="SpecialPanelVM"/>

   <!--#endregion Panel ViewModel-->
   
   <!--#region Colori predefiniti-->
   
   <SolidColorBrush x:Key="Omag_Blue" Color="#FF095CA8" />
   <SolidColorBrush x:Key="Omag_Yellow" Color="#FFFFCE5B" />
   <SolidColorBrush x:Key="Omag_Red" Color="Red" />
   <SolidColorBrush x:Key="Omag_Green" Color="LawnGreen" />
   <SolidColorBrush x:Key="Omag_VeryLightGray" Color="#FFF2F2F2" />
   <SolidColorBrush x:Key="Omag_LightGray" Color="LightGray" />
   <SolidColorBrush x:Key="Omag_Gray" Color="#FF9E9E9E" />
   <SolidColorBrush x:Key="Omag_DarkGray" Color="#FF444444" />
   <SolidColorBrush x:Key="Omag_White" Color="#FFFFFFFF" />
   <SolidColorBrush x:Key="Omag_Black" Color="#FF000000" />

   <!--#endregion Colori predefiniti-->

   <!--#region Colori Nuova Grafica-->

   <!--#FFFFFF-->
   <Color x:Key="BeamWall_White_Color" R="255" G="255" B="255" A="255"/>
   <SolidColorBrush x:Key="BeamWall_White" Color="{StaticResource BeamWall_White_Color}" />

   <!--#C9DFF0-->
   <Color x:Key="BeamWall_LinkWater_Color" R="201" G="223" B="240" A="255"/>
   <SolidColorBrush x:Key="BeamWall_LinkWater" Color="{StaticResource BeamWall_LinkWater_Color}" />

   <!--#A5C5E1-->
   <Color x:Key="BeamWall_RegentStBlue_Color" R="165" G="197" B="225" A="255"/>
   <SolidColorBrush x:Key="BeamWall_RegentStBlue" Color="{StaticResource BeamWall_RegentStBlue_Color}" />

   <!--#749FC4-->
   <Color x:Key="BeamWall_Glacier_Color" R="116" G="159" B="196" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Glacier" Color="{StaticResource BeamWall_Glacier_Color}" />

   <!--#49678D-->
   <Color x:Key="BeamWall_Kashmir_Color" R="73" G="103" B="141" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Kashmir" Color="{StaticResource BeamWall_Kashmir_Color}" />

   <!--#63CCCC-->
   <Color x:Key="BeamWall_Downy_Color" R="99" G="204" B="204" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Downy" Color="{StaticResource BeamWall_Downy_Color}" />

   <!--#5EC5C4-->
   <Color x:Key="BeamWall_FountainBlue_Color" R="94" G="197" B="196" A="255"/>
   <SolidColorBrush x:Key="BeamWall_FountainBlue" Color="{StaticResource BeamWall_FountainBlue_Color}" />

   <!--#40ADAD-->
   <Color x:Key="BeamWall_Keppel_Color" R="64" G="173" B="173" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Keppel" Color="{StaticResource BeamWall_Keppel_Color}" />

   <!--#488F63-->
   <Color x:Key="BeamWall_FruitSalad_Color" R="72" G="143" B="99" A="255"/>
   <SolidColorBrush x:Key="BeamWall_FruitSalad" Color="{StaticResource BeamWall_FruitSalad_Color}" />

   <!--#009090-->
   <Color x:Key="BeamWall_Teal_Color" R="0" G="144" B="144" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Teal" Color="{StaticResource BeamWall_Teal_Color}" />

   <!--#EAAE2E-->
   <Color x:Key="BeamWall_FuelYellow_Color" R="234" G="174" B="46" A="255"/>
   <SolidColorBrush x:Key="BeamWall_FuelYellow" Color="{StaticResource BeamWall_FuelYellow_Color}" />

   <!--#FFAA42-->
   <Color x:Key="BeamWall_YellowOrange_Color" R="255" G="170" B="66" A="255"/>
   <SolidColorBrush x:Key="BeamWall_YellowOrange" Color="{StaticResource BeamWall_YellowOrange_Color}" />

   <!--#EB720E-->
   <Color x:Key="BeamWall_Christine_Color" R="235" G="114" B="14" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Christine" Color="{StaticResource BeamWall_Christine_Color}" />

   <!--#F48A3F-->
   <Color x:Key="BeamWall_Jaffa_Color" R="244" G="138" B="63" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Jaffa" Color="{StaticResource BeamWall_Jaffa_Color}" />

   <!--#FF9A3C-->
   <Color x:Key="BeamWall_NeonCarrot_Color" R="255" G="154" B="60" A="255"/>
   <SolidColorBrush x:Key="BeamWall_NeonCarrot" Color="{StaticResource BeamWall_NeonCarrot_Color}" />

   <!--#FFB153-->
   <Color x:Key="BeamWall_TexasRose_Color" R="255" G="177" B="83" A="255"/>
   <SolidColorBrush x:Key="BeamWall_TexasRose" Color="{StaticResource BeamWall_TexasRose_Color}" />

   <!--#656666-->
   <Color x:Key="BeamWall_Corduroy_Color" R="101" G="102" B="102" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Corduroy" Color="{StaticResource BeamWall_Corduroy_Color}" />

   <!--#E6E6E6-->
   <Color x:Key="BeamWall_Mercury_Color" R="230" G="230" B="230" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Mercury" Color="{StaticResource BeamWall_Mercury_Color}" />

   <!--#F2F2F2-->
   <Color x:Key="BeamWall_Concrete_Color" R="242" G="242" B="242" A="255"/>
   <SolidColorBrush x:Key="BeamWall_Concrete" Color="{StaticResource BeamWall_Concrete_Color}" />

   <!--#endregion Colori Nuova Grafica-->
   
   <!--#region Colori per EgtWPFLib5-->
   
   <SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
   
   <!--#endregion Colori per EgtWPFLib5-->
   
   <!--#region Colori per TabHeader-->
   
   <!--<LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0,1" StartPoint="0,0">
      <GradientStop Color="#F0F0F0" Offset="0.0"/>
      <GradientStop Color="#E5E5E5" Offset="1.0"/>
   </LinearGradientBrush>-->
   
   <!--Risorsa che toglie le animazioni dai menù popup per evitare che i menù mru di scelta dei file rimangano aperti se il file è grosso -->
   <!--o viene eseguito un lua che non aggiorna l'interfaccia-->
   <PopupAnimation x:Key="{x:Static SystemParameters.MenuPopupAnimationKey}">None</PopupAnimation>

   <!-- ______________________________________________________________________________________________________________________________________________ -->

   <!--#region FocusVisual standard-->
   
   <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>

   <!--#endregion FocusVisual standard-->

   <!-- ______________________________________________________________________________________________________________________________________________ -->

   <!--#region GRAFICA GENERALE-->
   
   <!--#region Button Style-->

   <!--#FFDDDDDD-->
   <SolidColorBrush x:Key="Button.Static.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
   <!--#FF707070-->
   <SolidColorBrush x:Key="Button.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
   <!--#FF000000-->
   <SolidColorBrush x:Key="Button.Static.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
   <!--#FFBEE6FD-->
   <SolidColorBrush x:Key="Button.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#FF3C7FB1-->
   <SolidColorBrush x:Key="Button.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#FFC4E5F6-->
   <SolidColorBrush x:Key="Button.Pressed.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <!--#FF2C628B-->
   <SolidColorBrush x:Key="Button.Pressed.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <!--#FFF4F4F4-->
   <SolidColorBrush x:Key="Button.Disabled.Background" Color="{StaticResource BeamWall_Glacier_Color}" Opacity="0.5"/>
   <!--#FFADB2B5-->
   <SolidColorBrush x:Key="Button.Disabled.Border" Color="{StaticResource BeamWall_Glacier_Color}" Opacity="0.5"/>
   <!--#FF838383-->
   <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="{StaticResource BeamWall_White_Color}" Opacity="0.5"/>
   <Style x:Key="OnlyProd_Button" 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="{StaticResource Button.Static.Foreground}"/>
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="HorizontalContentAlignment" Value="Center"/>
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="Padding" Value="1"/>
      <Setter Property="FontSize" Value="15"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type Button}">
               <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" CornerRadius="2">
                  <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}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion Button Style-->

   <!--#region ToggleButton Style-->

   <Style TargetType="{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="ToolTipService.ShowOnDisabled" Value="True"/>
      <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="{StaticResource Omag_Yellow}"/>
                     <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>

   <!--#endregion ToggleButton Style-->

   <!--#region TextBlock-->

   <Style x:Key="OptionTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="10,5,10,0"/>
   </Style>

   <Style x:Key="ListTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="10,0,10,0"/>
      <Setter Property="FontSize" Value="20"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
   </Style>

   <Style x:Key="MachParamTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Left"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="5,0,5,0"/>
   </Style>

   <Style x:Key="PartParam_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="10,0,10,0"/>
   </Style>

   <Style x:Key="Category_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="Foreground" Value="DarkBlue"/>
      <Setter Property="FontSize" Value="16"/>
      <Setter Property="FontWeight" Value="Bold"/>
   </Style>

   <Style x:Key="Filter_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="2.5,0,2.5,0"/>
   </Style>

   <Style x:Key="OpenWnd_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="Foreground" Value="DarkGray"/>
      <Setter Property="Margin" Value="0,0,20,0"/>
   </Style>

   <!-- TextBlock New Page -->

   <Style x:Key="OptionTextBlock_OnlyProd" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OptionTextBlockVersion_OnlyProd" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="FontSize" Value="15"/>
      <Setter Property="FontWeight" Value="Bold"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OnlyProdCNT_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="Width" Value="25"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OnlyProdInversion_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="Margin" Value="10,0,0,0"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OnlyProd_TextBlock" TargetType="{x:Type TextBlock}">
      <Setter Property="TextAlignment" Value="Center"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
      <Style.Triggers>
         <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGridCell}}, Path=IsSelected}" Value="True">
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
            <Setter Property="Background" Value="{StaticResource BeamWall_FountainBlue}"/>
         </DataTrigger>
      </Style.Triggers>
   </Style>

   <Style x:Key="OnlyProdQParameterListProd_TextBlock" TargetType="{x:Type TextBlock}">
      <Setter Property="TextAlignment" Value="Center"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
      <Setter Property="Margin" Value="4,0,0,0"/>
      <Style.Triggers>
         <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGridCell}}, Path=IsSelected}" Value="True">
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
            <Setter Property="Background" Value="{StaticResource BeamWall_YellowOrange}"/>
         </DataTrigger>
      </Style.Triggers>
   </Style>

   <Style x:Key="OnlyProdStatisticTimePanel_TextBlock" TargetType="{x:Type TextBlock}">
      <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="FontSize" Value="30"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OnlyProdInverted_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="TextAlignment" Value="Center"/>
      <Setter Property="Width" Value="60"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OnlyProdUnitTime_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="Macro_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Top"/>
      <Setter Property="Margin" Value="5"/>
      <Setter Property="FontSize" Value="14"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="MacroDefault_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Left"/>
      <Setter Property="VerticalAlignment" Value="Top"/>
      <Setter Property="Margin" Value="2.5"/>
      <Setter Property="Width" Value="239"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="Machine_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Top"/>
      <Setter Property="Margin" Value="10,5,10,0"/>
      <Setter Property="Height" Value="25"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OnlyProdFeatureManager_OnlyProd" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Top"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
      <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
      <Setter Property="Margin" Value="5,5,0,0"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OnlyProdPartParam_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="10,0,10,0"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
   </Style>

   <Style x:Key="CALC_FALL_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="TextAlignment" Value="Center"/>
      <Setter Property="Foreground" Value="Blue"/>
      <Setter Property="FontWeight" Value="Bold"/>
      <Setter Property="FontSize" Value="18"/>
      <Setter Property="Margin" Value="-1,-6,1,-3"/>
   </Style>

   <Style x:Key="CALC_ERR_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="TextAlignment" Value="Center"/>
      <Setter Property="FontWeight" Value="Bold"/>
      <Setter Property="FontSize" Value="12"/>
      <Setter Property="Margin" Value="2,-6,-2,-3"/>
   </Style>

   <Style x:Key="PasswordMsg_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Top"/>
      <Setter Property="Margin" Value="0,0,0,5"/>
   </Style>

   <Style x:Key="OnlyProdFeatureInPartInRawPartList_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="TextAlignment" Value="Center"/>
      <Setter Property="FontWeight" Value="Bold"/>
      <Setter Property="FontSize" Value="12"/>
      <Setter Property="Margin" Value="0,-6,0,-2"/>
   </Style>

   <Style x:Key="OnlyProdRawPartList_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="TextAlignment" Value="Center"/>
      <Setter Property="Foreground" Value="Aqua"/>
      <Setter Property="FontWeight" Value="Bold"/>
      <Setter Property="FontSize" Value="12"/>
      <Setter Property="Margin" Value="0,-6,0,-2"/>
   </Style>

   <Style x:Key="MoveDir_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Top"/>
      <Setter Property="Margin" Value="0,5"/>
   </Style>

   <Style x:Key="OnlyProdNestingRunningWndV_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="TextAlignment" Value="Center"/>
   </Style>

   <Style x:Key="OnlyProdWarehouseWndV_TextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="Width" Value="70"/>
      <Setter Property="Margin" Value="15,5"/>
   </Style>

   <Style x:Key="OnlyProdToolBar_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
   </Style>

   <!--#endregion TextBlock-->

   <!--#region ScrollBar-->

   <!--#F0F0F0-->
   <SolidColorBrush x:Key="ScrollBar.Static.Background" Color="{StaticResource BeamWall_White_Color}"/>
   <!--#F0F0F0-->
   <SolidColorBrush x:Key="ScrollBar.Static.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#606060-->
   <SolidColorBrush x:Key="ScrollBar.Static.Glyph" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#CDCDCD-->
   <SolidColorBrush x:Key="ScrollBar.Static.Thumb" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#DADADA-->
   <SolidColorBrush x:Key="ScrollBar.MouseOver.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
   <!--#DADADA-->
   <SolidColorBrush x:Key="ScrollBar.MouseOver.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
   <!--"#000000"-->
   <SolidColorBrush x:Key="ScrollBar.MouseOver.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
   <!--#A6A6A6-->
   <SolidColorBrush x:Key="ScrollBar.MouseOver.Thumb" Color="{StaticResource BeamWall_Glacier_Color}"/>
   <!--#606060-->
   <SolidColorBrush x:Key="ScrollBar.Pressed.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#606060-->
   <SolidColorBrush x:Key="ScrollBar.Pressed.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#606060-->
   <SolidColorBrush x:Key="ScrollBar.Pressed.Thumb" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <!--#000000-->
   <SolidColorBrush x:Key="ScrollBar.Pressed.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
   <!--#F0F0F0-->
   <SolidColorBrush x:Key="ScrollBar.Disabled.Background" Color="{StaticResource BeamWall_LinkWater_Color}"/>
   <!--#F0F0F0-->
   <SolidColorBrush x:Key="ScrollBar.Disabled.Border" Color="{StaticResource BeamWall_LinkWater_Color}"/>
   <!--#BFBFBF-->
   <SolidColorBrush x:Key="ScrollBar.Disabled.Glyph" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <SolidColorBrush x:Key="ScrollBar.Button.Static.Background" Color="{StaticResource BeamWall_White_Color}"/>
   <Style x:Key="RepeatButtonTransparent" TargetType="{x:Type RepeatButton}">
      <Setter Property="OverridesDefaultStyle" Value="true"/>
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="Focusable" Value="false"/>
      <Setter Property="IsTabStop" Value="false"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type RepeatButton}">
               <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style x:Key="ScrollBarButton" TargetType="{x:Type RepeatButton}">
      <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="HorizontalContentAlignment" Value="Center"/>
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="Padding" Value="1"/>
      <Setter Property="Focusable" Value="false"/>
      <Setter Property="IsTabStop" Value="false"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type RepeatButton}">
               <Border x:Name="border" Background="{StaticResource ScrollBar.Button.Static.Background}" BorderBrush="{StaticResource ScrollBar.Static.Border}" BorderThickness="1" SnapsToDevicePixels="true">
                  <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
               </Border>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsMouseOver" Value="true">
                     <Setter Property="Background" TargetName="border" Value="{StaticResource ScrollBar.MouseOver.Background}"/>
                     <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource ScrollBar.MouseOver.Border}"/>
                  </Trigger>
                  <Trigger Property="IsPressed" Value="true">
                     <Setter Property="Background" TargetName="border" Value="{StaticResource ScrollBar.Pressed.Background}"/>
                     <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource ScrollBar.Pressed.Border}"/>
                  </Trigger>
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
                     <Setter Property="Background" TargetName="border" Value="{StaticResource ScrollBar.Disabled.Background}"/>
                     <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource ScrollBar.Disabled.Border}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style x:Key="ScrollBarThumbVertical" TargetType="{x:Type Thumb}">
      <Setter Property="OverridesDefaultStyle" Value="true"/>
      <Setter Property="IsTabStop" Value="false"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type Thumb}">
               <Rectangle x:Name="rectangle" Fill="{StaticResource ScrollBar.Static.Thumb}" Height="{TemplateBinding Height}" SnapsToDevicePixels="True" Width="{TemplateBinding Width}"/>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsMouseOver" Value="true">
                     <Setter Property="Fill" TargetName="rectangle" Value="{StaticResource ScrollBar.MouseOver.Thumb}"/>
                  </Trigger>
                  <Trigger Property="IsDragging" Value="true">
                     <Setter Property="Fill" TargetName="rectangle" Value="{StaticResource ScrollBar.Pressed.Thumb}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style x:Key="ScrollBarThumbHorizontal" TargetType="{x:Type Thumb}">
      <Setter Property="OverridesDefaultStyle" Value="true"/>
      <Setter Property="IsTabStop" Value="false"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type Thumb}">
               <Rectangle x:Name="rectangle" Fill="{StaticResource ScrollBar.Static.Thumb}" Height="{TemplateBinding Height}" SnapsToDevicePixels="True" Width="{TemplateBinding Width}"/>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsMouseOver" Value="true">
                     <Setter Property="Fill" TargetName="rectangle" Value="{StaticResource ScrollBar.MouseOver.Thumb}"/>
                  </Trigger>
                  <Trigger Property="IsDragging" Value="true">
                     <Setter Property="Fill" TargetName="rectangle" Value="{StaticResource ScrollBar.Pressed.Thumb}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style x:Key="OnlyProd_ScrollBar" TargetType="{x:Type ScrollBar}">
      <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
      <Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
      <Setter Property="Background" Value="{StaticResource ScrollBar.Static.Background}"/>
      <Setter Property="BorderBrush" Value="{StaticResource ScrollBar.Static.Border}"/>
      <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
      <Setter Property="BorderThickness" Value="1,0"/>
      <Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
      <Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ScrollBar}">
               <Grid x:Name="Bg" SnapsToDevicePixels="true">
                  <Grid.RowDefinitions>
                     <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
                     <RowDefinition Height="0.00001*"/>
                     <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
                  </Grid.RowDefinitions>
                  <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Row="1"/>
                  <RepeatButton x:Name="PART_LineUpButton" Command="{x:Static ScrollBar.LineUpCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}">
                     <Path x:Name="ArrowTop" 
                          Data="M 0,4 C0,4 0,6 0,6 0,6 3.5,2.5 3.5,2.5 3.5,2.5 7,6 7,6 7,6 7,4 7,4 7,4 3.5,0.5 3.5,0.5 3.5,0.5 0,4 0,4 z" 
                          Fill="{StaticResource ScrollBar.Static.Glyph}" 
                          Margin="3,4,3,3" Stretch="Uniform"/>
                  </RepeatButton>
                  <Track x:Name="PART_Track" IsDirectionReversed="true" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="1">
                     <Track.DecreaseRepeatButton>
                        <RepeatButton Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource RepeatButtonTransparent}"/>
                     </Track.DecreaseRepeatButton>
                     <Track.IncreaseRepeatButton>
                        <RepeatButton Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource RepeatButtonTransparent}"/>
                     </Track.IncreaseRepeatButton>
                     <Track.Thumb>
                        <Thumb Style="{StaticResource ScrollBarThumbVertical}"/>
                     </Track.Thumb>
                  </Track>
                  <RepeatButton x:Name="PART_LineDownButton" Command="{x:Static ScrollBar.LineDownCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="2" Style="{StaticResource ScrollBarButton}">
                     <Path x:Name="ArrowBottom" Data="M 0,2.5 C0,2.5 0,0.5 0,0.5 0,0.5 3.5,4 3.5,4 3.5,4 7,0.5 7,0.5 7,0.5 7,2.5 7,2.5 7,2.5 3.5,6 3.5,6 3.5,6 0,2.5 0,2.5 z" Fill="{StaticResource ScrollBar.Static.Glyph}" Margin="3,4,3,3" Stretch="Uniform"/>
                  </RepeatButton>
               </Grid>
               <ControlTemplate.Triggers>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, ElementName=PART_LineDownButton}" Value="true"/>
                        <Condition Binding="{Binding IsPressed, ElementName=PART_LineDownButton}" Value="true"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Fill" TargetName="ArrowBottom" Value="{StaticResource ScrollBar.Pressed.Glyph}"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, ElementName=PART_LineUpButton}" Value="true"/>
                        <Condition Binding="{Binding IsPressed, ElementName=PART_LineUpButton}" Value="true"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Fill" TargetName="ArrowTop" Value="{StaticResource ScrollBar.Pressed.Glyph}"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, ElementName=PART_LineDownButton}" Value="true"/>
                        <Condition Binding="{Binding IsPressed, ElementName=PART_LineDownButton}" Value="false"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Fill" TargetName="ArrowBottom" Value="{StaticResource ScrollBar.MouseOver.Glyph}"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, ElementName=PART_LineUpButton}" Value="true"/>
                        <Condition Binding="{Binding IsPressed, ElementName=PART_LineUpButton}" Value="false"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Fill" TargetName="ArrowTop" Value="{StaticResource ScrollBar.MouseOver.Glyph}"/>
                  </MultiDataTrigger>
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Fill" TargetName="ArrowTop" Value="{StaticResource ScrollBar.Disabled.Glyph}"/>
                     <Setter Property="Fill" TargetName="ArrowBottom" Value="{StaticResource ScrollBar.Disabled.Glyph}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
      <Style.Triggers>
         <Trigger Property="Orientation" Value="Horizontal">
            <Setter Property="Width" Value="Auto"/>
            <Setter Property="MinWidth" Value="0"/>
            <Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
            <Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
            <Setter Property="BorderThickness" Value="0,1"/>
            <Setter Property="Template">
               <Setter.Value>
                  <ControlTemplate TargetType="{x:Type ScrollBar}">
                     <Grid x:Name="Bg" SnapsToDevicePixels="true">
                        <Grid.ColumnDefinitions>
                           <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
                           <ColumnDefinition Width="0.00001*"/>
                           <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
                        </Grid.ColumnDefinitions>
                        <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="1"/>
                        <RepeatButton x:Name="PART_LineLeftButton" Command="{x:Static ScrollBar.LineLeftCommand}" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}">
                           <Path x:Name="ArrowLeft" 
                                Data="M 3.18,7 C3.18,7 5,7 5,7 5,7 1.81,3.5 1.81,3.5 1.81,3.5 5,0 5,0 5,0 3.18,0 3.18,0 3.18,0 0,3.5 0,3.5 0,3.5 3.18,7 3.18,7 z" 
                                Fill="{StaticResource ScrollBar.Static.Glyph}" 
                                Margin="3" 
                                Stretch="Uniform"/>
                        </RepeatButton>
                        <Track x:Name="PART_Track" Grid.Column="1" IsEnabled="{TemplateBinding IsMouseOver}">
                           <Track.DecreaseRepeatButton>
                              <RepeatButton Command="{x:Static ScrollBar.PageLeftCommand}" Style="{StaticResource RepeatButtonTransparent}"/>
                           </Track.DecreaseRepeatButton>
                           <Track.IncreaseRepeatButton>
                              <RepeatButton Command="{x:Static ScrollBar.PageRightCommand}" Style="{StaticResource RepeatButtonTransparent}"/>
                           </Track.IncreaseRepeatButton>
                           <Track.Thumb>
                              <Thumb Style="{StaticResource ScrollBarThumbHorizontal}"/>
                           </Track.Thumb>
                        </Track>
                        <RepeatButton x:Name="PART_LineRightButton" Command="{x:Static ScrollBar.LineRightCommand}" Grid.Column="2" IsEnabled="{TemplateBinding IsMouseOver}" Style="{StaticResource ScrollBarButton}">
                           <Path x:Name="ArrowRight" 
                                Data="M 1.81,7 C1.81,7 0,7 0,7 0,7 3.18,3.5 3.18,3.5 3.18,3.5 0,0 0,0 0,0 1.81,0 1.81,0 1.81,0 5,3.5 5,3.5 5,3.5 1.81,7 1.81,7 z" 
                                Fill="{StaticResource ScrollBar.Static.Glyph}" 
                                Margin="3" 
                                Stretch="Uniform"/>
                        </RepeatButton>
                     </Grid>
                     <ControlTemplate.Triggers>
                        <MultiDataTrigger>
                           <MultiDataTrigger.Conditions>
                              <Condition Binding="{Binding IsMouseOver, ElementName=PART_LineRightButton}" Value="true"/>
                              <Condition Binding="{Binding IsPressed, ElementName=PART_LineRightButton}" Value="true"/>
                           </MultiDataTrigger.Conditions>
                           <Setter Property="Fill" TargetName="ArrowRight" Value="{StaticResource ScrollBar.Pressed.Glyph}"/>
                        </MultiDataTrigger>
                        <MultiDataTrigger>
                           <MultiDataTrigger.Conditions>
                              <Condition Binding="{Binding IsMouseOver, ElementName=PART_LineLeftButton}" Value="true"/>
                              <Condition Binding="{Binding IsPressed, ElementName=PART_LineLeftButton}" Value="true"/>
                           </MultiDataTrigger.Conditions>
                           <Setter Property="Fill" TargetName="ArrowLeft" Value="{StaticResource ScrollBar.Pressed.Glyph}"/>
                        </MultiDataTrigger>
                        <MultiDataTrigger>
                           <MultiDataTrigger.Conditions>
                              <Condition Binding="{Binding IsMouseOver, ElementName=PART_LineRightButton}" Value="true"/>
                              <Condition Binding="{Binding IsPressed, ElementName=PART_LineRightButton}" Value="false"/>
                           </MultiDataTrigger.Conditions>
                           <Setter Property="Fill" TargetName="ArrowRight" Value="{StaticResource ScrollBar.MouseOver.Glyph}"/>
                        </MultiDataTrigger>
                        <MultiDataTrigger>
                           <MultiDataTrigger.Conditions>
                              <Condition Binding="{Binding IsMouseOver, ElementName=PART_LineLeftButton}" Value="true"/>
                              <Condition Binding="{Binding IsPressed, ElementName=PART_LineLeftButton}" Value="false"/>
                           </MultiDataTrigger.Conditions>
                           <Setter Property="Fill" TargetName="ArrowLeft" Value="{StaticResource ScrollBar.MouseOver.Glyph}"/>
                        </MultiDataTrigger>
                        <Trigger Property="IsEnabled" Value="false">
                           <Setter Property="Fill" TargetName="ArrowLeft" Value="{StaticResource ScrollBar.Disabled.Glyph}"/>
                           <Setter Property="Fill" TargetName="ArrowRight" Value="{StaticResource ScrollBar.Disabled.Glyph}"/>
                        </Trigger>
                     </ControlTemplate.Triggers>
                  </ControlTemplate>
               </Setter.Value>
            </Setter>
         </Trigger>
      </Style.Triggers>
   </Style>

   <!--#endregion ScrollBar-->

   <!--#region CsvTreeViewItem DA CAMBIARE!!-->

   <SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Checked.Fill" Color="#FF595959"/>
   <SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Checked.Stroke" Color="#FF262626"/>
   <SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Stroke" Color="#FF1BBBFA"/>
   <SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Fill" Color="Transparent"/>
   <SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Checked.Stroke" Color="#FF262626"/>
   <SolidColorBrush x:Key="TreeViewItem.TreeArrow.MouseOver.Checked.Fill" Color="#FF595959"/>
   <PathGeometry x:Key="TreeArrow" Figures="M0,0 L0,6 L6,0 z"/>
   <SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Fill" Color="Transparent"/>
   <SolidColorBrush x:Key="TreeViewItem.TreeArrow.Static.Stroke" Color="#FF989898"/>
   <Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}">
      <Setter Property="Focusable" Value="False"/>
      <Setter Property="Width" Value="16"/>
      <Setter Property="Height" Value="16"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ToggleButton}">
               <Border Background="Transparent" Height="16" Padding="5,5,5,5" Width="16">
                  <Path x:Name="ExpandPath" Data="{StaticResource TreeArrow}" Fill="{StaticResource TreeViewItem.TreeArrow.Static.Fill}" Stroke="{StaticResource TreeViewItem.TreeArrow.Static.Stroke}">
                     <Path.RenderTransform>
                        <RotateTransform Angle="135" CenterY="3" CenterX="3"/>
                     </Path.RenderTransform>
                  </Path>
               </Border>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsChecked" Value="True">
                     <Setter Property="RenderTransform" TargetName="ExpandPath">
                        <Setter.Value>
                           <RotateTransform Angle="180" CenterY="3" CenterX="3"/>
                        </Setter.Value>
                     </Setter>
                     <Setter Property="Fill" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.Static.Checked.Fill}"/>
                     <Setter Property="Stroke" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.Static.Checked.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsMouseOver" Value="True">
                     <Setter Property="Stroke" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Stroke}"/>
                     <Setter Property="Fill" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Fill}"/>
                  </Trigger>
                  <MultiTrigger>
                     <MultiTrigger.Conditions>
                        <Condition Property="IsMouseOver" Value="True"/>
                        <Condition Property="IsChecked" Value="True"/>
                     </MultiTrigger.Conditions>
                     <Setter Property="Stroke" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Checked.Stroke}"/>
                     <Setter Property="Fill" TargetName="ExpandPath" Value="{StaticResource TreeViewItem.TreeArrow.MouseOver.Checked.Fill}"/>
                  </MultiTrigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <Style x:Key="CsvPartItemStyle" TargetType="{x:Type TreeViewItem}">
      <Setter Property="IsSelected" Value="{Binding IsSelected}" />
      <Setter Property="IsExpanded" Value="{Binding IsExpanded}" />
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type TreeViewItem}">
               <Grid>
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition MinWidth="19" Width="Auto"/>
                     <ColumnDefinition Width="Auto"/>
                     <ColumnDefinition Width="*"/>
                  </Grid.ColumnDefinitions>
                  <Grid.RowDefinitions>
                     <RowDefinition Height="Auto"/>
                     <RowDefinition/>
                  </Grid.RowDefinitions>
                  <Border x:Name="ExpanderBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
                     <ToggleButton x:Name="Expander" ClickMode="Press" IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ExpandCollapseToggleStyle}"/>
                  </Border>
                  <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Column="1" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
                     <ContentPresenter x:Name="PART_Header" ContentSource="Header" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                  </Border>
                  <ItemsPresenter x:Name="ItemsHost" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="1"/>
               </Grid>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsExpanded" Value="false">
                     <Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
                  </Trigger>
                  <Trigger Property="HasItems" Value="false">
                     <Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
                  </Trigger>
                  <Trigger Property="IsSelected" Value="true">
                     <Setter Property="Background" TargetName="Bd" Value="Transparent"/>
                     <Setter Property="BorderBrush" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
                     <Setter Property="BorderThickness" TargetName="Bd" Value="0,1,1,1"/>
                     <Setter Property="Background" TargetName="ExpanderBorder" Value="Transparent"/>
                     <Setter Property="BorderBrush" TargetName="ExpanderBorder" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
                     <Setter Property="BorderThickness" TargetName="ExpanderBorder" Value="1,1,0,1"/>
                     <!--<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>-->
                  </Trigger>
                  <!--<MultiTrigger>
                                 <MultiTrigger.Conditions>
                                    <Condition Property="IsSelected" Value="true"/>
                                    <Condition Property="IsSelectionActive" Value="false"/>
                                 </MultiTrigger.Conditions>
                                 <Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
                                 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                              </MultiTrigger>-->
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion CsvTreeViewItem-->

   <!--#region ComboBox-->

   <SolidColorBrush x:Key="TextBox.Static.Background" Color="#FFFFFFFF"/>
   <Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
      <Setter Property="OverridesDefaultStyle" Value="true"/>
      <Setter Property="AllowDrop" Value="true"/>
      <Setter Property="MinWidth" Value="0"/>
      <Setter Property="MinHeight" Value="0"/>
      <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
      <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
      <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type TextBox}">
               <ScrollViewer x:Name="PART_ContentHost" Background="Transparent" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <!--<LinearGradientBrush x:Key="ComboBox.Static.Background" EndPoint="0,1" StartPoint="0,0">
      <GradientStop Color="#FFF0F0F0" Offset="0.0"/>
      <GradientStop Color="#FFE5E5E5" Offset="1.0"/>
   </LinearGradientBrush>-->
   <SolidColorBrush x:Key="ComboBox.Static.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
   <!--#FFACACAC-->
   <SolidColorBrush x:Key="ComboBox.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
   <!--#FF606060-->
   <SolidColorBrush x:Key="ComboBox.Static.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
   <!--#FF000000-->
   <SolidColorBrush x:Key="ComboBox.Static.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
   <SolidColorBrush x:Key="ComboBox.Static.Editable.Background" Color="#FFFFFFFF"/>
   <SolidColorBrush x:Key="ComboBox.Static.Editable.Border" Color="#FFABADB3"/>
   <SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Background" Color="Transparent"/>
   <SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Border" Color="Transparent"/>
   <!--<LinearGradientBrush x:Key="ComboBox.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
      <GradientStop Color="#FFECF4FC" Offset="0.0"/>
      <GradientStop Color="#FFDCECFC" Offset="1.0"/>
   </LinearGradientBrush>-->
   <SolidColorBrush x:Key="ComboBox.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#FF7EB4EA-->
   <SolidColorBrush x:Key="ComboBox.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#FF000000-->
   <SolidColorBrush x:Key="ComboBox.MouseOver.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
   <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Background" Color="#FFFFFFFF"/>
   <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Border" Color="#FF7EB4EA"/>
   <LinearGradientBrush x:Key="ComboBox.MouseOver.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
      <GradientStop Color="#FFEBF4FC" Offset="0.0"/>
      <GradientStop Color="#FFDCECFC" Offset="1.0"/>
   </LinearGradientBrush>
   <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Border" Color="#FF7EB4EA"/>
   <!--<LinearGradientBrush x:Key="ComboBox.Pressed.Background" EndPoint="0,1" StartPoint="0,0">
      <GradientStop Color="#FFDAECFC" Offset="0.0"/>
      <GradientStop Color="#FFC4E0FC" Offset="1.0"/>
   </LinearGradientBrush>-->
   <SolidColorBrush x:Key="ComboBox.Pressed.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <!--#FF569DE5-->
   <SolidColorBrush x:Key="ComboBox.Pressed.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <!--#FF000000-->
   <SolidColorBrush x:Key="ComboBox.Pressed.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
   <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Background" Color="#FFFFFFFF"/>
   <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Border" Color="#FF569DE5"/>
   <LinearGradientBrush x:Key="ComboBox.Pressed.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
      <GradientStop Color="#FFDAEBFC" Offset="0.0"/>
      <GradientStop Color="#FFC4E0FC" Offset="1.0"/>
   </LinearGradientBrush>
   <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Border" Color="#FF569DE5"/>
   <SolidColorBrush x:Key="ComboBox.Disabled.Background" Color="#FFF0F0F0"/>
   <SolidColorBrush x:Key="ComboBox.Disabled.Border" Color="#FFD9D9D9"/>
   <SolidColorBrush x:Key="ComboBox.Disabled.Glyph" Color="#FFBFBFBF"/>
   <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Background" Color="#FFFFFFFF"/>
   <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Border" Color="#FFBFBFBF"/>
   <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Background" Color="Transparent"/>
   <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Border" Color="Transparent"/>
   <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="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ToggleButton}">
               <Border x:Name="templateRoot" Background="{StaticResource ComboBox.Static.Background}" BorderBrush="{StaticResource ComboBox.Static.Border}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
                  <Border x:Name="splitBorder" BorderBrush="Transparent" BorderThickness="1" HorizontalAlignment="Right" Margin="0" SnapsToDevicePixels="true" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
                     <Path x:Name="arrow" Data="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" Fill="{StaticResource ComboBox.Static.Glyph}" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center"/>
                  </Border>
               </Border>
               <ControlTemplate.Triggers>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
                        <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Static.Editable.Background}"/>
                     <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Static.Editable.Border}"/>
                     <Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Static.Editable.Button.Background}"/>
                     <Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Static.Editable.Button.Border}"/>
                  </MultiDataTrigger>
                  <Trigger Property="IsMouseOver" Value="true">
                     <Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.MouseOver.Glyph}"/>
                  </Trigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Background}"/>
                     <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Border}"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Editable.Background}"/>
                     <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Editable.Border}"/>
                     <Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.MouseOver.Editable.Button.Background}"/>
                     <Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.MouseOver.Editable.Button.Border}"/>
                  </MultiDataTrigger>
                  <Trigger Property="IsPressed" Value="true">
                     <Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.Pressed.Glyph}"/>
                  </Trigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Background}"/>
                     <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Border}"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Editable.Background}"/>
                     <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Editable.Border}"/>
                     <Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Pressed.Editable.Button.Background}"/>
                     <Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Pressed.Editable.Button.Border}"/>
                  </MultiDataTrigger>
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.Disabled.Glyph}"/>
                  </Trigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Background}"/>
                     <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Border}"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Editable.Background}"/>
                     <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Editable.Border}"/>
                     <Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Disabled.Editable.Button.Background}"/>
                     <Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Disabled.Editable.Button.Border}"/>
                  </MultiDataTrigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
      <Grid x:Name="templateRoot" 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 Mode=TemplatedParent}}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
            <theme:SystemDropShadowChrome x:Name="shadow" Color="Transparent" MinWidth="{Binding ActualWidth, ElementName=templateRoot}" MaxHeight="{TemplateBinding MaxDropDownHeight}">
               <Border x:Name="dropDownBorder" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1">
                  <ScrollViewer x:Name="DropDownScrollViewer">
                     <Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled">
                        <Canvas x:Name="canvas" HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
                           <Rectangle x:Name="opaqueRect" Fill="{Binding Background, ElementName=dropDownBorder}" Height="{Binding ActualHeight, ElementName=dropDownBorder}" Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
                        </Canvas>
                        <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                     </Grid>
                  </ScrollViewer>
               </Border>
            </theme:SystemDropShadowChrome>
         </Popup>
         <ToggleButton x:Name="toggleButton" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Style="{StaticResource ComboBoxToggleButton}"/>
         <Border x:Name="border" Background="{StaticResource TextBox.Static.Background}" Margin="{TemplateBinding BorderThickness}">
            <TextBox x:Name="PART_EditableTextBox" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource Mode=TemplatedParent}}" Margin="{TemplateBinding Padding}" Style="{StaticResource ComboBoxEditableTextBox}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
         </Border>
      </Grid>
      <ControlTemplate.Triggers>
         <Trigger Property="IsEnabled" Value="false">
            <Setter Property="Opacity" TargetName="border" Value="0.56"/>
         </Trigger>
         <Trigger Property="IsKeyboardFocusWithin" Value="true">
            <Setter Property="Foreground" Value="Black"/>
         </Trigger>
         <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
            <Setter Property="Margin" TargetName="shadow" Value="0,0,5,5"/>
            <Setter Property="Color" TargetName="shadow" Value="#71000000"/>
         </Trigger>
         <Trigger Property="HasItems" Value="false">
            <Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
         </Trigger>
         <MultiTrigger>
            <MultiTrigger.Conditions>
               <Condition Property="IsGrouping" Value="true"/>
               <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
            </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>
   <ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
      <Grid x:Name="templateRoot" 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, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Margin="1" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
            <theme:SystemDropShadowChrome x:Name="shadow" Color="Transparent" MinWidth="{Binding ActualWidth, ElementName=templateRoot}" MaxHeight="{TemplateBinding MaxDropDownHeight}">
               <Border x:Name="dropDownBorder" Background="{StaticResource ComboBox.Static.Background}" BorderBrush="{StaticResource ComboBox.Static.Border}" BorderThickness="1">
                  <ScrollViewer x:Name="DropDownScrollViewer">
                     <Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled">
                        <Canvas x:Name="canvas" HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
                           <Rectangle x:Name="opaqueRect" Fill="{Binding Background, ElementName=dropDownBorder}" Height="{Binding ActualHeight, ElementName=dropDownBorder}" Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
                        </Canvas>
                        <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                     </Grid>
                  </ScrollViewer>
               </Border>
            </theme:SystemDropShadowChrome>
         </Popup>
         <ToggleButton x:Name="toggleButton" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Style="{StaticResource ComboBoxToggleButton}"/>
         <ContentPresenter x:Name="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="HasDropShadow" SourceName="PART_Popup" Value="true">
            <Setter Property="Margin" TargetName="shadow" Value="0,0,5,5"/>
            <Setter Property="Color" TargetName="shadow" Value="#71000000"/>
         </Trigger>
         <Trigger Property="HasItems" Value="false">
            <Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
         </Trigger>
         <MultiTrigger>
            <MultiTrigger.Conditions>
               <Condition Property="IsGrouping" Value="true"/>
               <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
            </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>
   <Style x:Key="OnlyProd_ComboBox" TargetType="{x:Type ComboBox}">
      <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
      <Setter Property="Background" Value="{StaticResource ComboBox.Static.Background}"/>
      <Setter Property="BorderBrush" Value="{StaticResource ComboBox.Static.Border}"/>
      <Setter Property="Foreground" Value="{StaticResource ComboBox.Static.Foreground}"/>
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
      <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
      <Setter Property="Padding" Value="6,3,5,3"/>
      <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
      <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
      <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
      <Setter Property="Template" Value="{StaticResource ComboBoxTemplate}"/>
      <Style.Triggers>
         <Trigger Property="IsEditable" Value="true">
            <Setter Property="IsTabStop" Value="false"/>
            <Setter Property="Padding" Value="2"/>
            <Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}"/>
         </Trigger>
      </Style.Triggers>
      <Style.Resources>
         <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource OnlyProd_ScrollBar}"/>
      </Style.Resources>
   </Style>

   <!--#endregion ComboBox-->

   <!--#region DataGrid-->

   <Style x:Key="DataGrid_OnlyProd" TargetType="{x:Type DataGrid}">
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
      <!--#FF688CAF-->
      <Setter Property="BorderBrush" Value="{StaticResource BeamWall_Glacier}"/>
      <Setter Property="BorderThickness" Value="0,0,0,0"/>
      <Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/>
      <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
      <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
      <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
      <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
      <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
      <Setter Property="HeadersVisibility" Value="Column" />
      <Setter Property="TextBlock.TextAlignment" Value="Center"/>
      <Setter Property="HorizontalContentAlignment" Value="Center"/>
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="CanUserAddRows" Value="False"/>
      <Setter Property="CanUserResizeRows" Value="False"/>
      <Setter Property="AutoGenerateColumns" Value="False"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate 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>
         </Setter.Value>
      </Setter>
      <Style.Triggers>
         <MultiTrigger>
            <MultiTrigger.Conditions>
               <Condition Property="IsGrouping" Value="true"/>
               <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
            </MultiTrigger.Conditions>
            <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
         </MultiTrigger>
      </Style.Triggers>
      <Style.Resources>
         <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource OnlyProd_ScrollBar}"/>
      </Style.Resources>
   </Style>
   
   <!--#endregion DataGrid-->

   <!--#region DatePicker-->

   <Style x:Key="Filter_DatePicker" TargetType="{x:Type DatePicker}">
      <Setter Property="Height" Value="25" />
      <Setter Property="Width" Value="100" />
      <Setter Property="BorderBrush" Value="Transparent"/>
      <Setter Property="Background" Value="Transparent"/>
      <Style.Resources>
         <Style TargetType="{x:Type DatePickerTextBox}">
            <Setter Property="Background" Value="Transparent"/>
         </Style>
      </Style.Resources>
   </Style>

   <Style x:Key="Filter_Calendar" TargetType="{x:Type Calendar}">
      <Setter Property="Background">
         <Setter.Value>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.35,0">
               <GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0"/>
               <GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="0.16"/>
               <GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
            </LinearGradientBrush>
         </Setter.Value>
      </Setter>
      <Setter Property="BorderBrush">
         <Setter.Value>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.35,0">
               <GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="0"/>
               <GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="0.45"/>
               <GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.75"/>
               <GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="1"/>
            </LinearGradientBrush>
         </Setter.Value>
      </Setter>
      <Setter Property="BorderThickness" Value="1"/>
   </Style>

   <!--#endregion DatePicker-->

   <!--#region Expander-->

   <!--#333333-->
   <SolidColorBrush x:Key="Expander.Static.Circle.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <SolidColorBrush x:Key="Expander.Static.Circle.Fill" Color="#FFFFFF"/>
   <!--#333333-->
   <SolidColorBrush x:Key="Expander.Static.Arrow.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#5593FF-->
   <SolidColorBrush x:Key="Expander.MouseOver.Circle.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <SolidColorBrush x:Key="Expander.MouseOver.Circle.Fill" Color="#F3F9FF"/>
   <!--#000000-->
   <SolidColorBrush x:Key="Expander.MouseOver.Arrow.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <!--#3C77DD-->
   <SolidColorBrush x:Key="Expander.Pressed.Circle.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <SolidColorBrush x:Key="Expander.Pressed.Circle.Fill" Color="#D9ECFF"/>
   <!--#000000-->
   <SolidColorBrush x:Key="Expander.Pressed.Arrow.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <!--#BCBCBC-->
   <SolidColorBrush x:Key="Expander.Disabled.Circle.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}" Opacity="0.5"/>
   <SolidColorBrush x:Key="Expander.Disabled.Circle.Fill" Color="#E6E6E6" Opacity="0.5"/>
   <!--#707070-->
   <SolidColorBrush x:Key="Expander.Disabled.Arrow.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}" Opacity="0.5"/>
   <Style x:Key="ExpanderHeaderFocusVisual">
      <Setter Property="Control.Template">
         <Setter.Value>
            <ControlTemplate>
               <Border>
                  <Rectangle Margin="0" StrokeDashArray="1 2" Stroke="Black" SnapsToDevicePixels="true" StrokeThickness="1"/>
               </Border>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ToggleButton}">
               <Border Padding="{TemplateBinding Padding}">
                  <Grid Background="{StaticResource BeamWall_Glacier}" Height="25" SnapsToDevicePixels="False">
                     <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="19"/>
                        <ColumnDefinition Width="*"/>
                     </Grid.ColumnDefinitions>
                     <Rectangle x:Name="circle" Fill="{StaticResource Expander.Static.Circle.Fill}" HorizontalAlignment="Center" Height="25" Stroke="{StaticResource Expander.Static.Circle.Stroke}" VerticalAlignment="Center" Width="19"/>
                     <Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" Stroke="{StaticResource Expander.Static.Arrow.Stroke}" SnapsToDevicePixels="false" StrokeThickness="2" VerticalAlignment="Center"/>
                     <ContentPresenter Grid.Column="1" HorizontalAlignment="Center" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="Center"/>
                  </Grid>
               </Border>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsChecked" Value="true">
                     <Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
                  </Trigger>
                  <Trigger Property="IsMouseOver" Value="true">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Stroke}"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsPressed" Value="true">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Stroke}"/>
                     <Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Stroke}"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style x:Key="ExpanderUpHeaderStyle" TargetType="{x:Type ToggleButton}">
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ToggleButton}">
               <Border Padding="{TemplateBinding Padding}">
                  <Grid Background="Transparent" SnapsToDevicePixels="False">
                     <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="19"/>
                        <ColumnDefinition Width="*"/>
                     </Grid.ColumnDefinitions>
                     <Grid>
                        <Grid.LayoutTransform>
                           <TransformGroup>
                              <TransformGroup.Children>
                                 <TransformCollection>
                                    <RotateTransform Angle="180"/>
                                 </TransformCollection>
                              </TransformGroup.Children>
                           </TransformGroup>
                        </Grid.LayoutTransform>
                        <Ellipse x:Name="circle" Fill="{StaticResource Expander.Static.Circle.Fill}" HorizontalAlignment="Center" Height="19" Stroke="{StaticResource Expander.Static.Circle.Stroke}" VerticalAlignment="Center" Width="19"/>
                        <Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" Stroke="{StaticResource Expander.Static.Arrow.Stroke}" SnapsToDevicePixels="false" StrokeThickness="2" VerticalAlignment="Center"/>
                     </Grid>
                     <ContentPresenter Grid.Column="1" HorizontalAlignment="Left" Margin="4,0,0,0" RecognizesAccessKey="True" SnapsToDevicePixels="True" VerticalAlignment="Center"/>
                  </Grid>
               </Border>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsChecked" Value="true">
                     <Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
                  </Trigger>
                  <Trigger Property="IsMouseOver" Value="true">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Stroke}"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsPressed" Value="true">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Stroke}"/>
                     <Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Stroke}"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style x:Key="ExpanderLeftHeaderStyle" TargetType="{x:Type ToggleButton}">
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ToggleButton}">
               <Border Padding="{TemplateBinding Padding}">
                  <Grid Background="Transparent" SnapsToDevicePixels="False">
                     <Grid.RowDefinitions>
                        <RowDefinition Height="19"/>
                        <RowDefinition Height="*"/>
                     </Grid.RowDefinitions>
                     <Grid>
                        <Grid.LayoutTransform>
                           <TransformGroup>
                              <TransformGroup.Children>
                                 <TransformCollection>
                                    <RotateTransform Angle="90"/>
                                 </TransformCollection>
                              </TransformGroup.Children>
                           </TransformGroup>
                        </Grid.LayoutTransform>
                        <Ellipse x:Name="circle" Fill="{StaticResource Expander.Static.Circle.Fill}" HorizontalAlignment="Center" Height="19" Stroke="{StaticResource Expander.Static.Circle.Stroke}" VerticalAlignment="Center" Width="19"/>
                        <Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" Stroke="{StaticResource Expander.Static.Arrow.Stroke}" SnapsToDevicePixels="false" StrokeThickness="2" VerticalAlignment="Center"/>
                     </Grid>
                     <ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" RecognizesAccessKey="True" Grid.Row="1" SnapsToDevicePixels="True" VerticalAlignment="Top"/>
                  </Grid>
               </Border>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsChecked" Value="true">
                     <Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
                  </Trigger>
                  <Trigger Property="IsMouseOver" Value="true">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Stroke}"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsPressed" Value="true">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Stroke}"/>
                     <Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Stroke}"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style x:Key="ExpanderRightHeaderStyle" TargetType="{x:Type ToggleButton}">
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ToggleButton}">
               <Border Padding="{TemplateBinding Padding}">
                  <Grid Background="Transparent" SnapsToDevicePixels="False">
                     <Grid.RowDefinitions>
                        <RowDefinition Height="19"/>
                        <RowDefinition Height="*"/>
                     </Grid.RowDefinitions>
                     <Grid>
                        <Grid.LayoutTransform>
                           <TransformGroup>
                              <TransformGroup.Children>
                                 <TransformCollection>
                                    <RotateTransform Angle="-90"/>
                                 </TransformCollection>
                              </TransformGroup.Children>
                           </TransformGroup>
                        </Grid.LayoutTransform>
                        <Ellipse x:Name="circle" Fill="{StaticResource Expander.Static.Circle.Fill}" HorizontalAlignment="Center" Height="19" Stroke="{StaticResource Expander.Static.Circle.Stroke}" VerticalAlignment="Center" Width="19"/>
                        <Path x:Name="arrow" Data="M 1,1.5 L 4.5,5 L 8,1.5" HorizontalAlignment="Center" Stroke="{StaticResource Expander.Static.Arrow.Stroke}" SnapsToDevicePixels="false" StrokeThickness="2" VerticalAlignment="Center"/>
                     </Grid>
                     <ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" RecognizesAccessKey="True" Grid.Row="1" SnapsToDevicePixels="True" VerticalAlignment="Top"/>
                  </Grid>
               </Border>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsChecked" Value="true">
                     <Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
                  </Trigger>
                  <Trigger Property="IsMouseOver" Value="true">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Stroke}"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.MouseOver.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsPressed" Value="true">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Stroke}"/>
                     <Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Pressed.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
                  </Trigger>
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Stroke" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Stroke}"/>
                     <Setter Property="Fill" TargetName="circle" Value="{StaticResource Expander.Disabled.Circle.Fill}"/>
                     <Setter Property="Stroke" TargetName="arrow" Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   <Style TargetType="{x:Type Expander}">
      <Setter Property="Foreground" Value="{StaticResource  BeamWall_White}"/>
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
      <Setter Property="VerticalContentAlignment" Value="Stretch"/>
      <Setter Property="BorderBrush" Value="Transparent"/>
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type Expander}">
               <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" SnapsToDevicePixels="true">
                  <DockPanel>
                     <ToggleButton x:Name="HeaderSite" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" DockPanel.Dock="Top" FontStretch="{TemplateBinding FontStretch}" Foreground="{TemplateBinding Foreground}" FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}" FontStyle="{TemplateBinding FontStyle}" FontFamily="{TemplateBinding FontFamily}" FontWeight="{TemplateBinding FontWeight}" FontSize="{TemplateBinding FontSize}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Margin="1" MinWidth="0" MinHeight="0" Padding="{TemplateBinding Padding}" Style="{StaticResource ExpanderDownHeaderStyle}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                     <ContentPresenter x:Name="ExpandSite" DockPanel.Dock="Bottom" Focusable="false" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Visibility="Collapsed"/>
                  </DockPanel>
               </Border>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsExpanded" Value="true">
                     <Setter Property="Visibility" TargetName="ExpandSite" Value="Visible"/>
                  </Trigger>
                  <Trigger Property="ExpandDirection" Value="Right">
                     <Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Right"/>
                     <Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Left"/>
                     <Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderRightHeaderStyle}"/>
                  </Trigger>
                  <Trigger Property="ExpandDirection" Value="Up">
                     <Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Top"/>
                     <Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Bottom"/>
                     <Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderUpHeaderStyle}"/>
                  </Trigger>
                  <Trigger Property="ExpandDirection" Value="Left">
                     <Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Left"/>
                     <Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Right"/>
                     <Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderLeftHeaderStyle}"/>
                  </Trigger>
                  <Trigger Property="IsEnabled" Value="false">
                     <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion Expander-->
   
   <!--#region ListBox-->

   <!--#1F26A0DA-->
   <SolidColorBrush x:Key="Item.MouseOver.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
   <!--#a826A0Da-->
   <SolidColorBrush x:Key="Item.MouseOver.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
   <!--#000000-->
   <SolidColorBrush x:Key="Item.MouseOver.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
   <!--#3D26A0DA-->
   <SolidColorBrush x:Key="Item.SelectedActive.Background" Color="{StaticResource BeamWall_Keppel_Color}"/>
   <!--#FF26A0DA-->
   <SolidColorBrush x:Key="Item.SelectedActive.Border" Color="{StaticResource BeamWall_Keppel_Color}"/>
   <SolidColorBrush x:Key="Item.SelectedActive.Foreground" Color="White"/>
   <SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#3DDADADA"/>
   <SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="#FFDADADA"/>
   <Style TargetType="{x:Type ListBoxItem}">
      <Setter Property="SnapsToDevicePixels" Value="True"/>
      <Setter Property="Padding" Value="4,1"/>
      <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
      <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="BorderBrush" Value="Transparent"/>
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ListBoxItem}">
               <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
                  <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
               </Border>
               <ControlTemplate.Triggers>
                  <MultiTrigger>
                     <MultiTrigger.Conditions>
                        <Condition Property="IsMouseOver" Value="True"/>
                     </MultiTrigger.Conditions>
                     <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.MouseOver.Background}"/>
                     <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.MouseOver.Border}"/>
                     <Setter Property="Foreground" Value="{StaticResource Item.MouseOver.Foreground}"/>
                     <Setter Property="FontWeight" Value="Bold" />
                  </MultiTrigger>
                  <MultiTrigger>
                     <MultiTrigger.Conditions>
                        <Condition Property="Selector.IsSelectionActive" Value="False"/>
                        <Condition Property="IsSelected" Value="True"/>
                     </MultiTrigger.Conditions>
                     <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}"/>
                     <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Border}"/>
                  </MultiTrigger>
                  <MultiTrigger>
                     <MultiTrigger.Conditions>
                        <Condition Property="Selector.IsSelectionActive" Value="True"/>
                        <Condition Property="IsSelected" Value="True"/>
                     </MultiTrigger.Conditions>
                     <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedActive.Background}"/>
                     <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedActive.Border}"/>
                     <Setter Property="Foreground" Value="{StaticResource Item.SelectedActive.Foreground}"/>
                     <Setter Property="FontWeight" Value="Bold" />
                  </MultiTrigger>
                  <Trigger Property="IsEnabled" Value="False">
                     <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion ListBox-->

   <!--#region GridSplitter-->

   <Style x:Key="Width_GridSplitter" TargetType="{x:Type GridSplitter}">
      <Setter Property="Width" Value="3"/>
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Stretch"/>
   </Style>

   <Style x:Key="Height_GridSplitter" TargetType="{x:Type GridSplitter}">
      <Setter Property="Height" Value="3"/>
      <Setter Property="HorizontalAlignment" Value="Stretch"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
   </Style>

   <!--#endregion GridSplitter-->

   <!--#region ToolTip-->

   <Style x:Key="OnlyProd_ToolTip" TargetType="{x:Type ToolTip}">
      <Setter Property="Background" Value="{StaticResource BeamWall_Glacier}"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
   </Style>

   <!--#endregion ToolTip-->

   <!--#region PasswordBox-->

   <Style TargetType="{x:Type PasswordBox}">
      <Setter Property="HorizontalContentAlignment" Value="Right"/>
      <Setter Property="Margin" Value="0,0,0,5"/>
   </Style>

   <!--#endregion PasswordBox-->

   <!--#region TabItem Style-->

   <!--<LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0,1" StartPoint="0,0">
         <GradientStop Color="#F0F0F0" Offset="0.0"/>
         <GradientStop Color="#E5E5E5" Offset="1.0"/>
      </LinearGradientBrush>-->
   <LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0.5,1" StartPoint="0.5,0">
      <GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0"/>
      <GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="0.85"/>
      <GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="1"/>
   </LinearGradientBrush>
   <!--#ACACAC-->
   <SolidColorBrush x:Key="TabItem.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
   <!--<LinearGradientBrush x:Key="TabItem.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
         <GradientStop Color="#ECF4FC" Offset="0.0"/>
         <GradientStop Color="#DCECFC" Offset="1.0"/>
      </LinearGradientBrush>-->
   <SolidColorBrush x:Key="TabItem.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#7EB4EA-->
   <SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
   <!--#FFFFFF-->
   <!--<SolidColorBrush x:Key="TabItem.Selected.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>-->
   <LinearGradientBrush x:Key="TabItem.Selected.Background" EndPoint="0.5,1" StartPoint="0.5,0">
      <GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="0"/>
      <GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.85"/>
      <GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="1"/>
   </LinearGradientBrush>
   <!--#ACACAC-->
   <SolidColorBrush x:Key="TabItem.Selected.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
   <SolidColorBrush x:Key="TabItem.Disabled.Background" Color="#F0F0F0"/>
   <SolidColorBrush x:Key="TabItem.Disabled.Border" Color="#D9D9D9"/>
   <Style x:Key="OnlyProd_TabItem" TargetType="{x:Type TabItem}">
      <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
      <!--Black-->
      <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="Background" Value="{StaticResource TabItem.Static.Background}"/>
      <Setter Property="BorderBrush" Value="{StaticResource TabItem.Static.Border}"/>
      <Setter Property="Margin" Value="0"/>
      <Setter Property="Padding" Value="6,2,6,2"/>
      <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
      <Setter Property="VerticalContentAlignment" Value="Stretch"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type TabItem}">
               <Grid x:Name="templateRoot" SnapsToDevicePixels="true">
                  <Border x:Name="mainBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,1,1,0" Margin="2,0" CornerRadius="4,4,0,0">
                     <Border x:Name="innerBorder" Background="{StaticResource TabItem.Selected.Background}" BorderBrush="{StaticResource TabItem.Selected.Border}" BorderThickness="1,1,1,0" Margin="-1" Opacity="0" CornerRadius="4,4,0,0"/>
                  </Border>
                  <ContentPresenter x:Name="contentPresenter" ContentSource="Header" Focusable="False" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
               </Grid>
               <ControlTemplate.Triggers>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
                     <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
                     <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
                     <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
                     <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
                     <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
                     <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
                     <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
                     <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
                     <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
                     <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
                     <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
                     <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Panel.ZIndex" Value="1"/>
                     <Setter Property="Margin" Value="-2,-2,0,-2"/>
                     <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Panel.ZIndex" Value="1"/>
                     <Setter Property="Margin" Value="-2,0,-2,-2"/>
                     <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Panel.ZIndex" Value="1"/>
                     <Setter Property="Margin" Value="0,-2,-2,-2"/>
                     <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
                  </MultiDataTrigger>
                  <MultiDataTrigger>
                     <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
                        <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
                     </MultiDataTrigger.Conditions>
                     <Setter Property="Panel.ZIndex" Value="1"/>
                     <Setter Property="Margin" Value="-2,-2,-2,0"/>
                     <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
                     <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
                     <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
                  </MultiDataTrigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion Tab Item--> 
   
   <!--#endregion GRAFICA GENERALE-->
   
   <!-- ______________________________________________________________________________________________________________________________________________ -->

   <!--#region GRAFICA VECCHIA PAGINA-->
   
   <!--#region Button Style-->
   
   <!--Template che permette di andare a capo-->
   <DataTemplate x:Key="WrapButton_DataTemplate">
      <TextBlock TextWrapping="WrapWithOverflow" Text="{Binding}"/>
   </DataTemplate>

   <Style x:Key="ToolBar_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
   </Style>

   <Style x:Key="ToolBar_SmallButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="20"/>
      <Setter Property="Width" Value="20"/>
   </Style>

   <Style x:Key="ToolBar_TextButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="80"/>
   </Style>

   <Style x:Key="OptionPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="25"/>
      <Setter Property="Width" Value="25"/>
      <Setter Property="Margin" Value="5,0,0,0"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="HorizontalAlignment" Value="Center"/>
   </Style>

   <Style x:Key="MachinePanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="50"/>
      <Setter Property="Width" Value="50"/>
      <Setter Property="Margin" Value="50"/>
      <Setter Property="VerticalAlignment" Value="Bottom"/>
      <Setter Property="HorizontalAlignment" Value="Right"/>
   </Style>

   <Style x:Key="EgtWPFLib5_InputButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="80"/>
   </Style>

   <Style x:Key="LeftPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Margin" Value="2.5,2.5,2.5,2.5"/>
   </Style>

   <Style x:Key="Close_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="40"/>
      <Setter Property="Width" Value="50"/>
      <Setter Property="Margin" Value="2.5,-2,2.5,2.5"/>
   </Style>

   <Style x:Key="PDFPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="40"/>
      <Setter Property="Width" Value="120"/>
      <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="0,0,0,5"/>
   </Style>

   <Style x:Key="MainMenu_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Background" Value="{StaticResource Omag_White}"/>
      <Setter Property="Foreground" Value="{StaticResource Omag_DarkGray}"/>
      <Setter Property="TextBlock.FontWeight" Value="Normal"/>
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="90"/>
   </Style>

   <!--#endregion Button Style-->
   
   <!--#region ToggleButton Style-->

   <Style x:Key="ToolBar_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
      <Setter Property="Background" Value="#FFDDDDDD"/>
      <Setter Property="BorderBrush" Value="#FF707070"/>
      <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
   </Style>

   <Style x:Key="MainMenu_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
      <Setter Property="Background" Value="{StaticResource Omag_White}"/>
      <Setter Property="Foreground" Value="{StaticResource Omag_DarkGray}"/>
      <Setter Property="TextBlock.FontWeight" Value="Normal"/>
      <Style.Triggers>
         <Trigger Property="IsChecked" Value="true">
            <Setter Property="TextBlock.FontWeight" Value="ExtraBold"/>
         </Trigger>
      </Style.Triggers>
   </Style>

   <!--#endregion ToggleButton Style--> 
   
   <!--#region TextBox-->

   <Style TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="HorizontalContentAlignment" Value="Right"/>
      <Setter Property="ExplicitUpdateSource" Value="EnterKeyPress"/>
   </Style>

   <Style x:Key="PartParam_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Width" Value="150"/>
      <Setter Property="Margin" Value="5"/>
   </Style>

   <Style x:Key="Warehouse_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Width" Value="100"/>
      <Setter Property="Margin" Value="5"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <!--#endregion TextBox-->
         
   <!--#region Border-->

   <Style x:Key="DefaultBorder" TargetType="{x:Type Border}">
      <Setter Property="BorderBrush" Value="#D5DFE5"/>
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="CornerRadius" Value="3"/>
      <Setter Property="Padding" Value="3"/>
      <Setter Property="Margin" Value="1"/>
   </Style>

   <Style x:Key="Border" TargetType="{x:Type Border}">
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="BorderBrush" Value="{StaticResource Omag_Gray}"/>
      <Setter Property="CornerRadius" Value="3"/>
      <Setter Property="Padding" Value="3"/>
   </Style>

   <!--#endregion Border-->
   
   <!--#region EgtCustomWindow-->

   <Style TargetType="{x:Type EgtWPFLib5:EgtCustomWindow}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtCustomWindow}}">
      <Setter Property="TitleBarHeight" Value="32"/>
      <Setter Property="TitleBarBrush" Value="{StaticResource Omag_LightGray}"/>
      <Setter Property="BorderBrush" Value="{StaticResource Omag_Gray}"/>
      <Setter Property="TitleBarForeground" Value="{StaticResource Omag_Black}"/>
      <Setter Property="ShowInTaskbar" Value="False"/>
   </Style>

   <!--#endregion EgtCustomWindow-->

   <!--#region EgtFloatingPanel-->

   <Style x:Key="ToolBar_EgtFloatingPanel" TargetType="{x:Type EgtFloating:EgtFloatingPanel}" BasedOn="{StaticResource {x:Type EgtFloating:EgtFloatingPanel}}">
      <Setter Property="Background" Value="{StaticResource Omag_Gray}"/>
      <Setter Property="BorderBrush" Value="{StaticResource Omag_Gray}"/>
   </Style>

   <!--#endregion EgtFloatingPanel-->
    
   <!--#region ComboBox-->

   <Style x:Key="FeatureComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="MinWidth" Value="55"/>
   </Style>

   <Style x:Key="Optimize_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="85"/>
      <Setter Property="Margin" Value="5,0,2.5,0"/>
   </Style>

   <Style x:Key="PartParam_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="150"/>
   </Style>

   <!-- Stile utilizzato nella classe:
             - WarehouseWndV per ComboBox SParamList -->

   <Style x:Key="Warehouse_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="100"/>
   </Style>

   <!--#endregion ComboBox-->
   
   <!--#region CheckBox-->

   <Style x:Key="OptionCheckBox" TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}">
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="HorizontalAlignment" Value="Right"/>
      <Setter Property="Margin" Value="10,5,10,0"/>
   </Style>

   <!--#endregion CheckBox-->

   <!--#region GroupBox-->

   <Style x:Key="GroupBoxStyle_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="1"/>
      <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>

   <Style x:Key="GroupBox_PDFPreview" TargetType="{x:Type GroupBox}">
      <Setter Property="Margin" Value="2.5"/>
      <Setter Property="Width" Value="Auto"/>
   </Style>

   <!--#endregion GroupBox-->

   <!--#region TabControl that have only Headers and no Pages-->

   <Style x:Key="TabControl_OnlyHeaders"  TargetType="{x:Type TabControl}">
      <Setter Property="OverridesDefaultStyle" Value="True" />
      <Setter Property="SnapsToDevicePixels" Value="True" />
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type TabControl}">
               <Grid KeyboardNavigation.TabNavigation="Local">
                  <Grid.RowDefinitions>
                     <RowDefinition Height="Auto"/>
                     <RowDefinition Height="*"/>
                  </Grid.RowDefinitions>
                  <TabPanel Name="HeaderPanel"
                            Grid.Row="0"
                            Panel.ZIndex="1" 
                            Margin="0,0,4,-1" 
                            IsItemsHost="True"
                            KeyboardNavigation.TabIndex="1"
                            Background="Transparent" />
               </Grid>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsEnabled" Value="False">
                     <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion TabControl-->
   
   <!--#region Image-->

   <Style x:Key="LockImage" TargetType="{x:Type Image}">
      <Setter Property="Source" Value="/Resources/PartManager/Locked.png" />
      <Setter Property="Height" Value="15"/>
      <Setter Property="Stretch" Value="Uniform"/>
      <Style.Triggers>
         <DataTrigger Binding="{Binding IsEnabled,RelativeSource={RelativeSource self}}" Value="False">
            <Setter Property="Source" Value="/Resources/PartManager/Unlocked.png"/>
         </DataTrigger>
      </Style.Triggers>
   </Style>

   <!--#endregion Image-->

   <!--#region DataGridRow/DataGridCell-->
   
   <Style x:Key="StaticRowDataGrid_CustomHighLight" TargetType="{x:Type DataGridRow}">
      <Setter Property="BorderBrush" Value="LightGray" />
      <Style.Triggers>
         <Trigger Property="IsSelected" Value="True">
            <Setter Property="BorderThickness" Value="2,2,2,2" />
            <Setter Property="BorderBrush" Value="Cyan" />
            <Setter Property="Padding" Value="0,0,0,0" />
            <Setter Property="Margin" Value="-2,0,-2,0" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="Blue" />
         </Trigger>
      </Style.Triggers>
      <Style.Resources>
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="Black" />
      </Style.Resources>
   </Style>

   <!--#endregion DataGridRow/DataGridCell-->

   <!--region DataGrid-->
   
   <Style x:Key="DataGrid_CustomHighLight" TargetType="{x:Type DataGrid}">
      <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
      <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
      <Setter Property="BorderBrush" Value="#FF688CAF"/>
      <Setter Property="BorderThickness" Value="1.5"/>
      <Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/>
      <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
      <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
      <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
      <Style.Resources>
         <Style TargetType="{x:Type DataGridCell}">
            <Style.Triggers>
               <Trigger Property="DataGridCell.IsSelected" Value="True">
                  <Setter Property="BorderBrush" Value="Cyan" />
                  <Setter Property="Foreground" Value="Blue" />
               </Trigger>
               <Trigger Property="IsKeyboardFocusWithin" Value="True">
                  <Setter Property="BorderBrush" Value="DodgerBlue" />
                  <Setter Property="Foreground" Value="Blue" />
               </Trigger>
               <Trigger Property="IsEditing" Value="True">
                  <Setter Property="BorderBrush" Value="DodgerBlue" />
                  <Setter Property="TextElement.Foreground" Value="Blue" />
               </Trigger>
            </Style.Triggers>
         </Style>
         <Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource StaticRowDataGrid_CustomHighLight}"/>
         <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource {x:Type ScrollBar}}"/>
      </Style.Resources>
   </Style>

   <!--#endregion DataGrid-->

   <!--#region CheckBox with text on the left-->

   <Style x:Key="CheckBox_TextAlignLeft" TargetType="CheckBox">
      <Style.Resources>
         <Style TargetType="Path">
            <Setter Property="FlowDirection" Value="LeftToRight" />
         </Style>
         <Style TargetType="TextBlock">
            <Setter Property="FlowDirection" Value="LeftToRight" />
         </Style>
      </Style.Resources>

      <Setter Property="FlowDirection" Value="RightToLeft" />
   </Style>

   <!--#endregion CheckBox with text on the left-->
   
   <!--#region ScrollViewer-->

   <Style x:Key="ScrollViewer" TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource {x:Type ScrollViewer}}">
      <Setter Property="CanContentScroll" Value="True"/>
      <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
      <Setter Property="Margin" Value="2.5,2.5,2.5,2.5"/>
      <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
   </Style>

   <!--#endregion ScrollViewer-->
   
   <!--#region ItemsControl-->

   <Style x:Key="ItemsControl_ExpanderList" TargetType="{x:Type ItemsControl}" BasedOn="{StaticResource {x:Type ItemsControl}}">
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="Margin" Value="0"/>
      <Setter Property="Padding" Value="0"/>
   </Style>

   <Style x:Key="ItemsControl_ExpanderElementList" TargetType="{x:Type ItemsControl}" BasedOn="{StaticResource {x:Type ItemsControl}}">
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="Margin" Value="0"/>
      <Setter Property="Padding" Value="0"/>
      <Setter Property="FontSize" Value="14"/>
   </Style>

   <!--#endregion ItemsControl-->
   
   <!--#region StackPanel-->

   <Style x:Key="StackPanel" TargetType="{x:Type StackPanel}">
      <Setter Property="Orientation" Value="Vertical"/>
      <Setter Property="Margin" Value="0"/>
   </Style>

   <Style x:Key="StackPanel_List" TargetType="{x:Type StackPanel}">
      <Setter Property="Orientation" Value="Horizontal"/>
      <Setter Property="Margin" Value="5,5,5,0"/>
   </Style>

   <Style x:Key="StackPanel_Button" TargetType="{x:Type StackPanel}">
      <Setter Property="Orientation" Value="Vertical"/>
      <Setter Property="Margin" Value="2.5,0,0,0"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="HorizontalAlignment" Value="Right"/>
   </Style>

   <!--#endregion StackPanel-->
   
   <!--#region Expander-->

   <Style x:Key="Expander_PDF" TargetType="{x:Type Expander}" BasedOn="{StaticResource {x:Type Expander}}">
      <Setter Property="IsExpanded" Value="True"/>
      <Setter Property="VerticalContentAlignment" Value="Top"/>
      <Setter Property="HorizontalContentAlignment" Value="Left"/>
      <Setter Property="Margin" Value="2.5"/>
   </Style>

   <Style x:Key="Expander_PDFBase" TargetType="{x:Type Expander}" BasedOn="{x:Null}">
      <Setter Property="IsExpanded" Value="True"/>
      <Setter Property="VerticalContentAlignment" Value="Top"/>
      <Setter Property="HorizontalContentAlignment" Value="Left"/>
      <Setter Property="Margin" Value="2.5"/>
   </Style>

   <!--#endregion Expander-->

   <!--#region ListBox-->

   <Style x:Key="ListBox_PDF" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="Padding" Value="0"/>
      <Setter Property="Margin" Value="0"/>
      <Setter Property="VerticalContentAlignment" Value="Top"/>
      <Setter Property="HorizontalContentAlignment" Value="Left"/>
      <Setter Property="Background" Value="Transparent"/>
   </Style>

   <!--#endregion ListBox-->

   <!--#endregion GRAFICA VECCHIA PAGINA-->

   <!-- ______________________________________________________________________________________________________________________________________________ -->

   <!--#region GRAFICA NUOVA PAGINA-->

   <!--#region Button Style-->

   <Style x:Key="ToolBarOnlyProdManager_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Margin" Value="10,2.5,2.5,2.5"/>
   </Style>

   <Style x:Key="ToolBarOnlyProdManagerNew_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Margin" Value="120,2.5,2.5,2.5"/>
   </Style>

   <Style x:Key="ToolBarOnlyProdManagerGoToSupervisor_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Margin" Value="10,2.5,220,2.5"/>
   </Style>

   <Style x:Key="ToolBarViewPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Margin" Value="5,2,5,2"/>
   </Style>

   <Style x:Key="ToolBarOnlyProdCalcPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="FontSize" Value="10"/>
      <Setter Property="FontWeight" Value="Light"/>
      <Setter Property="Margin" Value="5,2,5,2"/>
   </Style>

   <Style x:Key="ToolBarWarehouse_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Margin" Value="5,0,0,0"/>
   </Style>

   <Style x:Key="ToolBarOptimize_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="70"/>
      <Setter Property="FontSize" Value="12"/>
      <Setter Property="FontWeight" Value="Light"/>
      <Setter Property="Margin" Value="10,0,0,0"/>
   </Style>

   <Style x:Key="OnlyProdToolBar_SmallButton" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="20"/>
      <Setter Property="Width" Value="20"/>
      <Setter Property="Margin" Value="35,0,0,0"/>
   </Style>

   <Style x:Key="OnlyProdToolBarInverted_SmallButton" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="20"/>
      <Setter Property="Width" Value="20"/>
      <Setter Property="Margin" Value="0,0,40,0"/>
   </Style>

   <Style x:Key="GeneralConfigurationToolBar_TextButton" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="80"/>
      <Setter Property="Margin" Value="5,0,5,0"/>
   </Style>

   <Style x:Key="MachineToolBar_ParameterMachineButton" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="120"/>
      <Setter Property="Margin" Value="5,0,0,0"/>
   </Style>

   <Style x:Key="SnapPointType_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
      <Setter Property="Width" Value="100"/>
   </Style>

   <Style x:Key="OnlyProdNestingRunningWndV_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="70"/>
   </Style>

   <Style x:Key="OnlyProdWarehouseWndV_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="FontWeight" Value="Light"/>
      <Setter Property="FontSize" Value="20"/>
   </Style>

   <Style x:Key="OKAddParam_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Margin" Value="0,0,2.5,0"/>
   </Style>

   <Style x:Key="CancelAddParam_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Margin" Value="2.5,0,0,0"/>
   </Style>

   <Style x:Key="CopyToClipboard_ToolBar_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
   </Style>

   <Style x:Key="OnlyProdEgtWPFLib5_InputButton" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="80"/>
   </Style>

   <Style x:Key="OnlyProdWWnd_SmallButton" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="20"/>
      <Setter Property="Width" Value="20"/>
   </Style>

   <Style x:Key="SaveOptionPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="25"/>
      <Setter Property="Width" Value="25"/>
      <Setter Property="Margin" Value="5,0,0,0"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="HorizontalAlignment" Value="Center"/>
   </Style>

   <Style x:Key="SaveMachinePanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="50"/>
      <Setter Property="Width" Value="50"/>
      <Setter Property="Margin" Value="50"/>
      <Setter Property="VerticalAlignment" Value="Bottom"/>
      <Setter Property="HorizontalAlignment" Value="Right"/>
   </Style>

   <Style x:Key="OnlyProdLeftPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Margin" Value="2.5,2.5,2.5,2.5"/>
   </Style>

   <Style x:Key="OnlyProdPDFPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="40"/>
      <Setter Property="Width" Value="120"/>
      <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="5,0,5,5"/>
   </Style>

   <Style x:Key="OnlyProdClose_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="40"/>
      <Setter Property="Width" Value="50"/>
      <Setter Property="Margin" Value="2.5,-2,2.5,2.5"/>
   </Style>

   <Style x:Key="OnlyProdMainMenu_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="TextBlock.FontWeight" Value="Normal"/>
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="90"/>
      <Setter Property="Background">
         <Setter.Value>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
               <GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="0"/>
               <GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.65"/>
               <GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="1"/>
            </LinearGradientBrush>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion Button Style-->

   <!--#region ToggleButton Style-->

   <Style x:Key="Radio_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Background" Value="#E0E0E0"/>
      <Setter Property="BorderThickness" Value="0"/>
      <Style.Resources>
         <Style TargetType="Border">
            <Setter Property="CornerRadius" Value="0"/>
         </Style>
      </Style.Resources>
   </Style>

   <Style x:Key="ToolBarOnlyProdPage_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="30"/>
      <Setter Property="Margin" Value="5,2,5,2"/>
   </Style>

   <Style x:Key="ToolBar_SmallToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
      <Setter Property="Height" Value="20"/>
      <Setter Property="Width" Value="20"/>
      <Setter Property="Margin" Value="5,0,0,0"/>
   </Style>

   <Style x:Key="ToolBar_TextToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
      <Setter Property="Height" Value="30"/>
      <Setter Property="Width" Value="70"/>
   </Style>

   <Style x:Key="OnlyProdMainMenu_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
      <Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="TextBlock.FontWeight" Value="Normal"/>
      <Setter Property="FontSize" Value="15"/>
      <Setter Property="Background">
         <Setter.Value>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
               <GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="0"/>
               <GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.65"/>
               <GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="1"/>
            </LinearGradientBrush>
         </Setter.Value>
      </Setter>
      <Style.Triggers>
         <Trigger Property="IsChecked" Value="True">
            <Setter Property="TextBlock.FontWeight" Value="ExtraBold"/>
            <Setter Property="TextBlock.Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
         </Trigger>
      </Style.Triggers>
   </Style>

   <!--#endregion ToggleButton Style-->

   <!--#region TextBox-->

   <Style x:Key="Dimension_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Width" Value="45"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="Qty_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Width" Value="40"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="FreeContour_TextBox" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="HorizontalContentAlignment" Value="Right"/>
      <Setter Property="Width" Value="200"/>
      <Setter Property="Margin" Value="5,0,5,0"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="SearchText_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Margin" Value="0,2,0,0"/>
      <Setter Property="VerticalAlignment" Value="Top"/>
   </Style>

   <Style x:Key="NAM_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Width" Value="200"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="Value_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Width" Value="65"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <Style x:Key="OnlyProdWarehouseWndV_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Width" Value="70"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
      <Setter Property="Margin" Value="15,5"/>
   </Style>

   <Style x:Key="New_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Width" Value="100"/>
      <Setter Property="Margin" Value="5"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
      <Setter Property="HorizontalAlignment" Value="Right"/>
   </Style>

   <Style x:Key="NewSearchText_TextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
      <Setter Property="Margin" Value="5"/>
      <Setter Property="TextWrapping" Value="Wrap"/>
   </Style>

   <!--#endregion TextBox-->

   <!--#region Border-->

   <Style x:Key="OnlyProdPage_Border" TargetType="{x:Type Border}">
      <Setter Property="CornerRadius" Value="4"/>
      <Setter Property="BorderThickness" Value="2"/>
      <Setter Property="BorderBrush" Value="{StaticResource BeamWall_Glacier}"/>
   </Style>

   <Style x:Key="OnlyProdTotalTimeOTT_Border" TargetType="{x:Type Border}">
      <Setter Property="BorderBrush" Value="{StaticResource BeamWall_Kashmir}"/>
      <Setter Property="Background" Value="{StaticResource BeamWall_Kashmir}"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="BorderThickness" Value="2"/>
      <Setter Property="Padding" Value="20,2,20,2"/>
      <Setter Property="Margin" Value="2,2,20,2"/>
   </Style>

   <Style x:Key="OnlyProdDoneTime_Border" TargetType="{x:Type Border}">
      <Setter Property="BorderBrush" Value="{StaticResource BeamWall_FruitSalad}"/>
      <Setter Property="Background" Value="{StaticResource BeamWall_FruitSalad}"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="BorderThickness" Value="2"/>
      <Setter Property="Padding" Value="20,2,20,2"/>
      <Setter Property="Margin" Value="2,2,20,2"/>
   </Style>

   <Style x:Key="OnlyProdRemainingTime_Border" TargetType="{x:Type Border}">
      <Setter Property="BorderBrush" Value="{StaticResource BeamWall_FuelYellow}"/>
      <Setter Property="Background" Value="{StaticResource BeamWall_FuelYellow}"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="BorderThickness" Value="2"/>
      <Setter Property="Padding" Value="20,2,20,2"/>
      <Setter Property="Margin" Value="2"/>
   </Style>

   <Style x:Key="OnlyProdQty_Border" TargetType="{x:Type Border}">
      <Setter Property="Background" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="Margin" Value="15,20,25,0"/>
   </Style>

   <Style x:Key="OnlyProdDimension_Border" TargetType="{x:Type Border}">
      <Setter Property="Background" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="Margin" Value="10,20,30,0"/>
   </Style>

   <Style x:Key="OnlyProdCommand_Border" TargetType="{x:Type Border}">
      <Setter Property="Background" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="Margin" Value="15,10,-180,20"/>
   </Style>

   <Style x:Key="OnlyProdUnitTime_Border" TargetType="{x:Type Border}">
      <Setter Property="Background" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="Margin" Value="200,10,30,20"/>
   </Style>

   <Style x:Key="OnlyProdQParameterList_Border" TargetType="{x:Type Border}">
      <Setter Property="BorderBrush" Value="{StaticResource BeamWall_Glacier}"/>
      <Setter Property="Margin" Value="1,0,0,0"/>
      <Setter Property="BorderThickness" Value="2"/>
      <Setter Property="CornerRadius" Value="4"/>
   </Style>

   <Style x:Key="CALC_FALL_Border" TargetType="{x:Type Border}">
      <Setter Property="BorderThickness" Value="2"/>
      <Setter Property="Padding" Value="1"/>
   </Style>

   <Style x:Key="OnlyProdProjectTypeWndV_Border" TargetType="{x:Type Border}">
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="BorderBrush" Value="DarkGray"/>
      <Setter Property="Background" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="Margin" Value="5"/>
   </Style>

   <!--#endregion Border-->

   <!--#region EgtCustomWindow-->

   <Style x:Key="OnlyProd_EgtCustomWindow" TargetType="{x:Type EgtWPFLib5:EgtCustomWindow}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtCustomWindow}}">
      <Setter Property="TitleBarHeight" Value="32"/>
      <Setter Property="TitleBarBrush" Value="{StaticResource BeamWall_Glacier}"/>
      <Setter Property="BorderBrush" Value="{StaticResource BeamWall_Kashmir}"/>
      <Setter Property="TitleBarForeground" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="ShowInTaskbar" Value="False"/>
      <Setter Property="Background">
         <Setter.Value>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.35,0">
               <GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
               <GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
               <GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
            </LinearGradientBrush>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion EgtCustomWindow-->

   <!--#region EgtFloatingPanel-->

   <Style x:Key="ToolBar_EgtFloatingPanel_OnlyProd" TargetType="{x:Type EgtFloating:EgtFloatingPanel}" BasedOn="{StaticResource {x:Type EgtFloating:EgtFloatingPanel}}">
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="BorderBrush" Value="Transparent"/>
   </Style>

   <Style x:Key="ToolBar_EgtFloatingPanel_OnlyProdManager" TargetType="{x:Type EgtFloating:EgtFloatingPanel}" BasedOn="{StaticResource {x:Type EgtFloating:EgtFloatingPanel}}">
      <Setter Property="Background" Value="{StaticResource BeamWall_White}"/>
      <Setter Property="BorderBrush" Value="{StaticResource BeamWall_White}"/>
   </Style>

   <!--#endregion EgtFloatingPanel-->

   <!--#region ComboBox-->

   <Style x:Key="OnlyProdCalcPanel_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource OnlyProd_ComboBox}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="150"/>
   </Style>

   <Style x:Key="OnlyProdType_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource OnlyProd_ComboBox}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="160"/>
      <Setter Property="Margin" Value="5,0,5,0"/>
   </Style>

   <Style x:Key="OnlyProdPath_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource OnlyProd_ComboBox}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="100"/>
      <Setter Property="Margin" Value="0,0,5,0"/>
   </Style>

   <Style x:Key="OnlyProdOptimizePanel_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource OnlyProd_ComboBox}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="85"/>
   </Style>

   <Style x:Key="BTLDateTypeList_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource OnlyProd_ComboBox}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="MinWidth" Value="55"/>
      <Setter Property="Width" Value="105"/>
      <Setter Property="Margin" Value="5"/>
   </Style>

   <Style x:Key="DayTypeList_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource OnlyProd_ComboBox}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="105"/>
      <Setter Property="Margin" Value="0,0,2.5,0"/>
   </Style>

   <Style x:Key="OnyProd_FeatureComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource OnlyProd_ComboBox}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="MinWidth" Value="55"/>
   </Style>

   <Style x:Key="OnlyProdWarehouse_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource OnlyProd_ComboBox}">
      <Setter Property="Height" Value="22"/>
      <Setter Property="Width" Value="100"/>
   </Style>

   <!--#endregion ComboBox-->

   <!--#region CheckBox-->

   <Style x:Key="FreeContourInput_CheckBox" TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}">
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="5,0,5,0"/>
   </Style>

   <Style x:Key="OnlyProdFeatureInPartInRawPartList_CheckBox" TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}">
      <Setter Property="VerticalAlignment" Value="Center"/>
      <Setter Property="HorizontalAlignment" Value="Center"/>
   </Style>

   <!--#endregion CheckBox-->

   <!--#region TabControl-->

   <Style x:Key="OnlyProd_TabControl" TargetType="{x:Type TabControl}">
      <Setter Property="TabStripPlacement" Value="Top"/>
      <Setter Property="Margin" Value="5,5,2.5,5"/>
      <Setter Property="Background">
         <Setter.Value>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.35,0">
               <GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
               <GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
               <GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
            </LinearGradientBrush>
         </Setter.Value>
      </Setter>
      <Style.Resources>
         <Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource OnlyProd_TabItem}"/>
      </Style.Resources>
   </Style>

   <Style x:Key="OnlyProdTabControl_OnlyHeaders"  TargetType="{x:Type TabControl}" BasedOn="{StaticResource OnlyProd_TabControl}">
      <Setter Property="OverridesDefaultStyle" Value="True" />
      <Setter Property="SnapsToDevicePixels" Value="True" />
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type TabControl}">
               <Grid KeyboardNavigation.TabNavigation="Local">
                  <Grid.RowDefinitions>
                     <RowDefinition Height="Auto"/>
                     <RowDefinition Height="*"/>
                  </Grid.RowDefinitions>
                  <TabPanel Name="HeaderPanel"
                            Grid.Row="0"
                            Panel.ZIndex="1" 
                            Margin="0,0,4,-1" 
                            IsItemsHost="True"
                            KeyboardNavigation.TabIndex="1"
                            Background="Transparent" />
               </Grid>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsEnabled" Value="False">
                     <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>
   
   <!--#endregion TabControl-->

   <!--#region Image-->

   <Style x:Key="UnitTime_Image" TargetType="{x:Type Image}">
      <Setter Property="Height" Value="15"/>
      <Setter Property="Stretch" Value="Uniform"/>
   </Style>

   <Style x:Key="Macro_Image" TargetType="{x:Type Image}">
      <Setter Property="Width" Value="300"/>
      <Setter Property="Margin" Value="5,0,5,5"/>
   </Style>

   <Style x:Key="OnlyProdFeatureList_Image" TargetType="{x:Type Image}">
      <Setter Property="Stretch" Value="Uniform"/>
      <Setter Property="Margin" Value="2.5"/>
   </Style>

   <Style x:Key="Archived_Image" TargetType="{x:Type Image}">
      <Setter Property="Width" Value="15"/>
      <Setter Property="Height" Value="15"/>
      <Setter Property="Stretch" Value="UniformToFill"/>
   </Style>

   <!--#endregion Image-->

   <!--#region DataGridRow/DataGridCell-->

   <Style x:Key="RowDataGrid_CustomHighLight" TargetType="{x:Type DataGridRow}">
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}" />
      <Style.Resources>
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="Black" />
      </Style.Resources>
      <Style.Triggers>
         <Trigger Property="IsSelected" Value="True">
            <Setter Property="BorderBrush" Value="{StaticResource BeamWall_FountainBlue}" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="{StaticResource BeamWall_White}" />
            <Setter Property="Background" Value="{StaticResource BeamWall_FountainBlue}" />
         </Trigger>
      </Style.Triggers>
   </Style>

   <Style x:Key="CellDataGrid_CustomHighLight" TargetType="{x:Type DataGridCell}">
      <Setter Property="Height" Value="23"/>
      <Setter Property="Foreground" Value="{StaticResource BeamWall_Corduroy}" />
      <Style.Resources>
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="Black" />
      </Style.Resources>
      <Style.Triggers>
         <Trigger Property="IsSelected" Value="True">
            <Setter Property="BorderBrush" Value="{StaticResource BeamWall_FountainBlue}" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="{StaticResource BeamWall_White}" />
            <Setter Property="Background" Value="{StaticResource BeamWall_FountainBlue}" />
         </Trigger>
      </Style.Triggers>
   </Style>

   <Style x:Key="RowDataGrid_CustomHighLight_PartList" TargetType="{x:Type DataGridRow}">
      <Style.Resources>
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="Black" />
      </Style.Resources>
      <Style.Triggers>
         <Trigger Property="IsSelected" Value="True">
            <Setter Property="BorderBrush" Value="{StaticResource BeamWall_YellowOrange}" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="{StaticResource BeamWall_White}" />
            <Setter Property="Background" Value="{StaticResource BeamWall_YellowOrange}" />
         </Trigger>
      </Style.Triggers>
   </Style>

   <Style x:Key="CellDataGrid_CustomHighLight_PartList" TargetType="{x:Type DataGridCell}">
      <Setter Property="Height" Value="23" />
      <Style.Resources>
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent" />
         <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="Black" />
      </Style.Resources>
      <Style.Triggers>
         <Trigger Property="IsSelected" Value="True">
            <Setter Property="BorderBrush" Value="{StaticResource BeamWall_YellowOrange}" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="{StaticResource BeamWall_White}" />
            <Setter Property="Background" Value="{StaticResource BeamWall_YellowOrange}" />
         </Trigger>
      </Style.Triggers>
   </Style>

   <!--#endregion DataGridRow/DataGridCell-->

   <!--#region ItemsControl-->

   <Style x:Key="CALC_FALL_ItemsControl" TargetType="{x:Type ItemsControl}" BasedOn="{StaticResource {x:Type ItemsControl}}">
      <Setter Property="Margin" Value="0"/>
      <Setter Property="Padding" Value="0"/>
   </Style>

   <Style x:Key="ProjFileList_ItemsControl" TargetType="{x:Type ItemsControl}" BasedOn="{StaticResource {x:Type ItemsControl}}">
      <Setter Property="Margin" Value="0,-1,0,0"/>
      <Setter Property="Padding" Value="0"/>
      <Setter Property="BorderThickness" Value="0"/>
   </Style>

   <!--#endregion ItemsControl-->

   <!--#region StackPanel-->

   <Style x:Key="OnlyProdBTLPartManager_StackPanel" TargetType="{x:Type StackPanel}">
      <Setter Property="Orientation" Value="Horizontal"/>
      <Setter Property="HorizontalAlignment" Value="Right"/>
      <Setter Property="Margin" Value="0,1,30,1"/>
   </Style>

   <Style x:Key="OnlyProdFeatureListManager_StackPanel" TargetType="{x:Type StackPanel}">
      <Setter Property="Orientation" Value="Horizontal"/>
      <Setter Property="HorizontalAlignment" Value="Right"/>
      <Setter Property="Margin" Value="0,1,60,1"/>
      <Setter Property="Height" Value="40"/>
   </Style>

   <Style x:Key="OnlyProdRawPartManager_StackPanel" TargetType="{x:Type StackPanel}">
      <Setter Property="Orientation" Value="Horizontal"/>
      <Setter Property="HorizontalAlignment" Value="Left"/>
      <Setter Property="Margin" Value="30,1,0,1"/>
   </Style>

   <Style x:Key="OnlyProdLeftPanel_StackPanel" TargetType="{x:Type StackPanel}">
      <Setter Property="Orientation" Value="Horizontal"/>
      <Setter Property="HorizontalAlignment" Value="Left"/>
      <Setter Property="Margin" Value="10,1,0,1"/>
   </Style>

   <!--#endregion StackPanel-->

   <!--#region ListBox-->

   <Style x:Key="NewAddFeature_ListBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="Height" Value="585"/>
      <Setter Property="Width" Value="260"/>
      <Setter Property="Margin" Value="5"/>
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="AlternationCount" Value="2"/>
      <Style.Resources>
         <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource OnlyProd_ScrollBar}"/>
      </Style.Resources> 
   </Style>

   <Style x:Key="MacroCustom_ListBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
      <Setter Property="Height" Value="610"/>
      <Setter Property="Width" Value="980"/>
      <Setter Property="Margin" Value="5"/>
      <Setter Property="Background" Value="Transparent"/>
   </Style>

   <Style x:Key="MacroDefault_ListBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="HorizontalAlignment" Value="Left"/>
      <Setter Property="Height" Value="585"/>
      <Setter Property="Width" Value="250"/>
      <Setter Property="Margin" Value="5"/>
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="AlternationCount" Value="2"/>
      <Style.Resources>
         <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource OnlyProd_ScrollBar}"/>
      </Style.Resources>
   </Style>

   <Style x:Key="FeatureManager_ListBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="HorizontalContentAlignment" Value="Center"/>
      <Setter Property="Height" Value="82"/>
      <Setter Property="Width" Value="80"/>
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="AlternationCount" Value="2"/>
   </Style>

   <Style x:Key="OnlyProdLeftPanel_ListBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="BorderThickness" Value="0"/>
      <Setter Property="HorizontalContentAlignment" Value="Center"/>
      <Setter Property="Height" Value="150"/>
      <Setter Property="Width" Value="130"/>
      <Setter Property="AlternationCount" Value="2"/>
      <Style.Resources>
         <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource OnlyProd_ScrollBar}"/>
      </Style.Resources>
   </Style>

   <Style x:Key="AlternationIndex_ListBoxItem" TargetType="{x:Type ListBoxItem}">
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type ListBoxItem}">
               <Border Name="_itemContainer"
                       Padding="0"
                       BorderBrush="Transparent"
                       BorderThickness="1"
                       SnapsToDevicePixels="True">
                  <ContentPresenter />
               </Border>
               <ControlTemplate.Triggers>
                  <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                     <Setter Property="TextBlock.Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
                     <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                     <Setter Property="TextBlock.FontSize" Value="13"/>
                  </Trigger>
                  <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                     <Setter Property="Foreground" Value="{StaticResource BeamWall_LinkWater}" />
                     <Setter TargetName="_itemContainer" Property="BorderBrush" Value="{StaticResource BeamWall_LinkWater}" />
                     <Setter TargetName="_itemContainer" Property="Background" Value="{StaticResource BeamWall_LinkWater}" />
                     <Setter Property="TextBlock.Foreground" Value="{StaticResource BeamWall_Corduroy}"/>
                     <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                     <Setter Property="TextBlock.FontSize" Value="13"/>
                  </Trigger>
                  <Trigger Property="IsSelected" Value="True">
                     <Setter TargetName="_itemContainer" Property="BorderBrush" Value="{StaticResource BeamWall_FountainBlue}" />
                     <Setter TargetName="_itemContainer" Property="Background" Value="{StaticResource BeamWall_FountainBlue}" />
                     <Setter Property="TextBlock.Foreground" Value="{StaticResource BeamWall_White}"/>
                     <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                     <Setter Property="FontWeight" Value="Bold"/>
                     <Setter Property="TextBlock.FontSize" Value="14"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <Style x:Key="OnlyProdWarehouseWndV_ListBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
      <Setter Property="Margin" Value="5"/>
      <Setter Property="MinHeight" Value="40"/>
   </Style>

   <!--#endregion ListBox-->

   <!--#region WrapPanel-->

   <Style x:Key="OnlyProdProject_WrapPanel" TargetType="{x:Type WrapPanel}">
      <Setter Property="Orientation" Value="Horizontal"/>
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="5"/>
      <Setter Property="Grid.ColumnSpan" Value="2"/>
   </Style>

   <Style x:Key="MacroCustom_WrapPanel" TargetType="{x:Type WrapPanel}">
      <Setter Property="Orientation" Value="Horizontal"/>
      <Setter Property="IsItemsHost" Value="True"/>
   </Style>

   <!--#endregion WrapPanel-->

   <!--#region Grid-->

   <Style x:Key="OnlyProdPartManager_Grid" TargetType="{x:Type Grid}">
      <Setter Property="Background" Value="{StaticResource BeamWall_Glacier}"/>
      <Setter Property="Height" Value="120"/>
      <Setter Property="Margin" Value="0,10,0,40"/>
   </Style>

   <Style x:Key="OnlyProdAddPart_Grid" TargetType="{x:Type Grid}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="0,0,0,5"/>
   </Style>

   <Style x:Key="GlobalState_Grid" TargetType="{x:Type Grid}">
      <Setter Property="Margin" Value="2,0,0,0"/>
      <Setter Property="HorizontalAlignment" Value="Center"/>
   </Style>

   <Style x:Key="OnlyProdProjectType_Grid" TargetType="{x:Type Grid}">
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="Margin" Value="15"/>
   </Style>

   <Style x:Key="ProjFileList_Grid" TargetType="{x:Type Grid}">
      <Setter Property="TextBlock.FontSize" Value="12"/>
      <Setter Property="TextBlock.FontWeight" Value="Normal"/>
   </Style>

   <Style x:Key="Gray_Grid" TargetType="{x:Type Grid}">
      <Setter Property="Background" Value="Gray"/>
      <Setter Property="Margin" Value="40,0,40,0"/>
   </Style>

   <!--#endregion Grid-->

   <!--#region Ellipse-->

   <Style x:Key="CALC_ROT_Ellipse" TargetType="{x:Type Ellipse}">
      <Setter Property="Fill" Value="{StaticResource Omag_Red}"/>
      <Setter Property="Width" Value="5"/>
      <Setter Property="Height" Value="5"/>
      <Setter Property="HorizontalAlignment" Value="Center"/>
      <Setter Property="VerticalAlignment" Value="Top"/>
      <Setter Property="Margin" Value="2,1,-2,0"/>
   </Style>

   <Style x:Key="OnlyProdFeatureInPartInRawPartList_Ellipse" TargetType="{x:Type Ellipse}">
      <Setter Property="Fill" Value="{StaticResource Omag_Red}"/>
      <Setter Property="Width" Value="5"/>
      <Setter Property="Height" Value="5"/>
      <Setter Property="HorizontalAlignment" Value="Center"/>
   </Style>

   <!--#endregion Ellipse-->

   <!--#region ProgressBar-->

   <Style x:Key="OnlyProdNestingRunningWndV_ProgressBar" TargetType="{x:Type ProgressBar}">
      <Setter Property="Minimum" Value="0"/>
      <Setter Property="Maximum" Value="100"/>
      <Setter Property="Height" Value="20"/>
      <Setter Property="Margin" Value="40,0,40,0"/>
   </Style>

   <!--#endregion ProgressBar-->

   <!--#region ScrollViewer-->

   <Style x:Key="OnlyProd_ScrollViewer" TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource {x:Type ScrollViewer}}">
      <Setter Property="CanContentScroll" Value="True"/>
      <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
      <Setter Property="Margin" Value="2.5,2.5,2.5,2.5"/>
      <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
      <Style.Resources>
         <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource OnlyProd_ScrollBar}"/>
      </Style.Resources>
   </Style>

   <!--#endregion ScrollViewer-->

   <!--#endregion GRAFICA NUOVA PAGINA-->

   <!--#region Finestre Egt-->

   <!--EgtHexagon-->

   <EgtWPFLib5:HexClipConverter x:Key="ClipConverter"/>

   <Style TargetType="{x:Type EgtWPFLib5:EgtHexItem}" x:Key="EgtHexItem">
      <Setter Property="Background" Value="CornflowerBlue"/>
      <Setter Property="BorderBrush" Value="Black"/>
      <Setter Property="BorderThickness" Value="1.5"/>
      <Setter Property="HorizontalContentAlignment" Value="Center"/>
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="EgtWPFLib5:EgtHexItem">
               <Grid Name="hexBorder" Background="{TemplateBinding BorderBrush}">
                  <Grid.Clip>
                     <MultiBinding Converter="{StaticResource ClipConverter}">
                        <Binding Path="ActualWidth" ElementName="hexBorder"/>
                        <Binding Path="ActualHeight" ElementName="hexBorder"/>
                        <Binding Path="Orientation" RelativeSource="{RelativeSource TemplatedParent}"/>
                     </MultiBinding>
                  </Grid.Clip>

                  <Grid Name="hexContent"                              
                      Background="{TemplateBinding Background}"
                      Margin="{TemplateBinding BorderThickness}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                     <Grid.Clip>
                        <MultiBinding Converter="{StaticResource ClipConverter}">
                           <Binding Path="ActualWidth" ElementName="hexContent"/>
                           <Binding Path="ActualHeight" ElementName="hexContent"/>
                           <Binding Path="Orientation" RelativeSource="{RelativeSource TemplatedParent}"/>
                        </MultiBinding>
                     </Grid.Clip>

                     <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                      HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                      ClipToBounds="True"
                                      Margin="{TemplateBinding Padding}"
                                      Content="{TemplateBinding Content}"
                                      ContentTemplate="{TemplateBinding ContentTemplate}"/>
                  </Grid>
               </Grid>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsSelected" Value="True">
                     <Setter Property="BorderBrush" Value="Gold"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <!--HexList-->
   <Style TargetType="{x:Type EgtWPFLib5:EgtHexList}" x:Key="EgtHexList">
      <Setter Property="ItemsPanel">
         <Setter.Value>
            <ItemsPanelTemplate>
               <EgtWPFLib5:EgtHexagon ColumnCount="{Binding Path=ColumnCount, RelativeSource={RelativeSource AncestorType=ListBox}}"
                                      RowCount="{Binding Path=RowCount, RelativeSource={RelativeSource AncestorType=ListBox}}"
                                      Background="{Binding Path=Background, RelativeSource={RelativeSource AncestorType=ListBox}}"/>
            </ItemsPanelTemplate>
         </Setter.Value>
      </Setter>

      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type EgtWPFLib5:EgtHexList}">
               <Grid>
                  <Border BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}" 
                            Background="{TemplateBinding Background}" 
                            Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
                     <ScrollViewer Focusable="False" 
                                      HorizontalScrollBarVisibility="Auto"
                                      VerticalScrollBarVisibility="Auto"
                                      Padding="{TemplateBinding Padding}">
                        <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                     </ScrollViewer>
                  </Border>
               </Grid>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

   <!--#endregion Finestre Egt-->

   <!--#region EgtManageDialog-->

   <Style x:Key="RightPanel_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="24"/>
      <Setter Property="Width" Value="64"/>
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="FontSize" Value="12"/>
      <Setter Property="HorizontalAlignment" Value="Right"/>
      <Setter Property="Margin" Value="2.5,0,5,0"/>
      <Setter Property="BorderBrush" Value="Transparent"/>
   </Style>

   <Style x:Key="Button_Image" TargetType="{x:Type Image}">
      <Setter Property="Stretch" Value="Uniform" />
   </Style>

   <Style x:Key="RightPanel_ComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="Height" Value="25"/>
      <Setter Property="HorizontalAlignment" Value="Left"/>
      <Setter Property="Width" Value="200"/>
   </Style>

   <Style x:Key="ParameterList_TextBox" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
      <Setter Property="TextAlignment" Value="Center"/>
      <Setter Property="HorizontalAlignment" Value="Stretch"/>
      <Setter Property="Height" Value="22"/>
      <Setter Property="FontWeight" Value="Normal"/>
      <Setter Property="FontSize" Value="12"/>
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="TextAlignment" Value="Right"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
   </Style>

   <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>

   <Style x:Key="OnlyRightPanel_HalfRound_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource OnlyProd_Button}">
      <Setter Property="Height" Value="24"/>
      <Setter Property="Width" Value="64"/>
      <Setter Property="BorderThickness" Value="1,1,1,0"/>
   </Style>

   <Style x:Key="RightPanel_HalfRound_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="24"/>
      <Setter Property="Width" Value="64"/>
      <Setter Property="BorderThickness" Value="1,1,1,0"/>
   </Style>

   <Style x:Key="LeftPanel_TextButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="Height" Value="30"/>
   </Style>

   <Style x:Key="ColorPicker_TextBox" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="TextAlignment"  Value="Center"/>
      <Setter Property="HorizontalAlignment" Value="Stretch"/>
      <Setter Property="Width" Value="65"/>
   </Style>

   <!--#endregion EgtManageDialog-->
   
</ResourceDictionary>
