title: Button IsPressed Trigger Not Working
body: <p>I have a button with an undo image inside it.
  I want the button to make the border appear when user clicks (ispressed) the button.</p>
  
  <pre><code>&lt;Button Margin="0,7,12,0" HorizontalAlignment="Right" Height="20" Width="23"&gt;
                      &lt;Button.Style&gt;
                          &lt;Style TargetType="{x:Type Button}"&gt;
                              &lt;Setter Property="Background" Value="White"/&gt;
                              &lt;Setter Property="Template"&gt;
                                  &lt;Setter.Value&gt;
                                      &lt;ControlTemplate TargetType="{x:Type Button}"&gt;
                                          &lt;Border Background="{TemplateBinding Background}"&gt;
                                              &lt;ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/&gt;
                                          &lt;/Border&gt;
                                      &lt;/ControlTemplate&gt;
                                  &lt;/Setter.Value&gt;
                              &lt;/Setter&gt;
                              &lt;Style.Triggers&gt;
                                  &lt;Trigger Property="IsPressed" Value="True"&gt;
                                      &lt;Setter Property="BorderThickness" Value="1"/&gt;
                                  &lt;/Trigger&gt;
                                  &lt;Trigger Property="IsPressed" Value="False"&gt;
                                      &lt;Setter Property="BorderThickness" Value="0"/&gt;
                                  &lt;/Trigger&gt;
                              &lt;/Style.Triggers&gt;
                          &lt;/Style&gt;
                      &lt;/Button.Style&gt;
                      &lt;Image Grid.Column="0" Grid.Row="0" Margin="0,0,0,0" Height="20" Width="20" Source="/Images/Undo.png"&gt;
                          &lt;Image.Style&gt;
                              &lt;Style TargetType="Image"&gt;
                                  &lt;Style.Triggers&gt;
                                      &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                                          &lt;Setter Property="Opacity" Value="0.7"/&gt;
                                      &lt;/Trigger&gt;
                                  &lt;/Style.Triggers&gt;
                              &lt;/Style&gt;
                          &lt;/Image.Style&gt;
                      &lt;/Image&gt;
                  &lt;/Button&gt;
  </code></pre>
  
  <p>But its not working at all.
  Any help will be appreciated!</p>