Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
950
SaveAsXML/LoadFromXML hangs
posted

I'm trying to implement saving/loading of layout via UltraDockManager SaveAsXML/LoadFromXML combo and it hangs on loading. I put together a simple application that has a simple listbox with a number of choices. I can open and dock multiple WebBrowsers (using different keys for the DockableControlPane) but when I call ultraDockManager1.LoadFromXML function it always hangs when I have more than 1 WebBrowser docked. It is the same with any control - i use WebBrowser just as an example.

Picture below show ultraDockManager going insane and hanging after LoadFromXML call.

 

This is the function I use to add controls

        void addCtrlToDockManager(String sKey, Control control)
        {
            int index = 1;
            String sUseKey = sKey;
            while (ultraDockManager1.PaneFromKey(sUseKey) != null)
            {
                sUseKey = sKey + "_" + index++;
            }
            DockableControlPane dcp = new DockableControlPane(sUseKey, sUseKey, control);
            DockAreaPane dap = new DockAreaPane(DockedLocation.Floating);
            dap.Panes.Add(dcp);

            ultraDockManager1.DockAreas.Add(dap);

            dap.Float(false, new Rectangle(100, 100, 400, 400));
        }

I hope I'm just doing something silly - please help.