title: WPF alignment of textbox and button within a Grid?
body: <p>this is a rather simple question and its technically not that big of a deal but my OCD is tingling when i see this.
  I have designed a basic WPF application and i cannot figure out why exactly the button and the textboxs are not alligning correctly as can be seen in this image(bottom right side):
  <img src="https://i.stack.imgur.com/IlZ3f.png" alt="Check bottom right side"></p>
  
  <p>This is the code responsible for it:</p>
  
  <pre><code>&lt;Grid Margin="283,365.288,18,10" Grid.ColumnSpan="2"&gt;
              &lt;Label Content="GUID" HorizontalAlignment="Left" Margin="0,0.998,0,0" VerticalAlignment="Top" Height="22.96"/&gt;
              &lt;Label Content="UniqueID" HorizontalAlignment="Left" Margin="0,22.68,0,0" VerticalAlignment="Top" Height="25.516" Width="63.297"/&gt;
              &lt;Label Content="Akt/GZ" HorizontalAlignment="Left" Margin="0,48.196,0,0" VerticalAlignment="Top" Height="25.516" Width="63.297"/&gt;
              &lt;TextBox HorizontalAlignment="Left" Height="23.958" Margin="63.297,0,0,49.754" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Bottom" Width="125"/&gt;
              &lt;TextBox HorizontalAlignment="Left" Height="23.958" Margin="63.297,0,0,25.796" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Bottom" Width="125"/&gt;
              &lt;TextBox HorizontalAlignment="Left" Height="23.958" Margin="63.297,0,0,1.558" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Bottom" Width="125"/&gt;
              &lt;Button Content="Search" HorizontalAlignment="Left" Margin="193.297,0.998,0,0" VerticalAlignment="Top" Width="60.703" Height="22.96"/&gt;
              &lt;Button Content="Search" HorizontalAlignment="Left" Margin="193.297,25.236,0,0" VerticalAlignment="Top" Width="60.703" Height="22.96"/&gt;
              &lt;Button Content="Search" HorizontalAlignment="Left" Margin="193.297,49.194,0,0" VerticalAlignment="Top" Width="60.703" Height="22.96"/&gt;
              &lt;CheckBox Content="07" HorizontalAlignment="Left" Margin="259,5.498,0,0" VerticalAlignment="Top"/&gt;
              &lt;CheckBox Content="10" HorizontalAlignment="Left" Margin="296.915,5.498,0,0" VerticalAlignment="Top"/&gt;
              &lt;CheckBox Content="07" HorizontalAlignment="Left" Margin="259,29.736,0,0" VerticalAlignment="Top"/&gt;
              &lt;CheckBox Content="10" HorizontalAlignment="Left" Margin="296.915,29.736,0,0" VerticalAlignment="Top"/&gt;
              &lt;CheckBox Content="07" HorizontalAlignment="Left" Margin="259,53.694,0,0" VerticalAlignment="Top"/&gt;
              &lt;CheckBox Content="10" HorizontalAlignment="Left" Margin="296.915,53.694,0,0" VerticalAlignment="Top"/&gt;
          &lt;/Grid&gt;
  </code></pre>
  
  <p>Either way I am not quite sure what causes it to... drift away for a bit. Also (in case someone asks) I am not sure why i used a Grid to group these objects, I googled on object groupings in WPF and i found some answers but the Grid and the Stackpanel seemed like the easiest to use, but the Stackpanel gave me even bigger headaches when aligning the content properly.
  If you have some criticism regarding the imlpementation please feel free to do so, I have already ordered some books regardnig WPF design but I am more than happy and willing to listen to experienced devs and learn.</p>
  
  <p>I apologize for the "noobish" question but I have spent the last 2 days fiddling around with the settings to no avail and wouldn't have come here and asked otherwise.</p>
  
  <p>Thank you</p>