title: WPF button with transparent background image
body: <p>I want to create an image button in WPF. So far I have that solution:</p>
  
  <pre><code>&lt;Button Click="btn_Click" Name="btnDelete" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"         Grid.Row="2" Grid.Column="2" BorderBrush="{x:Null}" VerticalContentAlignment="Top" FontSize="15"     FontWeight="Bold" &gt;
      &lt;StackPanel&gt;
           &lt;TextBlock TextAlignment="Center" Name="btnDelete_text" Text="Verwijderen" /&gt;
           &lt;Image Stretch="Fill" Name="btnDeleteProductImage" Width="90" Height="90" Source="    {StaticResource delete}" /&gt;
      &lt;/StackPanel&gt;
  &lt;/Button&gt;
  </code></pre>
  
  <p>But the problem is that the image I'm using has transparent background, which is shown as white on the button. How I can make it really transparent?</p>
  
  <p>My buttons shows a white background instead of transparent.</p>
  
  <p><img src="https://i.stack.imgur.com/VhMTY.png" alt="Button, which I hv created. White background is shown, instead of transparency./"></p>