Question

Setup a initial size of a SplitContainer in a host

Posted 6 years ago by Avatar Frank
We have a simple test app with a DockControl and a TabMdi and a Toolwindow:
(xaml)
<docking:DockSite Name="dockSite1">

<docking:SplitContainer Orientation="Horizontal">
<docking:ToolWindowContainer>
<docking:ToolWindow Title="Tool Window 2.1" />
</docking:ToolWindowContainer>

<docking:Workspace>
<docking:TabbedMdiHost x:Name="tabbedMdiHost" />
</docking:Workspace>
</docking:SplitContainer>

</docking:DockSite>

1) How can i set the width of the Toolwindow in xaml?

2) the user can resize the the toolbar with the splitter. Hwo can i save the layout and load when the app is closed and restarted?

Frank
(i am new with the WPFStudio and did not find this info in samples nor documentation)

Comments (1)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
1) Try setting the attached DockSite.ControlSize property to the tool window container like:
<docking:ToolWindowContainer docking:DockSite.ControlSize="150, 200">

We'll add some documentation on this too.

2) There is a "Layout Serialization" topic in the help that explains it. Also the main features demo has a Layout document tab that shows how to do the layout save/load.

Actipro Software Support
Information The latest build of this product (2014.2 build 0610) was released 20 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.