title: How do I implement WPF group box than spans two columns?
body: <p>Here is the layout I want:</p>
  
  <p>Grid with 2 columns, 2 rows</p>
  
  <p>Row 1 should contain a group box that spans both columns.
  Row 2, Column 1 will contain a group box
  Row 2, Column 2 will contain another group box.</p>
  
  <p>In row 1's group box, I want the left side to have a stack of labels/combo boxes.  On the right side will be a stack of labels/checkboxes.  In the Row 2/Column 1 group box, I want more labels/combo boxes that should align with the first row's labels/combo boxes.  In the Row 2/Column 2 group box, I want more labels/checkboxes that align with the first row's labels/checkboxes.</p>
  
  <p>Here is what I have so far.  The problem I'm having is that the label/combo box pairs in row 1's group box want to span the entire group box.  But, I am explicitly setting the row=0, column=0 for the inner grid that contains the labels/combo boxes.</p>
  
  <p>Forgive me if this doesn't compile as I'm typing from a printout on a computer without Studio.</p>
  
  <pre><code>&lt;Grid&gt;
     &lt;Grid.RowDefinitions&gt;
        &lt;RowDefinition/&gt;
        &lt;RowDefinition/&gt;      
     &lt;/Grid.RowDefinitions&gt;
     &lt;Grid.ColumnDefinitions&gt;
        &lt;ColumnDefinition/&gt;
        &lt;ColumnDefinition/&gt;
     &lt;Grid.ColumnDefinitions&gt;
     &lt;GroupBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"&gt;
        &lt;GroupBox.Header&gt;
           &lt;Label Content="Device Configuration"&gt;&lt;/Label&gt;
        &lt;/GroupBox.Header&gt;
        &lt;Grid Grid.Row="0" Column="0"&gt;
           &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition/&gt;
              &lt;RowDefinition/&gt;      
              &lt;RowDefinition/&gt;      
           &lt;/Grid.RowDefinitions&gt;
           &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition/&gt;
              &lt;ColumnDefinition/&gt;
           &lt;Grid.ColumnDefinitions&gt;
  
           &lt;Label Grid.Column="0" Grid.Row="0" Content="Label 1"&gt;&lt;/Label&gt;
           &lt;ComboBox Grid.Column="1" Grid.Row="0"&gt;&lt;/ComboBox&gt;
  
           &lt;Label Grid.Column="0" Grid.Row="1" Content="Label 2"&gt;&lt;/Label&gt;
           &lt;ComboBox Grid.Column="1" Grid.Row="1"&gt;&lt;/ComboBox&gt;
  
           &lt;Label Grid.Column="0" Grid.Row="2" Content="Label 3"&gt;&lt;/Label&gt;
           &lt;ComboBox Grid.Column="1" Grid.Row="2"&gt;&lt;/ComboBox&gt;
        &lt;/Grid&gt;
     &lt;/GroupBox&gt;
  &lt;/Grid&gt;
  </code></pre>