title: How to inherit type-based styles in WPF?
body: <p>I want to use the same style for all <code>Image</code>s and <code>AutoGreyableImage</code>s (my custom control that inherits from <code>Image</code>).  I have the following style declared application-wide:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type Image}"
      x:Key="ImageType"&gt;
      &lt;Setter Property="Stretch"
              Value="Uniform" /&gt;
      &lt;Setter Property="Height"
              Value="16" /&gt;
      &lt;Setter Property="Width"
              Value="16" /&gt;
      &lt;Setter Property="SnapsToDevicePixels"
              Value="True" /&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>But the <code>AutoGreyableImage</code>s don't accept the style.  This doesn't work either:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type my:AutoGreyableImage}"
         BasedOn="{DynamicResource ImageType}" /&gt;
  </code></pre>
  
  <p>What is the correct way to do this?</p>