title: Trying to get element alignment correct in xaml
body: <p>I am trying to get the first label and text box to align to the left side of the screen, and the second label and text box to align to the right side of the screen.   What am I missing here?  The second set of controls will not align to the right.</p>
  
  <p>Thanks in advance!</p>
  
  <pre><code>    &lt;Grid&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="Auto" /&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;StackPanel Orientation="Horizontal" Grid.Column="0"&gt;
              &lt;StackPanel Orientation="Horizontal"&gt;
                  &lt;Label Content="Active Profile"&gt;&lt;/Label&gt;
                  &lt;TextBox Name="activeProfileName" Width="100" Height="20"&gt;&lt;/TextBox&gt;
              &lt;/StackPanel&gt;
              &lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Right" &gt;
                  &lt;Label Content="Create A New Profile"                        
                         HorizontalAlignment="Right"&gt;&lt;/Label&gt;
                  &lt;TextBox Name="activeProfileNamey"
                           Width="100" Height="20"
                           HorizontalAlignment="Right"&gt;&lt;/TextBox&gt;
              &lt;/StackPanel&gt;
          &lt;/StackPanel&gt;
      &lt;/Grid&gt;
  </code></pre>