title: How to place a button correctly on the bottom/right?
body: <p>I try to place a button 10px from the right and bottom corner. In the Designer the button is about 10px from the corner, but not in the program (it is only 1px from the corner which looks a bit bad). Is this a bug in WPF?</p>
  
  <pre><code>&lt;Window x:Class="wpftest.test"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
          xmlns:local="clr-namespace:wpftest" mc:Ignorable="d" Title="test"               
          Height="300" Width="300"&gt;
      &lt;Grid&gt;
          &lt;Button x:Name="button" Content="Button" HorizontalAlignment="Left" Margin="207,239,0,0" VerticalAlignment="Top" Width="75" RenderTransformOrigin="-0.133,-0.75"/&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/kybT8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kybT8.png" alt="this is how it looks in the program"></a>
  <a href="https://i.stack.imgur.com/x7XHf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x7XHf.png" alt="this is how it looks in the Designer"></a></p>