<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"  
    xmlns:bgc="clr-namespace:BuzzGUI.Common;assembly=BuzzGUI.Common"             
    xmlns:vsm="clr-namespace:System.Windows;assembly=BuzzGUI.Common"             
    xmlns:local="clr-namespace:BuzzGUI.MachineView;assembly=BuzzGUI.MachineView">

  <Style x:Key="ConnectionAmpControlStyleBase" TargetType="{x:Type local:AmpControl}">
    <Style.Resources>
      <Style TargetType="{x:Type Border}">
        <Setter Property="Padding" Value="4"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CornerRadius" Value="0"/>
        <Setter Property="Background">
          <Setter.Value>
            <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
              <GradientStop Offset="0" Color="#60000000"/>
              <GradientStop Offset="1" Color="#70000000"/>
<!--
              <GradientStop Offset="0" Color="#DD4682B4"/>
-->
            </LinearGradientBrush>
          </Setter.Value>
        </Setter>
      </Style>
      <Style TargetType="{x:Type Grid}">
<!--
        <Setter Property="Effect">
          <Setter.Value>
            <DropShadowEffect BlurRadius="0" ShadowDepth="2"/>
          </Setter.Value>
        </Setter>
-->
      </Style>
      <Style TargetType="{x:Type bgc:Knob}">
        <Setter Property="Width" Value="24"/>
        <Setter Property="Height" Value="24"/>
      </Style>
      <Style TargetType="{x:Type TextBlock}">
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="White"/>
      </Style>
      <Style TargetType="{x:Type Viewbox}">
        <Setter Property="Width" Value="50"/>
        <Setter Property="MaxHeight" Value="16"/>
      </Style>


    </Style.Resources>    
  </Style>

  <Style x:Key="SimpleButtonStyle" TargetType="{x:Type Button}">
    <Setter Property="SnapsToDevicePixels" Value="true"/>
    <Setter Property="OverridesDefaultStyle" Value="true"/>
  </Style>

  <Style x:Key="InsertButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource SimpleButtonStyle}">
    <Setter Property="ToolTip" Value="Insert New Effect"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Image Name="image" Width="38" Source="gfx/InsertButtonGray.png"/>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
              <Setter TargetName="image" Property="Source" Value="gfx/InsertButtonGrayGlow.png"/>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="DisconnectButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource SimpleButtonStyle}">
    <Setter Property="ToolTip" Value="Disconnect"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Image Name="image" Width="38" Source="gfx/DisconnectButtonGray.png"/>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
              <Setter TargetName="image" Property="Source" Value="gfx/DisconnectButtonGrayGlow.png"/>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  

  
</ResourceDictionary>