Setup a initial size of a SplitContainer in a host

Docking/MDI for WPF Forum

Posted 16 years ago by Frank
Avatar
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 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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

The latest build of this product (v24.1.2) was released 0 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.