title: How can I show a button is clicked(pressed) in WPF?
body: <p>On mouse is up button should show the background border</p>
  
  <p>I have created a simple style </p>
  
  <pre><code>&lt;UserControl.Resources&gt;
          &lt;Style TargetType="Button" x:Key="TransparentButton"&gt;
              &lt;Setter Property="Template"&gt;
                  &lt;Setter.Value&gt;
                      &lt;ControlTemplate TargetType="Button"&gt;
                          &lt;Border Background="Transparent"&gt;
                              &lt;ContentPresenter/&gt;
                          &lt;/Border&gt;
                      &lt;/ControlTemplate&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
          &lt;/Style&gt;
      &lt;/UserControl.Resources&gt;
  </code></pre>
  
  <p>and in button </p>
  
  <pre><code>&lt;Button  Height="20" Width="20"  Padding="0,0,0,0" DockPanel.Dock="Top" Grid.Row="0" Grid.Column="1" Click="button_click"  Style="{StaticResource TransparentButton}"
                      BorderBrush="Transparent" BorderThickness="0" Background="Transparent"&gt;
              &lt;Button.Content&gt;
                  &lt;Image Source="../Resources/Help_icon.png" Stretch="UniformToFill" /&gt;
              &lt;/Button.Content&gt;
              &lt;/Button&gt;
  </code></pre>
  
  <p>But in this case when button is pressed it doesn't show up in UI. User should feel that button is pressed.</p>
  
  <p>Thanks and regards</p>