title: TemplateBinding in wpf style setter?
body: <p>I'm using <code>&lt;setter&gt;</code> in my wpf application and i need to use TemplateBinding for that setter Property to evaluate that value at compile time but i can't use TemplateBinding,its throwing an error,</p>
  
  <p>My Code Is Below:</p>
  
  <pre><code>                &lt;ControlTemplate TargetType="{x:Type srcview:ButtonView}"&gt;
                      &lt;Button&gt;
                          &lt;Button.Style&gt;
                              &lt;Style TargetType="{x:Type Button}"&gt;
                                  &lt;Style.Triggers&gt;
                                      &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                                          &lt;Setter Property="Background" Value="{TemplateBinding Color}"&gt;&lt;/Setter&gt;
                                      &lt;/Trigger&gt;
                                  &lt;/Style.Triggers&gt;
                              &lt;/Style&gt;
                          &lt;/Button.Style&gt;
                      &lt;/Button&gt;
                  &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>How can i use <code>TemplateBinding</code> in my style setter or Is there any other way to evaluate the value at compile time?</p>