title: XAML - How do I align controls next to each other in a StackPanel
body: <p>I've been trying to align the controls in the following code next to each other. But it doesn't seem to work. First I had it without the StackPanel but then I couldn't really align my Controls properly.</p>
  <p>Here is my code:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;StackPanel x:Name=&quot;doelenContentPanel&quot; HorizontalAlignment=&quot;Center&quot;&gt;
      &lt;TextBlock x:Name=&quot;txtBOmzet&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;Omzet:  &quot; Margin=&quot;10,58,-10,-58&quot; HorizontalAlignment=&quot;Left&quot; /&gt;
      &lt;TextBox x:Name=&quot;txtbOmzet&quot; Margin=&quot;82,58,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;&quot; HorizontalAlignment=&quot;Center&quot;/&gt;
      &lt;TextBlock x:Name=&quot;txtBOmzetMaand&quot; Margin=&quot;151,58,0,0&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;Maand&quot; HorizontalAlignment=&quot;Right&quot; /&gt;
  &lt;/StackPanel&gt;
  </code></pre>