title: Change style of existing theme (AvalonDock)
body: <p>I want to change the Metro theme color of AvalonDock. I also asked <a href="https://avalondock.codeplex.com/discussions/565560" rel="noreferrer">a related question on Codeplex</a> but I didn't got an answer so far.</p>
  
  <p>I identified the following XAML (<a href="https://avalondock.codeplex.com/SourceControl/latest#Version2.0/Xceed.Wpf.AvalonDock.Themes.Metro/Theme.xaml" rel="noreferrer">source file</a>) as the piece that, I guess, is responsible for the color I want to change:</p>
  
  <pre><code>&lt;Style TargetType="avalonDockControls:AnchorablePaneTitle"&gt;
    &lt;Setter Property="Template"&gt;
      &lt;Setter.Value&gt;
        &lt;ControlTemplate&gt;
        ...
          &lt;ControlTemplate.Triggers&gt;
          ...
          &lt;DataTrigger Binding="{Binding Model.IsActive, RelativeSource={RelativeSource Mode=Self}}" Value="True"&gt;
  
            &lt;!-- following XAML line --&gt;
            &lt;Setter Property="BorderBrush" Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}" /&gt;
  
            &lt;Setter Property="BorderThickness" Value="0,3,0,0"/&gt;
          &lt;/DataTrigger&gt;
          ...
          &lt;/ControlTemplate.Triggers&gt;
  
      ...
  </code></pre>
  
  <p>You can see: the brush gets the BaseColor3 (a bluish color by default).</p>
  
  <p>Now I changed the color like that in my XAML:</p>
  
  <pre><code>&lt;Window.Resources&gt;
    ...
    &lt;SolidColorBrush x:Key="AvalonDock_ThemeMetroBaseColor3" Color="Red" /&gt;
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>Nothing changes. The color stay bluish. Now I am confused. So it must be the wrong property to change or something prevents the color to change or/and internal it uses the old value or something...</p>
  
  <p>Why is it not working? How can I discover such problems and fix it?</p>