title: Get System.Reflection.TargetInvocationException when I apply the Style on my User Control
body: <p>I created a user control which applied the Style. After I applied the Style, the design view shows the error message "System.Reflection.TargetInvocationException". However, the application can run.  Will it be a problem if I let this error on the page? How can I solve it? </p>
  
  <p>There is the code on my user control:</p>
  
  <pre><code>&lt;Button x: Name=btnDescription1"    Click="btnDescription1_Click"  Grid.Row="0"   
        Grid.Column="1"     Style="{StaticResource btnDescription }"  /&gt;      
  </code></pre>
  
  <p>The code on myApp.xmal:</p>
  
  <pre><code> &lt;Style x:Key="btnDescription" TargetType="Button"&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                 &lt;ControlTemplate&gt;   
                      &lt;StackPanel&gt;       
                            &lt;TextBlock  Text="{TemplateBinding Content}" TextAlignment="Left" TextWrapping="Wrap"/&gt;    
                      &lt;/StackPanel&gt;                                         
  
           &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>