title: WPF button different images for one style
body: <p>I dont understand why image is not displayed. I want different button images for one style.
  I tried to set button image as imagebrush in button style, but then I will have the only one picture on all the buttons.</p>
  
  <pre><code>&lt;Button
      Height="64" Width="64" Margin="0,0,50,50"
      Style="{DynamicResource MyButtonStyle}" VerticalAlignment="Bottom"
      HorizontalAlignment="Right"&gt;
      &lt;Image Source="image1.png"/&gt;
  &lt;/Button&gt;
  &lt;Button
      Height="64" Width="64" Margin="0,0,125,50"
      Style="{DynamicResource MyButtonStyle}" VerticalAlignment="Bottom" 
      HorizontalAlignment="Right"&gt;
      &lt;Image Source="image2.png"/&gt;
  &lt;/Button&gt;
  </code></pre>
  
  <p>Button style</p>
  
  <pre><code>&lt;Style x:Key="MyButtonStyle" TargetType="{x:Type Button}"&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type Button}"&gt;
                  &lt;Grid&gt;
                      &lt;Rectangle x:Name="rectangle" Stroke="Black" /&gt;
                  &lt;/Grid&gt;
                  &lt;ControlTemplate.Triggers&gt;
                      &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                          &lt;Setter Property="Opacity" TargetName="rectangle" Value="0.8"/&gt;
                          &lt;Setter Property="Stroke" TargetName="rectangle" Value="#FF478CFB"/&gt;
                      &lt;/Trigger&gt;
                      &lt;Trigger Property="IsPressed" Value="True"&gt;
                          &lt;Setter Property="OpacityMask" TargetName="rectangle" Value="{x:Null}"/&gt;
                          &lt;Setter Property="Effect" TargetName="rectangle"&gt;
                              &lt;Setter.Value&gt;
                                  &lt;BlurEffect/&gt;
                              &lt;/Setter.Value&gt;
                          &lt;/Setter&gt;
                      &lt;/Trigger&gt;
                  &lt;/ControlTemplate.Triggers&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>