title: WPF: Change Style of an element in an Inherited Theme
body: <p>I want to change the style of a theme an inherited style (inherited through based on). Have any idea? This is basically to define multiple styles for multi-series charts in wpf toolkit. Code looks as follows:</p>
  
  <pre><code>&lt;Style x:Key="A" TargetType="DVC:ColumnDataPoint"&gt;
      &lt;Setter Property="Background" Value="Transparent" /&gt;
      &lt;Setter Property="BorderBrush" Value="Transparent" /&gt;
      &lt;Setter Property="BorderThickness" Value="1" /&gt;
      &lt;Setter Property="IsTabStop" Value="False" /&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="DVC:ColumnDataPoint"&gt;
                  &lt;Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Opacity="0" x:Name="Root"&gt;
                      &lt;Grid Background="{TemplateBinding Background}" Name="columngrid"&gt;
                          &lt;Grid.Resources&gt;
                              &lt;Style x:Key="aquaboarder" TargetType="Border"&gt;
                                  &lt;Style.Resources&gt;
                                      &lt;LinearGradientBrush x:Key="BackBrush" StartPoint="0.5,0" EndPoint="0.5,1"&gt;
                                          &lt;GradientStop Color="#B211B9D8" Offset="0.1" /&gt;
                                          &lt;GradientStop Color="#FF0F56C7" Offset="0.9" /&gt;
                                      &lt;/LinearGradientBrush&gt;
                                  &lt;/Style.Resources&gt;
                                  &lt;Setter Property="Background" Value="{StaticResource BackBrush}"/&gt;
                              &lt;/Style&gt;
                          &lt;/Grid.Resources&gt;
                          &lt;Border Name="columnBorder" BorderBrush="Transparent" BorderThickness="1" CornerRadius="20,20,0,0" Style="{StaticResource aquaboarder}"&gt;
                          &lt;/Border&gt;
                      &lt;/Grid&gt;                                             
                      &lt;ToolTipService.ToolTip&gt;
                          &lt;ContentControl Content="{TemplateBinding FormattedDependentValue}" /&gt;
                      &lt;/ToolTipService.ToolTip&gt;
                  &lt;/Border&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>And the inherited style goes as follows:</p>
  
  <pre><code>&lt;Style x:Key="B" BasedOn="{StaticResource A}"  TargetType="DVC:ColumnDataPoint"&gt;
      &lt;Style.Resources&gt;
          &lt;LinearGradientBrush x:Key="BackBrush" StartPoint="0.5,0" EndPoint="0.5,1"&gt;
              &lt;GradientStop Color="#B24DE509" Offset="0.1" /&gt;
              &lt;GradientStop Color="#FF238910" Offset="0.9" /&gt;
          &lt;/LinearGradientBrush&gt;
      &lt;/Style.Resources&gt;           
  &lt;/Style&gt;
  </code></pre>
  
  <p>I want to set the <strong>columngrid</strong> in "style A" to use the backbrush defined in "style B". I do not like to do more stuff in style B as I will have many of inherited styles be defined just changing this style afterwards.</p>