title: Dockpanel behaviour in WP8
body: <p>I am writing a Windows Phone 8 app, and I am having some problems with the UI. I want a control that will stretch to the width of the whole screen, and will flow its children controls horizontally (to fill the space).</p>
  
  <p>Currently, I have a a StackPanel with Orientation = Horizontal, but it doesn't allow the children control (a slider) to have a HorizontalAlignment=Stretch (that actually stretches). I can manually strech the slider, but I don't want to have hardcoded sizes..</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal"&gt;
      &lt;TextBlock Text="Hue Bins"  /&gt;
      &lt;Slider x:Name="HueBins" VerticalAlignment="Bottom" HorizontalAlignment="Stretch"  Value="24" Maximum="36" Minimum="1"/&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>and the resulting image: </p>
  
  <p><img src="https://i.stack.imgur.com/sCuCx.png" alt="enter image description here"></p>
  
  <p>In normal WPF, there is the Dockpanel control, but that doesn't seem to exist for WP8. Is there anyway to emulate that behavior?</p>