title: How do I create vertical space between objects in a DockPanel (WPF)?
body: <p>So I've created a basic WPF application, and a portion of my controls are set aside in a DockPanel on the left side of the screen. I'm trying to place a combobox at the top of the dockpanel, which stretches to the panel's width. Then, below that, a listview for some data. The problem is the listview is created next to the combo box instead of below it, cutting it in half. Code is as follows:</p>
  
  <pre><code>&lt;DockPanel VerticalAlignment="Bottom" HorizontalAlignment="Left" Height="422" Width="200"&gt;
              &lt;ComboBox VerticalAlignment="Top" HorizontalContentAlignment="Stretch" SelectedIndex="0"&gt;
                  &lt;ComboBoxItem Content="Regions/Groups"/&gt;
              &lt;/ComboBox&gt;
              &lt;ListView Height="422" VerticalAlignment="Top" Width="100"&gt;
                  &lt;ListView.View&gt;
                      &lt;GridView&gt;
                          &lt;GridViewColumn/&gt;
                      &lt;/GridView&gt;
                  &lt;/ListView.View&gt;
              &lt;/ListView&gt;
          &lt;/DockPanel&gt;
  </code></pre>
  
  <p>Or, code without the listview:</p>
  
  <pre><code>&lt;DockPanel VerticalAlignment="Bottom" HorizontalAlignment="Left" Height="422" Width="200"&gt;
              &lt;ComboBox VerticalAlignment="Top" HorizontalContentAlignment="Stretch" SelectedIndex="0"&gt;
                  &lt;ComboBoxItem Content="Regions/Groups"/&gt;
              &lt;/ComboBox&gt;
  &lt;/DockPanel&gt;
  </code></pre>