How to collapse RightSide LayoutAnchorGroup

Jun 12, 2013 at 12:19 AM
I have the following xaml which works fine, the RightSide items ProcessExplorer and DataExplorer are UserControls that are TreeViews. The User can pick items on the TreeViews and new LayoutDocuments are added to the mainPanel. In version 1.3 we could collapse the RightSide items after a pick without the user moving the mouse off the TreeView. But in version 2.0 I can not figure out how from the code behind to make that happen.

Note we do not allow the user to mess with the Home Page or the RightSide items. That's why the CanClose, CanFloat, CanHide, CanAutoHide are all set to false. On new pages they can do what they want.
<Window x:Class="TestApp.Shell"
    Title="TestApp" Width="1024" Height="800"
            Loaded="OnLoaded" IsVisibleChanged="isVisibleChanged" Closing="OnClosing">
<Grid x:Name="ShellRegion">
    <!-- New children, such as the modal dialog box, can be added in the ShellRegion. -->
    <Grid x:Name="DockingRegion">
        <ad:DockingManager x:Name="DockManager" AllowMixedOrientation="True"
                <ad:LayoutPanel Orientation="Horizontal" x:Name="mainPanel">
                        <ad:LayoutDocumentPane x:Name="MainWindow">
                            <sc:StartPage Title="Home Page" CanClose="False" CanFloat="False"/>
                            <ad:LayoutAnchorable Title="Process Explorer" ContentId="processexplorer" x:Name="pxProcessExplorer" 
                                                            CanClose="False" CanFloat="False" CanHide="False" CanAutoHide="False">
                            <ad:LayoutAnchorable Title="Data Explorer" ContentId="dataexplorer" x:Name="adDataExplorer" 
                                                               CanClose="False" CanFloat="False" CanHide="False" CanAutoHide="False">
Aug 19, 2014 at 9:02 AM
Hi, I have tha same problem. Did you found a solusion?