title: Setting a style's TargetType property to a base class
body: <p>I was just poking around a bit in WPF and wanted all elements on my Window to share the same margin.
  I found that all Controls that are capable of having a margin derive from FrameworkElement so I tried the following:</p>
  
  <pre><code>&lt;Window.Resources&gt;
  &lt;Style TargetType="{x:Type FrameworkElement}"&gt;
      &lt;Setter Property="Margin" Value="10" /&gt;
  &lt;/Style&gt;
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>And, this doesn't work.
  I can apply this to all Buttons, but not to all Elements that derive from Button.
  Am I missing something or is this simply not possible?</p>
  
  <p>Am I the only one feeling like using CSS for WPF would have been a good idea?</p>