title: How to accommodate GroupBox in WPF?
body: <p>I have a "GroupBox" which to maximize the window I subrepone to others "GroupBox"</p>
  
  <p>No way to fix it. Anyone?
  <a href="https://i.stack.imgur.com/YFdcq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YFdcq.png" alt="Form"></a></p>
  
  <p>This is the XAML. This is the xml do not know if there is way to add some definition to fix, any label or something. </p>
  
  <pre><code>&lt;UserControl x:Class="Laboratorio.Calibracion"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           mc:Ignorable="d" 
           d:DesignHeight="490" d:DesignWidth="660"&gt;
  &lt;Grid&gt;
      &lt;GroupBox Header="Calibracion" Margin="0,0,0,10"&gt;
          &lt;Grid&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
                  &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
                  &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
              &lt;/Grid.RowDefinitions&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
                  &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;GroupBox Grid.Row="0" Grid.Column="0" Header="Equipo"&gt;
                  &lt;Grid&gt;
                      &lt;Label x:Name="serialLbl" Content="Serial:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,10,0,0"/&gt;
                      &lt;TextBox x:Name="serialTxb" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Margin="85,10,0,0"/&gt;
                      &lt;TextBox x:Name="descripcionTxb" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="144" Margin="209,10,0,0" IsEnabled="False"/&gt;
                      &lt;Label x:Name="resolucionLbl" Content="Resolucion:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,41,0,0"/&gt;
                      &lt;TextBox x:Name="resolucionTxb" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Margin="85,41,0,0"/&gt;
                  &lt;/Grid&gt;
              &lt;/GroupBox&gt;
              &lt;GroupBox Grid.Row="0" Grid.Column="1" Header="Patron"&gt;
                  &lt;Grid&gt;
                      &lt;Label x:Name="patronLbl" Content="Patron:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,10,0,0"/&gt;
                      &lt;ComboBox x:Name="comboBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" Margin="106,10,0,0"/&gt;
                      &lt;Label x:Name="patronLbl_Copy" Content="Niv. Referencia:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,80,0,0"/&gt;
                      &lt;TextBox x:Name="resolucionTxb_Copy" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Margin="106,80,0,0"/&gt;
                      &lt;Label x:Name="patronLbl_Copy1" Content="Fluido:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,41,0,0"/&gt;
                      &lt;ComboBox x:Name="comboBox_Copy" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" Margin="106,41,0,0"/&gt;
                  &lt;/Grid&gt;
              &lt;/GroupBox&gt;
              &lt;GroupBox Grid.Row="1" Grid.Column="0" Header="Condificones"&gt;
                  &lt;Grid&gt;
                      &lt;Label x:Name="temperaturaLbl" Content="Temperatura:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,10,0,0"/&gt;
                      &lt;TextBox x:Name="temperaturaTxb" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="36" Margin="94,10,0,0"/&gt;
                      &lt;Label x:Name="humedadLbl" Content="Humedad:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="135,10,0,0"/&gt;
                      &lt;TextBox x:Name="humedadTxb" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="35" Margin="205,10,0,0"/&gt;
                  &lt;/Grid&gt;
              &lt;/GroupBox&gt;
              &lt;GroupBox Grid.Row="2" Grid.Column="0" Header="Comprobacion Inicial"&gt;
                  &lt;Grid&gt;
                      &lt;DataGrid x:Name="compInicialDgv"&gt;
                          &lt;DataGrid.Columns&gt;
                              &lt;DataGridTextColumn Header="Presion Patron"&gt;&lt;/DataGridTextColumn&gt;
                              &lt;DataGridTextColumn Header="Lecturas"&gt;&lt;/DataGridTextColumn&gt;
                              &lt;DataGridTextColumn Header="Error"&gt;&lt;/DataGridTextColumn&gt;
                          &lt;/DataGrid.Columns&gt;
                      &lt;/DataGrid&gt;
                  &lt;/Grid&gt;
              &lt;/GroupBox&gt;
              &lt;GroupBox Grid.Row="2" Grid.Column="1" Header="Segunda Secuencia"&gt;
                  &lt;Grid&gt;
                      &lt;DataGrid x:Name="segSecDgv"&gt;
                          &lt;DataGrid.Columns&gt;
                              &lt;DataGridTextColumn Header="Presion Patron"&gt;&lt;/DataGridTextColumn&gt;
                              &lt;DataGridTextColumn Header="Lecturas"&gt;&lt;/DataGridTextColumn&gt;
                              &lt;DataGridTextColumn Header="Error"&gt;&lt;/DataGridTextColumn&gt;
                          &lt;/DataGrid.Columns&gt;
                      &lt;/DataGrid&gt;
                  &lt;/Grid&gt;
              &lt;/GroupBox&gt;
          &lt;/Grid&gt;
      &lt;/GroupBox&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>