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
290
UltraDockManager.LoadFromXml creates new panes objects
posted

Hi,

I am planning to create default layout for my application.
I have tried using ultraDockManager.LoadFromXml(stream), but I have some problems using this approach:
1. As far that I can get, this method actually re-instantiate every pane.
Objects in ultraDockManager.ControlPanes are all brand new.
This can cause some problems in application if somewhere there is reference to the old object.
(I am resetting layout on the fly, user can reset layout every time)
Example: exception "cannot access a disposed object"

2. I save the xml using ultraDockManager.SaveAsXML(stream) method and I see that the xml save panel size in pixel. Can we save by percentage ('%'), since user can use our application in many kind of monitor resolution?

Those are my problems using LoadFromXml. The first one is high priority, the second one is lower.
Is there another easy way to set default layout without re-instantiate panes object?

Thanks.

Parents Reply Children
No Data