title: WPF styles not being applied from App.xaml
body: <p>I'm looking to apply styling to all WPF controls like what can be done with CSS in HTML. </p>
  
  <p>This is my first dabbling in WPF and I've collected that I need to do this in App.xaml. Below is what I've got. </p>
  
  <p>I've tried <code>TargetType="{x:Type TabItem}"</code> and <code>TargetType="TabItem"</code>.</p>
  
  <p>None of the styles I've defined are being applied.</p>
  
  <p><strong>App.xaml</strong></p>
  
  <pre><code>&lt;Application x:Class="VMware_Lab_Manager_Desktop.App"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               StartupUri="MainWindow.xaml"&gt;
      &lt;Application.Resources&gt;
          &lt;ResourceDictionary Source="Styles.xaml"&gt;&lt;/ResourceDictionary&gt;
      &lt;/Application.Resources&gt;
  &lt;/Application&gt;
  </code></pre>
  
  <p><strong>Styles.xaml</strong></p>
  
  <pre><code>&lt;ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt;
      &lt;Style TargetType="{x:Type TabControl}"&gt;
          &lt;Setter Property="Background"&gt;
              &lt;Setter.Value&gt;
                  &lt;LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"&gt;
                      &lt;GradientStop Color="#FF464646" Offset="0" /&gt;
                      &lt;GradientStop Color="#FF2D2D2D" Offset="0.5" /&gt;
                      &lt;GradientStop Color="#FF141414" Offset="1" /&gt;
                  &lt;/LinearGradientBrush&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  
      &lt;Style TargetType="{x:Type TabItem}"&gt;
          &lt;Setter Property="Background"&gt;
              &lt;Setter.Value&gt;
                  &lt;LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"&gt;
                      &lt;GradientStop Color="#FF464646" Offset="0" /&gt;
                      &lt;GradientStop Color="#FF2D2D2D" Offset="0.5" /&gt;
                      &lt;GradientStop Color="#FF141414" Offset="1" /&gt;
                  &lt;/LinearGradientBrush&gt;
  
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
          &lt;Setter Property="BorderBrush"&gt;
              &lt;Setter.Value&gt;
                  &lt;LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"&gt;
                      &lt;GradientStop Color="Black" Offset="0" /&gt;
                      &lt;GradientStop Color="#FF464646" Offset="1" /&gt;
                  &lt;/LinearGradientBrush&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  
      &lt;Style TargetType="{x:Type Window}"&gt;
          &lt;Setter Property="Background"&gt;
              &lt;Setter.Value&gt;
                  &lt;LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"&gt;
                      &lt;GradientStop Color="#FF2D2D2D" Offset="0.5" /&gt;
                      &lt;GradientStop Color="#FF141414" Offset="0" /&gt;
                      &lt;GradientStop Color="#FF464646" Offset="1" /&gt;
                  &lt;/LinearGradientBrush&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p><strong>MainWindow.xaml</strong></p>
  
  <pre><code>&lt;Window x:Class="VMware_Lab_Manager_Desktop.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="456" Width="803" Padding="0" Margin="0"&gt;
  
      &lt;TabControl HorizontalAlignment="Stretch" Margin="0" Padding="0" Name="tabControl1" VerticalAlignment="Stretch" BorderThickness="0" TabStripPlacement="Bottom"&gt;
          &lt;TabItem Name="tabItem1" Header="..."&gt;
              &lt;WebBrowser  HorizontalAlignment="Stretch" Name="webBrowser1" Margin="0" VerticalAlignment="Stretch" Source="http://www.msdn.com/" /&gt;
          &lt;/TabItem&gt;
          &lt;TabItem Header="+" /&gt;
      &lt;/TabControl&gt;
  &lt;/Window&gt;
  </code></pre>