Layout Serialization/Deserialization Question

Docking/MDI for WPF Forum

Posted 10 years ago by jay - dx
Version: 9.1.0503
Avatar
Hello,
I have some problems when I trying to using docksite serialization/deserialization .
This is my docksite layout code.

<WorkSpace>
    <TabbedMdiHost>
        <SplitContainer>
            <SplitContainer>
                <TabbedMdiContainer>
                </TabbedMdiContainer>
                <TabbedMdiContainer>
                </TabbedMdiContainer>
            </SplitContainer>
            <TabbedMdiContainer>
            </TabbedMdiContainer>
        <SplitContainer>
    </TabbedMdiHost>
</WorkSpace>
When I executed serialization about this layout, I successded. But the opposite case I failed.

What can I do for fix this problem.
Following is serialization result.

<DockSiteLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <AutoHideHost />
    <Content xsi:type="Workspace" UniqueId="c9b2880a-0c26-4178-8462-6ab6f2a46ed0" AutoHideSize="662,464" DockedSize="662,464" DocumentSize="662,464" Size="662,464" UndockedSize="662,464">
        <Content xsi:type="TabbedMdiHost">
            <Content xsi:type="SplitContainer" UniqueId="53cfe485-0a96-473a-8133-55a9253a30e4" AutoHideSize="662,464" DockedSize="662,464" DocumentSize="662,464" Size="662,464" UndockedSize="662,464" Orientation="Horizontal">
                <UIElement xsi:type="SplitContainer" UniqueId="36deb639-3648-4527-83e5-1b5e140cf2f5" AutoHideSize="329,464" DockedSize="329,464" DocumentSize="329,464" Size="329,464" UndockedSize="329,464" Orientation="Vertical">
                    <UIElement xsi:type="TabbedMdiContainer" UniqueId="1943a21e-ba64-4b0d-8fd3-5753c58a6197" AutoHideSize="329,230" DockedSize="329,230" DocumentSize="329,230" Size="329,230" UndockedSize="329,230" SelectedWindowUniqueId="b53f65b1-e1ef-45c3-9acd-16ef4f889d63">
                        <UIElement xsi:type="ToolWindowRef" UniqueId="b53f65b1-e1ef-45c3-9acd-16ef4f889d63" Name="Toolwindow3" />
                    </UIElement>
                    <UIElement xsi:type="TabbedMdiContainer" UniqueId="0a26389b-f1cf-4951-990c-734fb261b16c" AutoHideSize="329,230" DockedSize="329,230" DocumentSize="329,230" Size="329,230" UndockedSize="329,230" SelectedWindowUniqueId="294c4abb-6c68-4713-be72-f9d329d6f392">
                        <UIElement xsi:type="ToolWindowRef" UniqueId="294c4abb-6c68-4713-be72-f9d329d6f392" Name="Toolwindow4" />
                    </UIElement>
                </UIElement>
                <UIElement xsi:type="TabbedMdiContainer" UniqueId="3620c7fd-87da-46c0-aaed-5a127188b767" AutoHideSize="329,464" DockedSize="329,464" DocumentSize="329,464" Size="329,464" UndockedSize="329,464" SelectedWindowUniqueId="f938ebcc-61dc-4813-930f-3fea5fa52a3a">
                    <UIElement xsi:type="ToolWindowRef" UniqueId="f938ebcc-61dc-4813-930f-3fea5fa52a3a" Name="Toolwindow2" />
                </UIElement>
            </Content>
        </Content>
    </Content>
    <RaftingHosts />
    <ToolWindows>
        <ToolWindow UniqueId="8df7a533-32bb-47cc-826b-64ff1263970c" AutoHideSize="609,310" DockedSize="609,310" DocumentSize="609,310" Size="609,310" UndockedSize="609,310" IsOpen="false" Name="Toolwindow1" Title="Document1.txt" LastState="Docked" State="Document" />
        <ToolWindow UniqueId="f938ebcc-61dc-4813-930f-3fea5fa52a3a" AutoHideSize="329,310" DockedSize="609,310" DocumentSize="329,310" Size="329,310" UndockedSize="329,310" IsOpen="true" Name="Toolwindow2" Title="Document2.txt" LastState="Docked" State="Document" />
        <ToolWindow UniqueId="b53f65b1-e1ef-45c3-9acd-16ef4f889d63" AutoHideSize="302.5,230" DockedSize="302.5,230" DocumentSize="302.5,230" Size="302.5,230" UndockedSize="302.5,230" IsOpen="true" Name="Toolwindow3" Title="Document3.txt" LastState="Docked" State="Document" />
        <ToolWindow UniqueId="294c4abb-6c68-4713-be72-f9d329d6f392" AutoHideSize="302.5,230" DockedSize="302.5,310" DocumentSize="302.5,230" Size="302.5,230" UndockedSize="302.5,230" IsOpen="true" Name="Toolwindow4" Title="Document4.txt" LastState="Docked" State="Document" />
    </ToolWindows>
</DockSiteLayout>
[Modified at 08/10/2009 04:28 AM]

Comments (2)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Jay,

Sorry I'm not quite sure what you mean. However, please note that you should never make a XAML layout with empty "containers" like TabbedMdiContainer controls. I'm not sure if you just pasted that XAML as a simplfication of your layout or not.

If you think there is a problem with layout load, please make a simple sample project that shows the issue and email it over so we can see what is happening. Thanks.


Actipro Software Support

Posted 10 years ago by jay - dx
Avatar
Actually tabbedmdicontainer has some toolwindows. :(
Anyway I email to you with sample project. Thanks.

[Modified at 08/10/2009 07:35 PM]
The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.