Create RaftingHost programatically

Docking/MDI for WPF Forum

Posted 8 months ago by Otto Liu
Version: 15.1.0621
Avatar

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>
<UIElement xsi:type="ToolWindowRef" UniqueId="90fb7176-bfbb-4f8c-a896-a7a6589417c4">
<Tag xsi:type="xsd:string"></Tag>
</UIElement>
</Content>
</RaftingHost>

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

Comments (1)

Posted 7 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

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

The latest build of this product (v24.1.4) 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.