title: How to apply a WPF style to all elements of a particular type?
body: <pre><code>&lt;Window.Resources&gt;   
   &lt;Style TargetType="{x:Type Button}"&gt;    
     &lt;Setter Property="FontFamily" Value="Times New Roman" /&gt;   
     &lt;Setter Property="FontSize" Value="30" /&gt;    
     &lt;Setter Property="FontWeight" Value="Bold" /&gt;     
     &lt;Setter Property="Background" Value="#FFCA5132" /&gt; 
   &lt;/Style&gt;
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>This aboved code looks like the right selection to apply WPF style to all buttons in a specific window. But I want to apply this style for all buttons in my program. 
  I think I need to write down this code in the <code>&lt;Application.Resources&gt;&lt;/Application.Resources&gt;</code>. But it doesn't run. How can I do that?</p>