title: Skinning: Using a Color as StaticResource for another Color
body: <p>I implemented skinning in my application. The application loads its Brushes.xaml resource dictionary which uses colors which reside in a skin-specific resource dictionary. So only one Color.xaml is loaded depending on the chosen skin.</p>
  
  <p>Skin-Specific Color.xaml</p>
  
  <pre><code>    &lt;Color x:Key="TextBoxBackgroundColor"&gt;#C4AF8D&lt;/Color&gt;
      &lt;Color x:Key="TextBoxForegroundColor"&gt;#6B4E2C&lt;/Color&gt;
      &lt;Color x:Key="ToolBarButtonForegroundColor"&gt;#6B4E2C&lt;/Color&gt;
  </code></pre>
  
  <p>Brushes.xaml:</p>
  
  <pre><code>    &lt;SolidColorBrush 
          x:Key="TextBoxBackground" 
          Color="{DynamicResource TextBoxBackgroundColor}" /&gt;
      &lt;SolidColorBrush 
          x:Key="TextBoxForeground" 
          Color="{DynamicResource TextBoxForegroundColor}" /&gt;
  </code></pre>
  
  <p>As you can see, multiple colors (TextBoxForegroundColor and ToolBarButtonForegroundColor) are the same. I'd like to circumvent that as it is getting more and more confusing especially since the used colors are not recognizable by their hex value. You could advise now to merge both Colors into one but I have skins where the TextBoxForegroundColor is different from the ToolBarButtonForegroundColor.</p>
  
  <p>What I would like to do is something like this:</p>
  
  <pre><code>&lt;Color x:Key="DarkBrown"&gt;#C4AF8D&lt;/Color&gt;
  
  &lt;Color x:Key="TextBoxBackgroundColor" Color={StaticResource DarkBrown} /&gt;
  &lt;Color x:Key="ToolBarButtonForegroundColor" Color={StaticResource DarkBrown} /&gt;
  </code></pre>
  
  <p>Is this at all possible in Xaml? I didn't find a way.</p>