Splitcontainer inside a document window

Docking/MDI for WPF Forum

Posted 13 years ago by pgenfer
Version: 10.2.0532
Avatar
Hi,

I have the following layout structure defined for my application:

I use a document window which contains a splitcontainer to host four toolwindows (these tool windows are named "TopLeft","TopRight","BottomLeft" and "BottomRight" for example. The problem I realized now is, that as soon as you undock one of the tool windows, you are not able to redock it again to the position it used to be docked. For example if I undock "TopLeft" and put it some where else, I am not able to redock it back to the position within its original container (although I am able to dock it at any other location next to the document window, I cannot dock it back inside the document window).

The reason why I organized all toolwindows within a document window is that I want to enable the user to undock / redock all four toolwindows at once, but he should also be able to handle every toolwindow as a separate window.

Please see the following sample code to reproduce this behaviour:

<docking:DockSite x:Name="dockSite" >
            <docking:SplitContainer Orientation="Vertical" x:Name="MainAndLogContainer">
                <docking:Workspace>
                    <docking:TabbedMdiHost>
                        <docking:TabbedMdiContainer>
                            <docking:DocumentWindow x:Name="RenderViewsWindow" Title="Render Views">
                                <docking:SplitContainer x:Name="RenderViewsContainer"  Orientation="Vertical">
                                    <docking:SplitContainer Orientation="Horizontal">
                                        <docking:ToolWindowContainer>
                                            <docking:ToolWindow x:Name="dockedTopLeft" Title="TopLeft">
                                                <TextBlock />
                                            </docking:ToolWindow>
                                        </docking:ToolWindowContainer>
                                        <docking:ToolWindowContainer>
                                            <docking:ToolWindow x:Name="dockedTopRight" Title="TopRight">
                                                <TextBlock />
                                            </docking:ToolWindow>
                                        </docking:ToolWindowContainer>
                                    </docking:SplitContainer>
                                    <docking:SplitContainer Orientation="Horizontal">
                                        <docking:ToolWindowContainer>
                                            <docking:ToolWindow x:Name="dockedBottomLeft" Title="BottomLeft">
                                                <TextBlock />
                                            </docking:ToolWindow>
                                        </docking:ToolWindowContainer>
                                        <docking:ToolWindowContainer>
                                            <docking:ToolWindow x:Name="dockedBottomRight" Title="BottomRight">
                                                <TextBlock />
                                            </docking:ToolWindow>
                                        </docking:ToolWindowContainer>
                                    </docking:SplitContainer>
                                </docking:SplitContainer>
                            </docking:DocumentWindow>
                        </docking:TabbedMdiContainer>
                    </docking:TabbedMdiHost>
                </docking:Workspace>
            </docking:SplitContainer>
        </docking:DockSite>
Is there any possibility for me to achieve the redocking inside the original splitcontainer (defining a different layout structure or use additional code for docking / redocking?)

Any help would be appreciated.

Greetings,

Patric

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Patric,

Sorry, but that is not currently supported. You could embed an inner DockSite and achieve that behavior, but you would not be able to dock the ToolWindows into the outer DockSite. You'd just be able to float them or dock them in the DocumentWindow.

We've marked down a TODO item to see about adding this feature in the future.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.