How do I dock a ToolWindowContainer from XAML?

Docking/MDI for WPF Forum

Posted 11 years ago by Erin Fitzhenry
Version: 12.2.0571
Avatar

Hello,

I have code similar to the following: 

<ap:DockSite.AutoHideRightContainers>
    <ap:ToolWindowContainer>
        <ap:ToolWindow Title="Settings">
            <local:MyView... />
        </ap:ToolWindow>
    </ap:ToolWindowContainer>
</ap:DockSite.AutoHideRightContainers>

 When the application opens, the settings window is auto-hidden.  I want to pin (dock?) it by default.  How do I do that?

Thanks,

-Erin

Comments (1)

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

Hi Erin,

You should be able to do something like this: 

<ap:DockSite>
	<ap:SplitContainer Orientation="Horizontal">
		<ap:Workspace />
		<ap:ToolWindowContainer>
        		<ap:ToolWindow Title="Settings">
				<local:MyView... />
	        	</ap:ToolWindow>
		</ap:ToolWindowContainer>
	</ap:SplitContainer>
</ap:DockSite>


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.