Create RaftingHost programatically

Docking/MDI for WPF Forum

The latest build of this product (v24.1.2) was released 3 months ago, which was before this thread was created.
Posted 18 days ago by Otto Liu
Version: 15.1.0621

Hi, here is some of my docksite layout content(created by DockSiteSerializer)

<RaftingHost IsMaximized="false" Location="320,63" Size="326,640" State="Floating">
<Content xsi:type="ToolWindowContainer" AutoHideSize="326,640" DockedSize="326,640" DocumentSize="326,640" FloatingSize="326,640" Size="326,640" SelectedWindowUniqueId="90fb7176-bfbb-4f8c-a896-a7a6589417c4">
<UIElement xsi:type="ToolWindowRef" UniqueId="0cad203e-19e7-4e15-8474-efc4c6cde579">
<Tag xsi:type="xsd:string"></Tag>
<UIElement xsi:type="ToolWindowRef" UniqueId="90fb7176-bfbb-4f8c-a896-a7a6589417c4">
<Tag xsi:type="xsd:string"></Tag>

I want to know is it possible to create this portion only promatically? (ex: RaftingHost host = new RaftingHost() ....) 

Comments (1)

Posted 16 days ago by Actipro Software Support - Cleveland, OH, USA


No, there is not a way to directly create the control related to that XML tag.  Instead, you would want to call the Float method on a ToolWindow or its parent ToolWindowContainer.  That will properly create a floating wrapper for your tool window(s).

Actipro Software Support

Add Comment

Please log in to a validated account to post comments.