title: Setting Image width and height by WPF styles
body: <p>Is there any way how to set Image size by WPF styles?</p>
  
  <p>I have in my XAML:
  <code>&lt;Image Style="MyImageStyle" Source="{StaticResource MyImage}" /&gt;</code></p>
  
  <p>And in ResourceDictionary as a style:</p>
  
  <pre><code>&lt;Style x:Key="MyImageStyle"&gt;
  &lt;Setter Property="Width" Value="30" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>But it doesn´t work. I get this error: Cannot resolve the Style Property 'Width'. Verify that the owning type is the Style's TargetType, or use Class.Property syntax to specify the Property.</p>
  
  <p>Thx.</p>