title: WPF Button style with Image
body: <p>I want to create a style for button with different images inside. I try to do following:</p>
  
  <pre><code>&lt;Style TargetType="Button"
         x:Key="PaintButton"&gt;
    &lt;Setter Property="Width"
            Value="40"&gt;&lt;/Setter&gt;
    &lt;Setter Property="Height"
            Value="40"&gt;&lt;/Setter&gt;
    &lt;Setter Property="Template"&gt;
      &lt;Setter.Value&gt;
        &lt;ControlTemplate&gt;
          &lt;Grid&gt;
            &lt;Border CornerRadius="3"
                    BorderThickness="2"
                    BorderBrush="Green"&gt;
              &lt;Image Source="{TemplateBinding Button.Content}" /&gt;
            &lt;/Border&gt;
          &lt;/Grid&gt;
        &lt;/ControlTemplate&gt;
      &lt;/Setter.Value&gt;
    &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>and try to use:</p>
  
  <pre><code>&lt;Button Content="images/pen.png"
          HorizontalAlignment="Left"
          Style="{DynamicResource PaintButton}" /&gt;
  </code></pre>
  
  <p>but images is not shown. Why and how to do it correctly?</p>