title: Having multiple controls in one WPF grid cell
body: <p>New to WPF and learing through tutorials online and have a couple of questions: </p>
  
  <p>(1) I am trying to have multiple buttons of different widths appear side by side in one WPF grid cell. However, they seem to always stack up on each other. What am I missing out on? </p>
  
  <p>(2) Is it possible to control the absolute starting left position for each button within the grid cell?</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" &gt;
  &lt;ScrollViewer&gt;
      &lt;Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            ShowGridLines ="True" &gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="*" /&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="200" /&gt;
              &lt;ColumnDefinition Width="Auto" /&gt;
              &lt;ColumnDefinition Width="60*" /&gt;
          &lt;/Grid.ColumnDefinitions&gt;
  
          &lt;Button Content="Button No. 1" Grid.Row="0" Grid.Column="0" /&gt;
  
          &lt;GridSplitter HorizontalAlignment="Center" Width="6"
                        Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" /&gt;
  
          &lt;Button Content="Button No. 4-2" Grid.Row="0" Grid.Column="2" Width="100" /&gt;
          &lt;Button Content="Button No. 4-1" Grid.Row="0" Grid.Column="2" Width="50" /&gt;
  
      &lt;/Grid&gt;
  &lt;/ScrollViewer&gt;
  &lt;/Page&gt;
  </code></pre>
  
  <p>Based on the answer from Salvador, this works:</p>
  
  <pre><code>        &lt;Button VerticalAlignment="Top" HorizontalAlignment="Left" Content="Button No. 1" Grid.Row="0" Grid.Column="0" Height="100"/&gt;
  
          &lt;GridSplitter HorizontalAlignment="Center" Width="6"
                        Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" /&gt;
  
          &lt;Button VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Content="Button No. 4-2" Grid.Row="0" Grid.Column="2" Height="100" Width="100" /&gt;
          &lt;Button VerticalAlignment="Top" HorizontalAlignment="Left" Margin="400,0,0,0" Content="Button No. 4-1" Grid.Row="0" Grid.Column="2" Height="150" Width="50" /&gt;
  </code></pre>
  
  <p>Thanks!</p>