title: Modify Template in code-behind
body: <p>In our app we use 3rd party library components.
  I need to change only one value in whole template. How can I archieve this without redefine template?</p>
  
  <p>For example, controlTemplate:</p>
  
  <pre><code>&lt;ControlTemplate TargetType="{x:Type Label}"&gt;
          &lt;Border x:Name="PART_MainBorder"
                  BorderBrush="Black" 
                  BorderThickness="{TemplateBinding BorderThickness}"&gt;
              &lt;ContentPresenter/&gt;
          &lt;/Border&gt;            
  &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>I need to change <code>PART_MainBorder.BorderBrush</code>. How can I do this?</p>
  
  <p>I have found <a href="http://siderite.blogspot.com/2010/12/cloning-controltemplate.html" rel="nofollow">this link</a>, but I can't believe there is no other way to do it..</p>
  
  <p>Thanks.</p>