Deserialized docksite becomes slow

Docking/MDI for WPF Forum

Posted 13 years ago by Jb RIGUET
Version: 11.1.0543
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar
Hi,

I'm seeing a strange behavior with the docksite.

When i add (as in the documentation, using docksite.ToolWindows.Add) a lot of new toolwindow, then, i remove them, using the docksite.ToolWindows.Remove, they still appears in the dockSite in the serialization output. (With a Track xsi:Type, instead of a ToolWindowRef one).

After several run, i got several hundreds of lines in the output xml. Which I don't really care, as I set the DeserializationBehavior to Discard. So, they should disappear run after run. The problem here is, they slow down the whole docksite (the MDI part at least). When I select another tab, i have a 500-1000ms lag before the toolwindow effectively change.

Maybe i'm missing something, but i checked that just before serialization, no unnecessary toolwindows are in the DockSite.ToolWindows collection, but they still are partly serialized, as a part of the MDI object.

FYI, I'm using only tool window in the MDI/Docking component, no DocumentWindow.

I might be able to make a sample reproducing this, but only if you don't understand the problem, as it may take some time to recode everything.

Here are some code snippets of the code I currently use :


private DockSiteLayoutSerializer m_dss = new DockSiteLayoutSerializer();

public MainWindow()
        {
        
                m_dss.DocumentWindowDeserializationBehavior = DockingWindowDeserializationBehavior.LazyLoad;
                m_dss.ToolWindowDeserializationBehavior = DockingWindowDeserializationBehavior.Discard;
                m_dss.SerializationBehavior = DockSiteSerializationBehavior.All;

                InitializeComponent();

                LoadLayout();
            
        }

private void LoadLayout()
        {
            
            if (File.Exists(ISettings.SharedSettings.LayoutFile))
            {
                m_dss.LoadFromString(File.ReadAllText(ISettings.SharedSettings.LayoutFile), m_dockSite);
            }

        }

private void SaveLayout()
        {
            Directory.CreateDirectory(Path.GetDirectoryName(ISettings.SharedSettings.LayoutFile));
            m_dss.SaveToFile(ISettings.SharedSettings.LayoutFile, m_dockSite);
        }

private ToolWindow CreateToolWindow(UserControl content)
        {
            string name = String.Format("{0}{1}", TempToolWindowNamePrefix ,toolWindowIndex++);

            string title = "No Title";

            ToolWindow toolWindow = new ToolWindow();
            toolWindow.Name = name;
            toolWindow.Title = title;
            toolWindow.Content = content;

            m_dockSite.ToolWindows.Add(toolWindow);
            // Activate the window
            toolWindow.MoveToMdi(tabbedMdiContainer, Direction.Content);
            toolWindow.Activate();

            return toolWindow;
        }

private void RemoveToolWindowFromDockSite(ToolWindow tw)
        {
            if (tw == null)
                Logger.Warn("Tried to remove a null window from DockSite");

            if (tw.Name.StartsWith(TempToolWindowNamePrefix))
            {
                m_dockSite.ToolWindows.Remove(tw);
            }

            IDisposable id = tw.Content as IDisposable;
            if (id != null)
                id.Dispose();
        }



Here is the kind of XML I got after serializing :

<DockSiteLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SerializationFormat="All">
    <AutoHideHost>
        <AutoHideTabStrip Side="Left">
            <ToolWindowContainer AutoHideSize="200,200" DockedSize="200,200" DocumentSize="200,200" FloatingSize="200,200" Size="200,200" />
            <ToolWindowContainer AutoHideSize="200,356" DockedSize="283,446.5" DocumentSize="276.5,356" FloatingSize="276.5,356" Size="200,356" SelectedWindowUniqueId="1c336b1c-f36f-4958-bf8b-0d2c6428cfcb">
                <UIElement xsi:type="ToolWindowRef" UniqueId="1c336b1c-f36f-4958-bf8b-0d2c6428cfcb" />
            </ToolWindowContainer>
        </AutoHideTabStrip>
        <AutoHideTabStrip Side="Top">
            <ToolWindowContainer AutoHideSize="200,200" DockedSize="200,200" DocumentSize="200,200" FloatingSize="200,200" Size="200,200" />
        </AutoHideTabStrip>
        <AutoHideTabStrip Side="Right">
            <ToolWindowContainer AutoHideSize="200,200" DockedSize="200,200" DocumentSize="200,200" FloatingSize="200,200" Size="200,200" />
        </AutoHideTabStrip>
        <AutoHideTabStrip Side="Bottom">
            <ToolWindowContainer AutoHideSize="200,200" DockedSize="200,200" DocumentSize="200,200" FloatingSize="200,200" Size="200,200" />
            <ToolWindowContainer AutoHideSize="825,200" DockedSize="1281,200" DocumentSize="825,200" FloatingSize="825,200" Size="825,200" SelectedWindowUniqueId="f27a2abe-b3f7-4da2-8843-6d92c13367a9">
                <UIElement xsi:type="ToolWindowRef" UniqueId="f27a2abe-b3f7-4da2-8843-6d92c13367a9" />
            </ToolWindowContainer>
        </AutoHideTabStrip>
    </AutoHideHost>
    <Content xsi:type="SplitContainer" AutoHideSize="1858,920" DockedSize="1831,897" DocumentSize="1858,920" FloatingSize="1858,920" Size="1831,897" Orientation="Horizontal">
        <UIElement xsi:type="SplitContainer" AutoHideSize="1654,920" DockedSize="1314,897" DocumentSize="1654,920" FloatingSize="1654,920" Size="1314,897" Orientation="Vertical">
            <UIElement xsi:type="SplitContainer" AutoHideSize="1654,716" DockedSize="1314,897" DocumentSize="1654,716" FloatingSize="1654,716" Size="1314,897" Orientation="Horizontal">
                <UIElement xsi:type="SplitContainer" AutoHideSize="557,716" DockedSize="570,897" DocumentSize="557,716" FloatingSize="557,716" Size="570,897" Orientation="Horizontal">
                    <UIElement xsi:type="SplitContainer" AutoHideSize="557,716" DockedSize="570,897" DocumentSize="557,716" FloatingSize="557,716" Size="570,897" Orientation="Vertical">
                        <UIElement xsi:type="SplitContainer" AutoHideSize="557,716" DockedSize="570,897" DocumentSize="557,716" FloatingSize="557,716" Size="570,897" Orientation="Horizontal">
                            <UIElement xsi:type="SplitContainer" AutoHideSize="276.5,716" DockedSize="570,897" DocumentSize="276.5,716" FloatingSize="276.5,716" Size="570,897" Orientation="Vertical">
                                <UIElement xsi:type="ToolWindowContainer" AutoHideSize="276.5,356" DockedSize="244.5,356" DocumentSize="276.5,356" FloatingSize="276.5,356" Size="244.5,356" />
                                <UIElement xsi:type="SplitContainer" AutoHideSize="276.5,356" DockedSize="570,897" DocumentSize="276.5,356" FloatingSize="277,356" Size="570,897" Orientation="Horizontal">
                                    <UIElement xsi:type="ToolWindowContainer" AutoHideSize="276.5,356" DockedSize="283,897" DocumentSize="276.5,356" FloatingSize="277,356" Size="283,897" SelectedWindowUniqueId="0b0e0a20-caf7-4cd9-a4e5-0d991692bf8f">
                                        <UIElement xsi:type="ToolWindowRef" UniqueId="0b0e0a20-caf7-4cd9-a4e5-0d991692bf8f" />
                                    </UIElement>
                                    <UIElement xsi:type="SplitContainer" AutoHideSize="276.5,200" DockedSize="283,897" DocumentSize="276.5,200" FloatingSize="276.5,200" Size="283,897" Orientation="Vertical">
                                        <UIElement xsi:type="ToolWindowContainer" AutoHideSize="276.5,200" DockedSize="283,897" DocumentSize="276.5,200" FloatingSize="276.5,200" Size="283,897" SelectedWindowUniqueId="df87025a-b505-46ae-b8aa-95fa2472f7b7">
                                            <UIElement xsi:type="ToolWindowRef" UniqueId="df87025a-b505-46ae-b8aa-95fa2472f7b7" />
                                        </UIElement>
                                        <UIElement xsi:type="ToolWindowContainer" AutoHideSize="276.5,356" DockedSize="283,446.5" DocumentSize="276.5,356" FloatingSize="276.5,356" Size="283,446.5">
                                            <UIElement xsi:type="Track" UniqueId="1c336b1c-f36f-4958-bf8b-0d2c6428cfcb" />
                                        </UIElement>
                                    </UIElement>
                                </UIElement>
                                <UIElement xsi:type="ToolWindowContainer" AutoHideSize="276.5,356" DockedSize="570,446.5" DocumentSize="276.5,356" FloatingSize="276.5,356" Size="570,446.5" />
                            </UIElement>
                            <UIElement xsi:type="ToolWindowContainer" AutoHideSize="276.5,716" DockedSize="283,897" DocumentSize="276.5,716" FloatingSize="276.5,716" Size="283,897" />
                        </UIElement>
                    </UIElement>
                </UIElement>
                <UIElement xsi:type="Workspace" AutoHideSize="1093,716" DockedSize="1093,716" DocumentSize="740,897" FloatingSize="1093,716" Size="740,897">
                    <Content xsi:type="TabbedMdiHost">
                        <Content xsi:type="TabbedMdiContainer" AutoHideSize="1093,716" DockedSize="1093,716" DocumentSize="740,897" FloatingSize="1093,716" Size="740,897" SelectedWindowUniqueId="379a577a-d890-4e63-804d-0bc59da1b1cd">
                            <UIElement xsi:type="ToolWindowRef" UniqueId="379a577a-d890-4e63-804d-0bc59da1b1cd" />
                            <UIElement xsi:type="Track" UniqueId="6bcf38cd-f398-4f11-852d-3c96267f85bc" />
                            <UIElement xsi:type="Track" UniqueId="db025cca-0a99-4eac-bf7d-b64839c8ab10" />
                            <UIElement xsi:type="Track" UniqueId="4e938f76-fc64-408a-a562-df93f7cb624a" />
                            <UIElement xsi:type="Track" UniqueId="ff6f97c9-a2a5-453d-8b1e-dd2281bb5e3e" />
                            <UIElement xsi:type="Track" UniqueId="412b09b6-e15a-48fa-9f3d-2c8eeccb9407" />
                            <UIElement xsi:type="Track" UniqueId="85d2e225-2b74-4542-b895-955d3f6ffa91" />
                            <UIElement xsi:type="Track" UniqueId="87659666-77e7-40bb-a45b-5c437a0f3def" />
                            <UIElement xsi:type="Track" UniqueId="ec5865bf-c25d-420d-8ad3-9dafcea211de" />
                            <UIElement xsi:type="Track" UniqueId="76d45fb4-cb49-4517-b75f-4085b85708e4" />
                            <UIElement xsi:type="Track" UniqueId="e6408d2d-9ad0-4037-b488-4aee11cbb28e" />
                            <UIElement xsi:type="Track" UniqueId="ecc06ba7-6a19-4cce-83ee-75222f889ad5" />
                            <UIElement xsi:type="Track" UniqueId="3b39cbf8-2744-4335-bdc8-bcbdab77df5a" />
                            <UIElement xsi:type="Track" UniqueId="b283b8fa-663d-4744-bb5f-25e678cd0521" />
                            <UIElement xsi:type="Track" UniqueId="b938de5d-d8b5-4bed-9504-b3f5ae211e75" />
                            <UIElement xsi:type="Track" UniqueId="253642d1-e2b7-4776-8b52-59a1e0fc28a6" />
                            <UIElement xsi:type="Track" UniqueId="3c377370-aa9c-4870-8332-41c600c63735" />
                            <UIElement xsi:type="Track" UniqueId="22cbfdf1-f8b6-4b30-8f1f-e2e2ddcfe14b" />
                            <UIElement xsi:type="Track" UniqueId="b16615d0-a8fd-4aa8-ab84-bc5161fd26f2" />
                            <UIElement xsi:type="Track" UniqueId="41aaabac-3252-4bd3-8657-5614a1a00fc0" />
                            <UIElement xsi:type="Track" UniqueId="7a0d232b-4b4f-4b60-b0c3-f121746e556d" />
                            <UIElement xsi:type="Track" UniqueId="ae8c1bff-1be9-466f-ab31-9c69eedb8629" />
                            <UIElement xsi:type="Track" UniqueId="1e1d189f-5ba5-4d8b-b65b-b8f820af9481" />
                            <UIElement xsi:type="Track" UniqueId="b68895a3-50df-4145-954d-5ca879dc222c" />
                            <UIElement xsi:type="Track" UniqueId="f2df7811-acd0-4ba6-95bb-6e407a467a9d" />
                            <UIElement xsi:type="Track" UniqueId="e0ea22b9-b88d-44f0-8c14-123892c1d091" />
                            <UIElement xsi:type="Track" UniqueId="f57e20c0-1bdf-4bc4-a11b-f5b09394dfd7" />
                            <UIElement xsi:type="Track" UniqueId="e5ad0886-d1ff-4f67-a913-e98bee5fb1b4" />
                            <UIElement xsi:type="Track" UniqueId="a5c8f3ed-6127-46f5-97a5-45b119830aff" />
                            <UIElement xsi:type="Track" UniqueId="605aa394-3122-4eec-9bf1-d8910214dc9e" />
                            <UIElement xsi:type="Track" UniqueId="6a4363c0-9ad9-4daa-b511-3dfaab21893d" />
                            <UIElement xsi:type="Track" UniqueId="4e4fe0c4-b88c-4e92-bdd8-272f2baba3f7" />
                            <UIElement xsi:type="Track" UniqueId="96f52755-d5b4-4931-bb49-efeefcf2e7d9" />
                            <UIElement xsi:type="Track" UniqueId="d21e7d74-43a2-44c8-9286-69f5dece9c3e" />
                            <UIElement xsi:type="Track" UniqueId="9a87c2de-2e11-4c44-aa85-dabbb76b9e31" />
                            <UIElement xsi:type="Track" UniqueId="aabb70b8-0687-4c35-a9d9-e19984cc8e4d" />
                            <UIElement xsi:type="Track" UniqueId="4d8f2727-38c4-4197-89ee-5f7265bfa6f6" />
                            <UIElement xsi:type="Track" UniqueId="f53f16a2-feae-4998-a52b-fb269b84e80a" />
                            <UIElement xsi:type="Track" UniqueId="569c8db0-1c04-47fe-b9dc-2839bdfe00d8" />
                            <UIElement xsi:type="Track" UniqueId="c31ef396-bcf2-4393-a0e7-da89f5343063" />
                            <UIElement xsi:type="Track" UniqueId="421dec58-77c0-4da6-ae74-25f5c302b3ce" />
                            <UIElement xsi:type="Track" UniqueId="4aa34c79-ceb4-42c2-8440-96cc201a8787" />
                            <UIElement xsi:type="Track" UniqueId="cbd16ad7-845b-4115-9af3-cb3fe612d737" />
                            <UIElement xsi:type="Track" UniqueId="69568d58-e086-42b0-8904-edd8d430ae01" />
                            <UIElement xsi:type="Track" UniqueId="b1d2e7e4-415c-4442-9e29-004b45baf346" />
                            <UIElement xsi:type="Track" UniqueId="d3f33239-41c4-4879-8539-ccd63206f836" />
                            <UIElement xsi:type="Track" UniqueId="8bfb0871-10a6-40be-80c7-a6331d5e5f26" />
                            <UIElement xsi:type="Track" UniqueId="1c56a2cb-c58a-4bea-a35e-929abd47b5ef" />
                            <UIElement xsi:type="Track" UniqueId="9ce10668-9a12-4980-9595-f6630a662387" />
                            <UIElement xsi:type="Track" UniqueId="b340581b-ad00-4090-9d18-1136d2d8777e" />
                            <UIElement xsi:type="Track" UniqueId="498f190c-03ee-48d8-b664-e695d756ed0b" />
                            <UIElement xsi:type="Track" UniqueId="196b4f5e-5068-413b-9171-3d47f6d7d8b7" />
                            <UIElement xsi:type="Track" UniqueId="ec77eeae-56d1-4928-a1f0-7146ab434002" />
                            <UIElement xsi:type="Track" UniqueId="265e6374-d1dd-49a2-805c-21e557ff10d1" />
                            <UIElement xsi:type="Track" UniqueId="f7a0ba77-9241-46db-b8ad-e9dadd1eace9" />
                            <UIElement xsi:type="Track" UniqueId="c971dd71-7c29-40d4-8a9f-c4700a33c1db" />
                            <UIElement xsi:type="Track" UniqueId="b8b0d661-0a1a-48e8-bfc2-0db27a3cc90d" />
                            <UIElement xsi:type="Track" UniqueId="36a61ae7-157b-4ec9-b88f-e7169a32b2b4" />
                            <UIElement xsi:type="Track" UniqueId="4d9c26eb-e5e9-4a3e-a686-392b1c8a78f2" />
                            <UIElement xsi:type="Track" UniqueId="20dbb165-e704-47d6-8b03-fc70458aba5a" />
                            <UIElement xsi:type="Track" UniqueId="8e2bf13a-d2d3-49d6-a798-ccdf9e2489a0" />
                            <UIElement xsi:type="Track" UniqueId="5d3c6452-cfbd-46cd-9ca3-0d141c0df25a" />
                            <UIElement xsi:type="Track" UniqueId="492c6e47-4fde-4515-a4c7-1b6f24b2dcf8" />
                            <UIElement xsi:type="Track" UniqueId="5946fa44-b348-43f2-a3a6-e1131af2f743" />
                            <UIElement xsi:type="Track" UniqueId="509a66b8-4871-412a-9fd7-47780cd8054f" />
                            <UIElement xsi:type="Track" UniqueId="5a3467b5-48bf-4781-a0ec-6e7637298451" />
                            <UIElement xsi:type="Track" UniqueId="b582e32c-3cf0-4793-9ab3-aa23b84a7e15" />
                            <UIElement xsi:type="Track" UniqueId="8ff893c6-c167-4e82-be0c-439fb7e12307" />
                            <UIElement xsi:type="Track" UniqueId="cf17a7af-c155-4482-b355-01cce8c53595" />
                            <UIElement xsi:type="Track" UniqueId="c5e89123-a212-46c5-ae47-f058455037e8" />
                            <UIElement xsi:type="Track" UniqueId="c58a571d-5e5a-48e2-beb7-12e4402e0bfd" />
                            <UIElement xsi:type="Track" UniqueId="a6b56ec8-39b4-4ea3-8be8-ceb5323193ba" />
                            <UIElement xsi:type="Track" UniqueId="89a5b90a-303c-4e16-9c54-a5bed3a037d4" />
                            <UIElement xsi:type="Track" UniqueId="c0cd1255-e7b6-4d64-b42f-889eab5d17fe" />
                            <UIElement xsi:type="Track" UniqueId="f312ef74-d2cd-41af-9375-ccdd4fe00dcb" />
                            <UIElement xsi:type="Track" UniqueId="a6b50ea4-31dc-433f-9aa8-d3bea7153344" />
                            <UIElement xsi:type="Track" UniqueId="8fce8cd4-9db2-4d0a-b49b-09dcd535c1df" />
                            <UIElement xsi:type="Track" UniqueId="eb332209-d38e-4c96-bc1f-cd1b58a5bc2b" />
                            <UIElement xsi:type="Track" UniqueId="6242f14a-023e-4dbc-a903-5829df82eb45" />
                            <UIElement xsi:type="Track" UniqueId="d9fae73c-da18-443e-ba75-84db4e978439" />
                            <UIElement xsi:type="Track" UniqueId="4bf43edd-636e-4689-94f8-5fdd26293c39" />
                            <UIElement xsi:type="Track" UniqueId="75d25c4a-0e8e-4a8c-bf50-4109e3965643" />
                            <UIElement xsi:type="Track" UniqueId="292b01f6-af3c-4516-b48d-79198ea69e77" />
                            <UIElement xsi:type="Track" UniqueId="eef79d69-f577-48e9-bc4e-f619ef2fd3c8" />
                            <UIElement xsi:type="Track" UniqueId="8f3e26cb-1e18-4fe4-a0a4-2cdbcaab6e58" />
                            <UIElement xsi:type="Track" UniqueId="64a6d143-d493-49a4-a313-d46c0ea25c8b" />
                            <UIElement xsi:type="Track" UniqueId="66208e4f-34b5-4588-8800-a010c08960d5" />
                            <UIElement xsi:type="Track" UniqueId="e4c4f060-c099-4f45-8317-8537eb5ad4d0" />
                            <UIElement xsi:type="Track" UniqueId="4df46c84-1521-4773-9df8-8204f59f6f47" />
                            <UIElement xsi:type="Track" UniqueId="9c97b064-151f-42d9-8a57-0ae3a1db6cb6" />
                            <UIElement xsi:type="Track" UniqueId="089d3b60-ae3a-4378-96a6-f839a257cf18" />
                            <UIElement xsi:type="Track" UniqueId="03801dc6-684f-4a18-8036-34741413ade1" />
                            <UIElement xsi:type="Track" UniqueId="faf5fcbf-dc60-42f5-a8bf-bc235ac0e854" />
                            <UIElement xsi:type="Track" UniqueId="35e19447-aa2d-47b2-a1ed-974860148b79" />
                            <UIElement xsi:type="Track" UniqueId="bdf42069-5e7d-4040-973d-ab8c5398ba6e" />
                            <UIElement xsi:type="Track" UniqueId="2b3497d3-0cb1-41a2-8912-a26d8d0ca93f" />
                            <UIElement xsi:type="Track" UniqueId="78e479b3-b4e8-472a-b1d1-79ce1c54737f" />
                            <UIElement xsi:type="Track" UniqueId="3eb98120-c319-4a27-93b8-be49f7556e44" />
                            <UIElement xsi:type="Track" UniqueId="b2e6d673-d625-4056-8ebf-0d18f820bd58" />
                            <UIElement xsi:type="Track" UniqueId="0bb1218d-6452-4989-b295-a0aaaa8b9202" />
                            <UIElement xsi:type="Track" UniqueId="3b5da704-4c8a-4de4-9fa5-626e398c9085" />
                            <UIElement xsi:type="Track" UniqueId="3e22744b-672c-4459-8047-d66ff4c9e3df" />
                            <UIElement xsi:type="Track" UniqueId="7959df1d-2a52-42b8-977d-c1955258af8f" />
                            <UIElement xsi:type="Track" UniqueId="5d037b14-ea29-4324-b5e4-d716f7a799b9" />
                            <UIElement xsi:type="Track" UniqueId="8af710e9-08d3-474e-895e-4b4c384d434b" />
                            <UIElement xsi:type="Track" UniqueId="0a65f9cb-1969-4202-8d70-4abb5a0b5940" />
                            <UIElement xsi:type="Track" UniqueId="de18b901-d4c0-4878-a4a3-c97a40fe7fb0" />
                            <UIElement xsi:type="Track" UniqueId="6dc200e1-993d-4308-8bfc-432df6ad6f11" />
                            <UIElement xsi:type="Track" UniqueId="7e6d9ad2-0a5f-4092-91fc-e928216486fe" />
                            <UIElement xsi:type="Track" UniqueId="d85a0306-c6c9-4b11-8527-69c1dfa30571" />
                            <UIElement xsi:type="Track" UniqueId="d8540ab2-e95e-4004-82fa-08349f9f9252" />
                            <UIElement xsi:type="Track" UniqueId="d10736be-eaf1-450b-915d-47e84d2871d6" />
                            <UIElement xsi:type="Track" UniqueId="348afb54-88f7-401d-90b5-8c4a1854f658" />
                            <UIElement xsi:type="Track" UniqueId="54dd9a13-23ea-4bf2-a8b3-5e4af1dc53a7" />
                            <UIElement xsi:type="Track" UniqueId="2608b7df-14f4-40b0-a8aa-0ecb143ba889" />
                            <UIElement xsi:type="Track" UniqueId="2ca51434-fbf4-47b8-ad8c-e5a2562ff92a" />
                            <UIElement xsi:type="Track" UniqueId="e62a2b14-389c-4ee5-9aa0-b1a32472c1fa" />
                            <UIElement xsi:type="Track" UniqueId="49ca5a69-6a99-424f-9e49-bc43896ed560" />
                            <UIElement xsi:type="Track" UniqueId="11e8ebb6-e0a9-47d4-b4d9-421de3a6316c" />
                            <UIElement xsi:type="Track" UniqueId="9c71f3b2-1cc9-4cad-b87f-538d7be88b2c" />
                            <UIElement xsi:type="Track" UniqueId="cad14890-9c18-433a-a68b-2ea8fb45944f" />
                            <UIElement xsi:type="Track" UniqueId="8574fef7-fc2d-4a45-a4c8-ed4f6f553af8" />
                            <UIElement xsi:type="Track" UniqueId="f7b1ab5d-5e0b-45fc-aeaf-b6f9a42f5aeb" />
                            <UIElement xsi:type="Track" UniqueId="b3cec775-6ab7-49f6-af20-4d68d4e7721a" />
                            <UIElement xsi:type="Track" UniqueId="cb882584-c220-4b0f-a092-c14f3d3a89a7" />
                            <UIElement xsi:type="Track" UniqueId="99e1f0ce-68ad-4169-9fff-e45220e8dfff" />
                            <UIElement xsi:type="Track" UniqueId="6ee541bb-9c24-4217-bfe9-a33c31d0efb6" />
                            <UIElement xsi:type="Track" UniqueId="c5d35a40-a37b-4c70-9bd3-bb2e184b0f9f" />
                            <UIElement xsi:type="Track" UniqueId="bab308bf-24a7-4429-b592-33a770705ad5" />
                            <UIElement xsi:type="Track" UniqueId="bcf33703-87a9-44ce-a607-a6e5b14313a1" />
                            <UIElement xsi:type="Track" UniqueId="d7d5ecfc-177e-4c7b-8959-a1da0efe4228" />
                            <UIElement xsi:type="Track" UniqueId="d53f844e-85a3-44c9-8e88-eb90fb21bd46" />
                            <UIElement xsi:type="Track" UniqueId="0bb83a04-9194-401c-ae95-af58c0bfe6da" />
                            <UIElement xsi:type="Track" UniqueId="7f74bdec-57c6-4fba-83e6-95e2ef62b489" />
                            <UIElement xsi:type="Track" UniqueId="78dbd0e2-378d-45a5-9801-2b5d6bddff14" />
                            <UIElement xsi:type="Track" UniqueId="2407dc76-3635-4eda-8e3c-5b639d5810d9" />
                            <UIElement xsi:type="Track" UniqueId="4613e9ad-d207-4599-b5fe-8070cbe21800" />
                            <UIElement xsi:type="Track" UniqueId="981967c5-9032-4624-9cdc-8d00a1f9d85a" />
                            <UIElement xsi:type="Track" UniqueId="8dfc9bfd-b5dd-4790-8c8f-f35b4ad90073" />
                            <UIElement xsi:type="Track" UniqueId="04a13e69-74f9-430c-b2c5-b6e7a1343207" />
                            <UIElement xsi:type="Track" UniqueId="f029bf49-fa49-47a0-a11c-1ee5c352d267" />
                            <UIElement xsi:type="Track" UniqueId="47d8892f-c039-4327-8ace-015b212f423d" />
                            <UIElement xsi:type="Track" UniqueId="603cc558-c988-47b0-a1e7-d4ffa8444741" />
                            <UIElement xsi:type="Track" UniqueId="3c15d2ed-96bb-4510-891e-4f487ec6d4ee" />
                            <UIElement xsi:type="Track" UniqueId="c9446612-92a8-4d36-b253-713eec98c0c3" />
                            <UIElement xsi:type="Track" UniqueId="255e42b5-0898-45ea-a5b4-a4d698ddb27b" />
                            <UIElement xsi:type="Track" UniqueId="afd8808a-48d3-4936-949c-7024a118f53a" />
                            <UIElement xsi:type="Track" UniqueId="afd52ffd-1a99-45b6-8a33-09ec85c33a71" />
                            <UIElement xsi:type="Track" UniqueId="55914f70-0601-4ca5-8bfd-1e918322b325" />
                            <UIElement xsi:type="Track" UniqueId="323b0f34-b07a-43f1-a539-c56920e75985" />
                            <UIElement xsi:type="Track" UniqueId="a352d3ca-a164-4d9d-a0c3-e38bedc66092" />
                            <UIElement xsi:type="Track" UniqueId="fef38231-e2b1-4982-b219-b2c70a4b7544" />
                            <UIElement xsi:type="Track" UniqueId="d0588741-b246-41f8-b745-063b3184f11e" />
                            <UIElement xsi:type="Track" UniqueId="e120a0d0-399b-4ff0-bbf5-57b2dd10e61c" />
                            <UIElement xsi:type="Track" UniqueId="09ec5d2f-d6eb-4add-8b08-7457046f58dc" />
                            <UIElement xsi:type="Track" UniqueId="ee412144-b94e-41cf-a437-81ba16932f89" />
                            <UIElement xsi:type="Track" UniqueId="4f976c01-ce27-4b1c-8dad-532581138bc4" />
                            <UIElement xsi:type="Track" UniqueId="67232422-8efb-42db-b38f-676cd454591f" />
                            <UIElement xsi:type="Track" UniqueId="f2d7e984-823e-41f3-832c-50725e30e75b" />
                            <UIElement xsi:type="Track" UniqueId="7ae6c1ee-b268-496b-8bd0-d960fc07b509" />
                            <UIElement xsi:type="Track" UniqueId="60899745-1960-46fc-9b36-b174de8c6280" />
                            <UIElement xsi:type="Track" UniqueId="dde0c59a-f42d-4802-a452-aa9d46e62a53" />
                            <UIElement xsi:type="Track" UniqueId="a0e3de53-49fd-44a7-a6c6-d4014e096feb" />
                            <UIElement xsi:type="Track" UniqueId="b016f393-8da0-4894-84c2-01373f31a690" />
                            <UIElement xsi:type="Track" UniqueId="4c27f241-248e-4a31-92eb-68fb62ddfad2" />
                            <UIElement xsi:type="Track" UniqueId="fb3806df-265f-4baa-b97b-03cc039bd254" />
                            <UIElement xsi:type="Track" UniqueId="50eb0723-f8cf-4ac9-85ca-a2e53a958f8b" />
                            <UIElement xsi:type="Track" UniqueId="e502f021-2772-4383-b552-d698278dcf95" />
                            <UIElement xsi:type="Track" UniqueId="da5108a6-7415-4938-a308-892d36388d06" />
                            <UIElement xsi:type="Track" UniqueId="7ae18983-26c2-47f4-a9a9-f5f5d42e9384" />
                            <UIElement xsi:type="Track" UniqueId="04ea3ae9-b0b9-4ad4-b979-71b65b8cf945" />
                            <UIElement xsi:type="Track" UniqueId="911f5a46-5eb7-4504-b0a0-08c36044c5fc" />
                            <UIElement xsi:type="Track" UniqueId="2ad71041-42a0-4518-a840-cbda9f9b62da" />
                            <UIElement xsi:type="Track" UniqueId="12e061b3-77cc-4087-b2af-8487fc30461a" />
                            <UIElement xsi:type="Track" UniqueId="1a296ce4-5068-4c3b-aa34-b21e97385502" />
                            <UIElement xsi:type="Track" UniqueId="93d95868-f3c4-47f4-8253-b89501805824" />
                            <UIElement xsi:type="Track" UniqueId="b6ec730e-09f9-4cbb-a457-51f6c9307db6" />
                            <UIElement xsi:type="Track" UniqueId="1fe0133f-6087-4236-95d6-bc849ff2e56a" />
                            <UIElement xsi:type="Track" UniqueId="0205551e-3a62-4256-9992-3975b65f6ed8" />
                            <UIElement xsi:type="Track" UniqueId="c43e073b-d047-4805-a6b4-d76efae7c9eb" />
                            <UIElement xsi:type="Track" UniqueId="9ba7cf9e-92ed-4f52-bd7a-b024d4493e9c" />
                            <UIElement xsi:type="ToolWindowRef" UniqueId="0a99435a-385a-42d4-ad6a-8b167178f732" />
                            <UIElement xsi:type="Track" UniqueId="bae5d455-dc75-4491-87e9-71b3fafd4f3b" />
                            <UIElement xsi:type="Track" UniqueId="cf22c984-e4f7-413b-a8b5-6a0b8a4ee154" />
                            <UIElement xsi:type="Track" UniqueId="972c7784-a09a-4620-aa40-7decd592509a" />
                            <UIElement xsi:type="Track" UniqueId="cd8ea2b2-9a4a-4f36-a3b2-25d6c3f6ee7b" />
                            <UIElement xsi:type="Track" UniqueId="a57fcd11-b5e0-4fcf-b0e3-d889656ff771" />
                            <UIElement xsi:type="Track" UniqueId="ee3e6b3b-02d8-4704-a2b7-1c54ca777fdf" />
                            <UIElement xsi:type="Track" UniqueId="91860742-ed38-45ed-8f85-ac63025fd04e" />
                            <UIElement xsi:type="Track" UniqueId="f34c6d00-19f9-4a7c-8fd7-45e6a4932a82" />
                            <UIElement xsi:type="Track" UniqueId="11266a4c-af52-4669-a69c-f1dd1ef900dd" />
                            <UIElement xsi:type="Track" UniqueId="654e1e7f-e786-4a9d-ab9d-7d5f8ed03682" />
                            <UIElement xsi:type="Track" UniqueId="49792268-c17d-4a9e-ac49-9b41af9c2752" />
                            <UIElement xsi:type="Track" UniqueId="e703eafc-d6a9-4b2c-806a-23c06bbb47c2" />
                            <UIElement xsi:type="Track" UniqueId="bb9d86c0-7674-4e3e-b97a-b0aa09173e55" />
                            <UIElement xsi:type="Track" UniqueId="87023730-7340-46b2-80bb-5347fec2f03d" />
                            <UIElement xsi:type="Track" UniqueId="d65f197e-3ab0-4cf3-b117-c018500f04da" />
                            <UIElement xsi:type="Track" UniqueId="354ba14e-027d-49d4-a7dc-08fd9a4fb7ab" />
                            <UIElement xsi:type="Track" UniqueId="544d7a13-f158-4392-9372-fffb64a956db" />
                            <UIElement xsi:type="Track" UniqueId="c9f282af-94e4-43d9-bf0b-72831517095b" />
                            <UIElement xsi:type="Track" UniqueId="37da5a71-3edb-48e6-91ca-181d3b0ce7e0" />
                            <UIElement xsi:type="Track" UniqueId="03bce6e4-a1e9-4118-929a-14acba2282eb" />
                            <UIElement xsi:type="Track" UniqueId="b7300233-d114-4d3c-aa3e-155cabdf12cb" />
                            <UIElement xsi:type="Track" UniqueId="c9c7ebc1-b9cf-4810-b038-8b53c5aab139" />
                            <UIElement xsi:type="Track" UniqueId="9801a722-2f39-4614-a9e3-6a364936fbd3" />
                            <UIElement xsi:type="Track" UniqueId="b2c0ee68-c78c-4112-8894-d50d72986dac" />
                            <UIElement xsi:type="Track" UniqueId="6458f0f6-a906-4998-b9cd-7b550841bd80" />
                            <UIElement xsi:type="Track" UniqueId="c4f8e672-708a-4a44-bbaa-901a27388a01" />
                            <UIElement xsi:type="Track" UniqueId="a25933ff-dc56-4df2-bbb9-02fc19bae07f" />
                            <UIElement xsi:type="Track" UniqueId="9d6bc1fa-ff08-4fe0-b1b4-6c40def0f12e" />
                            <UIElement xsi:type="Track" UniqueId="5ad92324-15a4-4b5f-a246-5fecc462a1fd" />
                            <UIElement xsi:type="Track" UniqueId="cc13aa81-3553-4a5a-82de-8a516de42da2" />
                            <UIElement xsi:type="Track" UniqueId="9934c450-5380-45bc-a0f9-a2937e10c88e" />
                            <UIElement xsi:type="Track" UniqueId="9a6890ff-d948-404e-8366-fc183471b0c4" />
                            <UIElement xsi:type="Track" UniqueId="38fbf853-0e23-448d-b29a-aa1327a8d148" />
                            <UIElement xsi:type="Track" UniqueId="30261314-02dd-473b-8e24-b80d97dff131" />
                            <UIElement xsi:type="Track" UniqueId="f6dcad85-2581-4cd2-b812-3667e5158d2e" />
                            <UIElement xsi:type="Track" UniqueId="d4f887a8-e16d-4567-bae2-9d31c79b2021" />
                            <UIElement xsi:type="Track" UniqueId="1daebe00-9cae-4bd9-bd14-37885b56c4db" />
                            <UIElement xsi:type="Track" UniqueId="2fb72611-33ee-4844-9573-73496a3f3df1" />
                            <UIElement xsi:type="Track" UniqueId="09a9508d-0b05-49ec-ac3b-6ef41cb7af8c" />
                        </Content>
                    </Content>
                </UIElement>
            </UIElement>
            <UIElement xsi:type="SplitContainer" AutoHideSize="1654,200" DockedSize="1281,200" DocumentSize="1654,200" FloatingSize="1654,200" Size="1281,200" Orientation="Horizontal">
                <UIElement xsi:type="ToolWindowContainer" AutoHideSize="825,200" DockedSize="1281,200" DocumentSize="825,200" FloatingSize="825,200" Size="1281,200">
                    <UIElement xsi:type="Track" UniqueId="f27a2abe-b3f7-4da2-8843-6d92c13367a9" />
                </UIElement>
                <UIElement xsi:type="ToolWindowContainer" AutoHideSize="825,200" DockedSize="638.5,200" DocumentSize="825,200" FloatingSize="825,200" Size="638.5,200" />
            </UIElement>
        </UIElement>
        <UIElement xsi:type="SplitContainer" AutoHideSize="200,920" DockedSize="513,897" DocumentSize="200,920" FloatingSize="200,920" Size="513,897" Orientation="Vertical">
            <UIElement xsi:type="ToolWindowContainer" AutoHideSize="200,920" DockedSize="569,698.021834061135" DocumentSize="200,920" FloatingSize="200,920" Size="569,698.021834061135" />
            <UIElement xsi:type="ToolWindowContainer" AutoHideSize="200,920" DockedSize="513,897" DocumentSize="200,920" FloatingSize="200,920" Size="513,897" SelectedWindowUniqueId="7f275032-52e2-4d7b-a4c0-8193745b595e">
                <UIElement xsi:type="ToolWindowRef" UniqueId="7f275032-52e2-4d7b-a4c0-8193745b595e" />
                <UIElement xsi:type="ToolWindowRef" UniqueId="ccd70620-63c8-43b7-80ac-aef6c0998a1d" />
                <UIElement xsi:type="ToolWindowRef" UniqueId="28c0ee72-fdd3-48c6-94a2-cc8ea1df987f" />
                <UIElement xsi:type="ToolWindowRef" UniqueId="7dcdafc4-c9ae-47e1-b326-e3b00cfcb6f3" />
            </UIElement>
            <UIElement xsi:type="ToolWindowContainer" AutoHideSize="825,200" DockedSize="487,446.5" DocumentSize="825,200" FloatingSize="825,200" Size="487,446.5" />
        </UIElement>
        <UIElement xsi:type="ToolWindowContainer" AutoHideSize="200,200" DockedSize="200,897" DocumentSize="200,200" FloatingSize="200,200" Size="200,897">
            <UIElement xsi:type="Track" UniqueId="89efaf26-6fd4-4a0b-a267-3120e6fa1a44" />
        </UIElement>
        <UIElement xsi:type="ToolWindowContainer" AutoHideSize="751,897" DockedSize="751,897" DocumentSize="751,897" FloatingSize="751,897" Size="751,897">
            <UIElement xsi:type="Track" UniqueId="c43e073b-d047-4805-a6b4-d76efae7c9eb" />
        </UIElement>
        <UIElement xsi:type="ToolWindowContainer" AutoHideSize="1093,716" DockedSize="923,897" DocumentSize="879,897" FloatingSize="1093,716" Size="923,897">
            <UIElement xsi:type="Track" UniqueId="0a99435a-385a-42d4-ad6a-8b167178f732" />
        </UIElement>
    </Content>
    <ToolWindows>
        <ToolWindow UniqueId="89efaf26-6fd4-4a0b-a267-3120e6fa1a44" AutoHideSize="200,200" DockedSize="200,200" DocumentSize="200,200" FloatingSize="200,200" Size="200,200" IsOpen="false" LastState="Docked" Name="toolWindowInitiallyClosed" State="Docked" />
        <ToolWindow UniqueId="0b0e0a20-caf7-4cd9-a4e5-0d991692bf8f" AutoHideSize="200,356" DockedSize="283,897" DocumentSize="200,356" FloatingSize="277,356" Size="283,897" IsOpen="true" LastState="Floating" Name="toolWindowProjectBrowser" RaftingLocation="431,272" State="Docked" />
        <ToolWindow UniqueId="1c336b1c-f36f-4958-bf8b-0d2c6428cfcb" AutoHideSize="200,356" DockedSize="283,446.5" DocumentSize="200,356" FloatingSize="200,356" Size="200,356" IsOpen="true" LastState="Docked" Name="toolWindowProjectPreview" State="AutoHide" />
        <ToolWindow UniqueId="df87025a-b505-46ae-b8aa-95fa2472f7b7" AutoHideSize="276.5,200" DockedSize="283,897" DocumentSize="276.5,200" FloatingSize="276.5,200" Size="283,897" IsOpen="true" LastState="Docked" Name="toolWindowProjectList" State="Docked" />
        <ToolWindow UniqueId="0a99435a-385a-42d4-ad6a-8b167178f732" AutoHideSize="1093,716" DockedSize="923,897" DocumentSize="740,897" FloatingSize="1093,716" Size="740,897" IsOpen="true" LastState="Floating" Name="toolWindowWorld" RaftingLocation="811,119" State="Document" />
        <ToolWindow UniqueId="379a577a-d890-4e63-804d-0bc59da1b1cd" AutoHideSize="1093,716" DockedSize="1093,716" DocumentSize="740,897" FloatingSize="1093,716" Size="740,897" IsOpen="true" LastState="Docked" Name="toolWindowWorldSelection" State="Document" />
        <ToolWindow UniqueId="f27a2abe-b3f7-4da2-8843-6d92c13367a9" AutoHideSize="825,200" DockedSize="1281,200" DocumentSize="825,200" FloatingSize="825,200" Size="825,200" IsOpen="true" LastState="Docked" Name="toolWindowConsole" State="AutoHide" />
        <ToolWindow UniqueId="7dcdafc4-c9ae-47e1-b326-e3b00cfcb6f3" AutoHideSize="825,200" DockedSize="513,897" DocumentSize="825,200" FloatingSize="825,200" Size="513,897" IsOpen="true" LastState="Docked" Name="toolWindowWorldMap" State="Docked" />
        <ToolWindow UniqueId="7f275032-52e2-4d7b-a4c0-8193745b595e" AutoHideSize="200,200" DockedSize="513,897" DocumentSize="200,200" FloatingSize="200,920" Size="513,897" IsOpen="true" LastState="Floating" Name="toolWindowProperties" RaftingLocation="1114,76" State="Docked" />
        <ToolWindow UniqueId="ccd70620-63c8-43b7-80ac-aef6c0998a1d" AutoHideSize="200,200" DockedSize="513,897" DocumentSize="200,200" FloatingSize="200,920" Size="513,897" IsOpen="true" LastState="Floating" Name="toolWindowUndo" RaftingLocation="1114,76" State="Docked" />
        <ToolWindow UniqueId="28c0ee72-fdd3-48c6-94a2-cc8ea1df987f" AutoHideSize="200,200" DockedSize="513,897" DocumentSize="200,200" FloatingSize="200,920" Size="513,897" IsOpen="true" LastState="Floating" Name="toolWindowLayers" RaftingLocation="1114,76" State="Docked" />
    </ToolWindows>
</DockSiteLayout>

Comments (6)

Posted 13 years ago by Jb RIGUET
Avatar
Ok sorry guys, I found another way, by using the Destroy(true) method on the ToolWindow directly.
That doesn't change the fact that with a big amount of track, the Mdi Tab are lagging. Which seems a bug to me, as they are not supposed to be here, as i selected Discard as DeserializationBehavior :)

[Modified at 06/23/2011 10:07 AM]
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jb,

The Discard behavior does not apply to tracks, only to the tool and document windows defined in the layout file. So the tracks would still have to be processed and loaded.

Removing a window from the ToolWindows or DocumentWindows collection should have had the same effect as calling Destory(true). We've corrected this for the next maintenance release, so both operations remove the associated track.


Actipro Software Support

Posted 13 years ago by Jb RIGUET
Avatar
Hi guys, nice to see i wasn't totally wrong :)
Any ideas why the Mdi Tabs are becoming slow if you have a lot of tracked ToolWindow when deserialized ?
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jb,

We made a few optimizations that should help in this regard (i.e. when there are numerous windows/tracks), but it's ultimately due to the number of items that must be moved around/updated.


Actipro Software Support

Posted 12 years ago by Jb RIGUET
Avatar

Hi,

Recently, the Tabs in a DockSite became slow when switching, and I noticed that there was still a lot of Tracked tool windows in the serialized XML layout. Is there any reasons for this behavior as I'm correctly using Destroy(True) on tool windows ?

 

Thanks.

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

Hi Jb,

If you are not using our latest maintenance release, then you can see if that addresses the issue you are seeing. Otherwise, if you can please put together a small sample project that reproduces your issue and email it over then we can take a closer look. Be sure to remove any executables or change the extension of the zip file to ensure it gets past our email filters.


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.