auto hide containers

Docking/MDI for WPF Forum

Posted 11 years ago by Mary Fontana - Rudolph Technologies
Avatar
I have a DockSite, with workspace on left and 2 tool window containers on right.
I would like to auto hide all tool windows in the 2 right tool window containers.

I am not sure how to use DockSite.AutoHideRightContainers to do what I want since I have 2 tool window containers on the right.
Do I need a nested docksite?

I have something like this:

<docking: DockSite ...>
<docking:SplitContainer Orientation="Horizontal" >
<docking: workspace>
....
</docking:workspace>

<docking:SplitContainer Orientation="Vertical" >

<!= RightTop Tools>
<docking:ToolWindowContainer>
<docking:ToolWindow x:Name="tool1">
</docking:ToolWindow>
<docking:ToolWindow x:Name="tool2">
</docking:ToolWindow>
</docking:ToolWindowContainer>

<!= RightBottom Tools>
<docking:ToolWindowContainer>
<docking:ToolWindow x:Name="tool3">
</docking:ToolWindow>
<docking:ToolWindow x:Name="tool4">
</docking:ToolWindow>
<docking:ToolWindow x:Name="tool5">
</docking:ToolWindow>
<docking:ToolWindow x:Name="tool6">
</docking:ToolWindow>
</docking:ToolWindowContainer>

</docking:SplitContainer >

</docking:SplitContainer >
</docking:DockSite>

Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mary,

The Features Demo shows an example of an initally auto-hidden ToolWindow. But essientially, you include 1 or more ToolWindowContainers in the AutoHideRightContainers. Inside each of those ToolWindowContainers, you'd include your ToolWindows.

So you should be able to take your two ToolWindowContainers as-is and move them into a "docking:DockSite.AutoHideRightContainers" XML element.


Actipro Software Support

The latest build of this product (v21.1.3) was released 14 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.