title: AvalonDock autohide to side of pane instead of window
body: <p>I have the following AvalonDock XAML:</p>
  
  <pre><code>&lt;ad:DockingManager Name="DockManager" Background="White"&gt;
      &lt;ad:ResizingPanel  Orientation="Horizontal"&gt;
          &lt;ad:DockablePane ad:ResizingPanel.ResizeWidth="300" Name="LeftSideBar" SelectedIndex="0"&gt;
              &lt;ad:DockableContent Name="Connection" Title="Connection" IsCloseable="False"&gt;
                   // Some Stuff
              &lt;/ad:DockableContent&gt;
              &lt;ad:DockableContent Name="WIQuery" Title="WI Query" Focusable="True" IsCloseable="False"&gt;
                  //Some more stuff
              &lt;/ad:DockableContent&gt;
          &lt;/ad:DockablePane&gt;
  
  
          &lt;!--MIDDLE SECTION--&gt;
          &lt;ad:ResizingPanel Orientation="Vertical" MinWidth="50" MinHeight="50"&gt;
              &lt;ad:ResizingPanel Orientation="Horizontal" &gt;
                  &lt;ad:DocumentPane&gt;
                      &lt;ad:DocumentContent Title="Query Results" IsCloseable="False"&gt;
                          &lt;ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled" Button.Click="PickWorkItem_Click" SelectionMode="Multiple" ItemTemplate="{StaticResource RowTemplate}"  Name="lstQueryResults" SelectionChanged="lstQueryResults_SelectionChanged" &gt;
                              &lt;ListBox.Resources&gt;
                                  &lt;Style TargetType="{x:Type ListBoxItem}"&gt;
                                      &lt;Style.Resources&gt;
                                          &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black"/&gt;
                                          &lt;SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black"/&gt;
                                      &lt;/Style.Resources&gt;
                                      &lt;Style.Triggers&gt;
                                          &lt;DataTrigger Value="True"&gt;
                                              &lt;DataTrigger.Binding&gt;
                                                  &lt;MultiBinding Converter="{StaticResource DisableWorkItemConverter}"&gt;
                                                      &lt;Binding ElementName="MainForm" Path="PickedWorkItemID"/&gt;
                                                      &lt;Binding Path="WorkItemForColumn.Id"/&gt;
                                                  &lt;/MultiBinding&gt;
                                              &lt;/DataTrigger.Binding&gt;
                                              &lt;Setter Property="IsEnabled" Value="False"/&gt;
                                              &lt;Setter Property="loc:Main.IsCurrentItemEnabledChanged" Value="True"/&gt;
                                          &lt;/DataTrigger&gt;
                                      &lt;/Style.Triggers&gt;
                                  &lt;/Style&gt;
                              &lt;/ListBox.Resources&gt;
                          &lt;/ListBox&gt;
                      &lt;/ad:DocumentContent&gt;
                  &lt;/ad:DocumentPane&gt;
                  &lt;ad:DockablePane ad:ResizingPanel.ResizeWidth="120" &gt;
                      &lt;ad:DockableContent Title="Query Options" IsCloseable="False" HideOnClose="True"&gt;
                          &lt;CheckBox Margin="5" IsChecked="{Binding Path=VisibilityOfWorkItemColumnTitles, Converter={StaticResource VisibilityToBooleanConverter}}" &gt;Show Titles&lt;/CheckBox&gt;
                      &lt;/ad:DockableContent&gt;
                  &lt;/ad:DockablePane&gt;
              &lt;/ad:ResizingPanel&gt;
  
              &lt;ad:DockablePane&gt;
                  &lt;ad:DockableContent x:Name="WIPadDock" Title="WorkItem Pad" IsCloseable="False"&gt;
                      &lt;ScrollViewer x:Name="WIPadCntr" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"&gt;
                          &lt;dot:ZipperPanel ChildrenPerRow="4" SpacingX="120" SpacingY="10" Name="CanvasPad"  RenderTransformOrigin="0,0"&gt;&lt;/dot:ZipperPanel&gt;
                      &lt;/ScrollViewer&gt;
                  &lt;/ad:DockableContent&gt;
              &lt;/ad:DockablePane&gt;
          &lt;/ad:ResizingPanel&gt;
  
          &lt;!--RIGHT SECTION--&gt;
          &lt;ad:DockablePane MinWidth="50" MinHeight="50" ad:ResizingPanel.ResizeWidth="300"  Name="RightSideBar" SelectedIndex="1"&gt;
              &lt;ad:DockableContent Title="Add Links" Name="tabAddLinks" IsCloseable="False"&gt;
              &lt;/ad:DockableContent&gt;
          &lt;/ad:DockablePane&gt;
      &lt;/ad:ResizingPanel&gt;
  &lt;/ad:DockingManager&gt;
  </code></pre>
  
  <p>The item WIPadDock is going to endup being collapsed.  When it gets collapsed it moves to the side of the window rather then the middle pane.</p>
  
  <p>Is there a way to keep it to the side?</p>
  
  <p>Here are some pictures to make it clearer:</p>
  
  <p><a href="http://img215.imageshack.us/img215/8725/avalondock1.png" rel="nofollow noreferrer">Pane expanded http://img215.imageshack.us/img215/8725/avalondock1.png</a></p>
  
  <p><a href="http://img215.imageshack.us/img215/2763/avalondock2.png" rel="nofollow noreferrer">Pane hidden http://img215.imageshack.us/img215/2763/avalondock2.png</a></p>