title: User-resizable WPF Controls?
body: <p>In XAML, how do I make it possible to resize controls or portions of a display the way the different panels like the Toolbox, Solution Explorer or Error List in Visual Studio can be grabbed and resized? </p>
  
  <p>In this made-up example . . . </p>
  
  <pre><code>&lt;Window x:Class="UI_Experiments_1.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;DockPanel x:Name="Tab3DockPanel" Background="#FFA0FFA0" LastChildFill="True"&gt;
          &lt;ScrollViewer DockPanel.Dock="Left" Background="Lavender"&gt;
              &lt;TextBlock Height="60" TextWrapping="Wrap" Background="#FFFFDDDD" Width="140"&gt;
                    ScrollViewer - DockPanel.Dock="Left"
              &lt;/TextBlock&gt;
          &lt;/ScrollViewer&gt; 
          &lt;TextBlock DockPanel.Dock="Top" HorizontalAlignment="Center" 
                 TextWrapping="Wrap" Background="LemonChiffon"&gt;
                 DockPanel.Dock="Top" HorizontalAlignment="Center"
          &lt;/TextBlock&gt;
          &lt;ListBox DockPanel.Dock="Right" Background="#FFCCEEFF"&gt;
                 ListBox DockPanel.Dock="Bottom" 
          &lt;/ListBox&gt;
      &lt;/DockPanel&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>. . . I have a DockPanel with a ScrollView docked on the left, a ListBox docked on the bottom, and a TextBlock on the top.    Is there a way to attach resizing handles to these to achieve the same effect, or is there some other control that these can be embedded in?   As I said, the above is just a made-up example to experiment with - I don't care if I use those exact controls.  </p>
  
  <p>I did find an example of adding resizing handles using an Adorner on MSDN but it involved over 170 lines of C# code so before adopting that I wanted to be sure there was no intrinsic way to achieve this in XAML. </p>
  
  <p>Thanks in advance.</p>