title: WPF Xaml - Align Image to Right
body: <p>Just starting out with xaml.</p>
  
  <p>I have the following:</p>
  
  <pre><code>&lt;StackPanel x:Name="Compare"
                              Orientation="Horizontal"&gt;
                      &lt;Label Content="Path to Access DB:"
                             HorizontalAlignment="Left"
                             Margin="3"
                             Width="120"
                             VerticalAlignment="Center" /&gt;
                      &lt;TextBox x:Name="txtPathToAccess"
                               HorizontalAlignment="Left"
                               Height="23"
                               Margin="3"
                               Text="{Binding PathToAccessDb}"
                               VerticalAlignment="Center"
                               Width="800" /&gt;
                      &lt;Button x:Name="btnFileSearch"
                              Content="..."
                              Width="20"
                              Height="20"
                              Command="{Binding AccessFileSearchCommand}" /&gt;
                      &lt;Button x:Name="btnComparePiToAccess"
                              Margin="10,0,0,0"
                              Content="Compare Pi to Access"
                              Width="150"
                              Height="20"
                              Command="{Binding CompareCommandPiToAccess}" /&gt;
                      &lt;Image Source="/Images/drax_logo.jpg" 
                             Width="100" /&gt;
                  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>How can I get the image to align to the right edge of the stack panel? I want the labels and buttons at the left of the screen (row) and the image at the right.</p>